07-10-2008 01:22 PM
07-11-2008 03:23 PM
07-11-2008 04:17 PM
07-11-2008 05:39 PM
08-29-2008 06:05 AM
08-29-2008 12:46 PM
private PropertyDefinition getProperyDefinition(String aspectLocalName, String propertyLocalName) {
AspectDefinition pbContentPropsAspect = ds.getAspect(QName.createQName(CustomModelHelper.PB_NAMESPACE_URI, aspectLocalName));
Iterator<PropertyDefinition> propDefIter = pbContentPropsAspect.getProperties().values().iterator();
while (propDefIter.hasNext()) {
PropertyDefinition propDef = propDefIter.next();
if (propDef.getName().getLocalName().equalsIgnoreCase(propertyLocalName)) {
return propDef;
}
}
return null;
}
public PBListOfValuesConstraint getPBValueConstraint(String aspectLocalName, String propertyLocalName) {
PBListOfValuesConstraint pbLOVConstraint = null;
PropertyDefinition pbRoleAccessPropertyDef = getProperyDefinition(aspectLocalName, propertyLocalName);
ListIterator<ConstraintDefinition> constraintDefIter = pbRoleAccessPropertyDef.getConstraints().listIterator();
while (constraintDefIter.hasNext()) {
Constraint constraint = ((ConstraintDefinition)constraintDefIter.next()).getConstraint();
if (constraint instanceof PBListOfValuesConstraint) {
pbLOVConstraint = (PBListOfValuesConstraint) constraint;
}
}
return pbLOVConstraint;
}
06-15-2011 03:34 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.