this.owner = owner;
this.user = LogonControllerFactory.getInstance().getUser(request);
this.assignOnly = assignOnly;
userAttributeValueItems = new ArrayList<AttributeValueItem>();
for (PropertyDefinition d : propertyClass.getDefinitions()) {
AttributeDefinition def = new DefaultAttributeDefinition(d.getType(), d.getName(), d.getTypeMeta(), d.getCategory(), "", d
.getDefaultValue(), AttributeDefinition.UNKNOWN, 10, d.getMessageResourcesKey(), false, d.getLabel(), d.getDescription(), false, false, "");
def.init(propertyClass);
if (!def.isHidden() && isResourcePropertyDefinition(resource, d)) {
String value = def.getDefaultValue();
if (resource != null) {
value = Property.getProperty(new ResourceKey(def.getName(), resource.getResourceType(), resource.getResourceId()));
}
AttributeValueItem item = new AttributeValueItem(def, request, value, getSubCategoryString(resource));
userAttributeValueItems.add(item);
}
}