Пример #1
0
  public void retrieveAssetContent(RuleAsset asset, AssetItem item) throws SerializationException {
    RuleModel ruleModel = getBrlXmlPersistence().unmarshal(item.getContent());

    ruleModel.name = asset.getName();

    asset.setContent(ruleModel);
  }
Пример #2
0
 public void storeAssetContent(RuleAsset asset, AssetItem repoAsset)
     throws SerializationException {
   RuleModel data = (RuleModel) asset.getContent();
   if (data.name == null) {
     data.name = repoAsset.getName();
   }
   repoAsset.updateContent(getBrlXmlPersistence().marshal(data));
 }
Пример #3
0
 protected RuleModel buildModelFromAsset(AssetItem asset) {
   RuleModel model = getBrlXmlPersistence().unmarshal(asset.getContent());
   model.name = asset.getName();
   model.parentName = this.parentNameFromCategory(asset, model.parentName);
   return model;
 }