/** * Creates a CMIS object with properties and policy ids. */ protected ObjectDataImpl createObject(Properties properties, String changeToken, List<String> policies) { ObjectDataImpl object = new ObjectDataImpl(); if (properties == null) { properties = new PropertiesImpl(); if (changeToken != null) { ((PropertiesImpl) properties) .addProperty(new PropertyStringImpl(PropertyIds.CHANGE_TOKEN, changeToken)); } } else if (changeToken != null && !properties.getProperties().containsKey(PropertyIds.CHANGE_TOKEN)) { properties = new PropertiesImpl(properties); ((PropertiesImpl) properties).addProperty(new PropertyStringImpl(PropertyIds.CHANGE_TOKEN, changeToken)); } object.setProperties(properties); if (policies != null && !policies.isEmpty()) { PolicyIdListImpl policyIdList = new PolicyIdListImpl(); policyIdList.setPolicyIds(policies); object.setPolicyIds(policyIdList); } return object; }
result.setPolicyIds(convertPolicyIds(getMap(json.get(JSON_OBJECT_POLICY_IDS))));
result.setPolicyIds(convertPolicyIds(getMap(json.get(JSON_OBJECT_POLICY_IDS))));
PolicyIdListImpl policyIdList = new PolicyIdListImpl(); policyIdList.setPolicyIds(policies); object.setPolicyIds(policyIdList);
result.setPolicyIds(new PolicyIdListImpl());
result.setPolicyIds(new PolicyIdListImpl());
result.setPolicyIds(convert(object.getPolicyIds())); result.setProperties(convert(object.getProperties())); List<ObjectData> relationships = new ArrayList<ObjectData>();
target.setPolicyIds(POLICY_IDS_PARSER.walk(parser)); return true;
target.setPolicyIds(POLICY_IDS_PARSER.walk(parser)); return true;