String result = super.edit();
if (!result.equals(SUCCESS)) {
return result;
}
try {
Content content = this.getContent();
ContentModel model = this.getContentModel();
if (null != this.getAttributeName() && null != model) {
if (!content.getTypeCode().equals(model.getContentType())) {
ApsSystemUtils.getLogger().error("Invalid model id " + model.getId() +
" of type " + model.getContentType() + " for content " + this.getContentId());
//return SUCCESS;
}
}
if (model != null) {
this.extractAttributesToEdit(model.getContentShape(), content);
}
List<AttributeInterface> attributes = content.getAttributeList();
for (int i = 0; i < attributes.size(); i++) {
AttributeInterface attribute = attributes.get(i);
//jpfrontshortcut_${typeCodeKey}_${attributeNameI18nKey}
String attributeLabelKey = "jpfrontshortcut_" + content.getTypeCode() + "_" + attribute.getName();
if (null == this.getI18nManager().getLabelGroup(attributeLabelKey)) {
this.addLabelGroups(attributeLabelKey, attribute.getName());
}
attribute.setDisablingCodes(this.createNewCodes(attribute.getDisablingCodes()));
if (null != this.getAttributeName() && !this.getAttributeName().contains(attribute.getName())) {