Search in sources :

Example 6 with PermissionDefinition

use of org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition in project iaf by ibissource.

the class CmisUtils method permissionDefinitionList2xml.

private static XmlBuilder permissionDefinitionList2xml(List<PermissionDefinition> list) {
    XmlBuilder permissionsXml = new XmlBuilder("permissions");
    for (PermissionDefinition permission : list) {
        XmlBuilder permissionXml = new XmlBuilder("permissions");
        permissionXml.addAttribute("id", permission.getId());
        permissionXml.addAttribute("description", permission.getDescription());
        permissionsXml.addSubElement(permissionXml);
    }
    return permissionsXml;
}
Also used : PermissionDefinition(org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition) XmlBuilder(nl.nn.adapterframework.util.XmlBuilder)

Aggregations

PermissionDefinition (org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition)6 ArrayList (java.util.ArrayList)3 HashSet (java.util.HashSet)2 LinkedHashMap (java.util.LinkedHashMap)2 PermissionMapping (org.apache.chemistry.opencmis.commons.data.PermissionMapping)2 BaseTypeId (org.apache.chemistry.opencmis.commons.enums.BaseTypeId)2 PropertyType (org.apache.chemistry.opencmis.commons.enums.PropertyType)2 AclCapabilitiesDataImpl (org.apache.chemistry.opencmis.commons.impl.dataobjects.AclCapabilitiesDataImpl)2 CreatablePropertyTypesImpl (org.apache.chemistry.opencmis.commons.impl.dataobjects.CreatablePropertyTypesImpl)2 NewTypeSettableAttributesImpl (org.apache.chemistry.opencmis.commons.impl.dataobjects.NewTypeSettableAttributesImpl)2 RepositoryCapabilitiesImpl (org.apache.chemistry.opencmis.commons.impl.dataobjects.RepositoryCapabilitiesImpl)2 RepositoryInfoImpl (org.apache.chemistry.opencmis.commons.impl.dataobjects.RepositoryInfoImpl)2 MBaseObjectDAO (com.pogeyan.cmis.api.data.services.MBaseObjectDAO)1 HttpURLConnection (java.net.HttpURLConnection)1 URL (java.net.URL)1 LinkedList (java.util.LinkedList)1 XmlBuilder (nl.nn.adapterframework.util.XmlBuilder)1 AclCapabilities (org.apache.chemistry.opencmis.commons.data.AclCapabilities)1 ExtensionFeature (org.apache.chemistry.opencmis.commons.data.ExtensionFeature)1 RepositoryCapabilities (org.apache.chemistry.opencmis.commons.data.RepositoryCapabilities)1