Hi,
I'm decyphering EWS in Content Server 10.0.0 and need a little help here. Code follows with 2 major issues.
First I need to get the list of users and groups that have permissions over a node. There is a NodePermissions class but it only (that's my guess) shows permissions for the current user. How can you achieve this?
Second I'm retrieving metadata of the object, this will list categories associated to the object. I can list the metadata name and the identifier but cannot access the value (there are 3 fields in the DataValue object but there are only 2 get or set methods).
Thanks for your help.
Node node = dm.getNode(osb.getObjectId());
NodePermissions permissions = node.getPermissions();
Metadata metadata = node.getMetadata();
List<AttributeGroup> attributeGroups = metadata.getAttributeGroups();
for (Iterator<AttributeGroup> itAttrGroup = attributeGroups.iterator();itAttrGroup.hasNext();)
{
AttributeGroup attGroup = itAttrGroup.next();
System. out .println(attGroup.getDisplayName());
List<DataValue> dataValues = attGroup.getValues();
for (Iterator<DataValue> itDataValue = dataValues.iterator();itDataValue.hasNext();)
{
DataValue dV = itDataValue.next();
System. out .println(dV.getKey() + " : " + dV.getDescription());
}
}