05-05-2010 02:04 AM
-Type_A, Meta_A,Meta_B
-Type_B, Meta_A,Meta_C,Meta_D
-Type_C, …
05-10-2010 10:40 PM
05-14-2010 03:42 AM
08-19-2010 07:26 AM
…
<constraint name="sg:SingleDoc" type="ch.custom.model.constraint.SingleDocConstraint">
</constraint>
</constraints>
package ch.custom.model.constraint;
import org.alfresco.repo.dictionary.constraint.AbstractConstraint;
import org.alfresco.service.cmr.dictionary.ConstraintException;
/**
* Check that the document is single in Alfresco. (Check attributes)
*
*/
public class SingleDocConstraint extends AbstractConstraint {
@Override
protected void evaluateSingleValue(Object value) {
// Check if same type with same attributs values exist in alfresco
…
}
}
<types>
<type name="sgf:invoice">
<title>Invoice</title>
<parent>sg:doc</parent>
<properties>
<property name="sgf:Meta_A">
<type>d:text</type>
</property>
</properties>
<constraints>
<constraint ref="sg:SingleDoc" />
</constraints>
</type>
…
10-05-2010 05:19 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.