alfresco
다이내믹리스트가있는 Alfresco 모델
수색…
기본 예제
content-model.xml :
....
<constraints>
<constraint name="my:aConstraintList" type="x.y.z.project.model.constraint.AConstraintList">
</constraint>
....
<property name="my:aValue">
<title>My Value</title>
<type>d:text</type>
<constraints>
<constraint ref="my:aConstraintList"></constraint>
</constraints>
</property>
그리고 전에 선언 된 자바 클래스 :
public class AConstraintList extends ListOfValuesConstraint implements Serializable {
....
@Override
public final List<String> getAllowedValues() {
// Return here the list of values. Enum, call a webservice, etc.
}
@Override
public final String getDisplayLabel(final String value, final MessageLookup messageLookup) {
// Return here the label for the value
}
}
Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow