Search in sources :

Example 1 with StructrWritePermissionMapping

use of org.structr.files.cmis.repository.StructrWritePermissionMapping in project structr by structr.

the class StructrRepositoryInfo method getPermissionMapping.

@Override
public Map<String, PermissionMapping> getPermissionMapping() {
    final Map<String, PermissionMapping> mapping = new LinkedHashMap<>();
    mapping.put(Permission.read.name(), new StructrReadPermissionMapping());
    mapping.put(Permission.write.name(), new StructrWritePermissionMapping());
    mapping.put(Permission.delete.name(), new StructrDeletePermissionMapping());
    mapping.put(Permission.accessControl.name(), new StructrAccessControlPermissionMapping());
    return mapping;
}
Also used : StructrWritePermissionMapping(org.structr.files.cmis.repository.StructrWritePermissionMapping) StructrAccessControlPermissionMapping(org.structr.files.cmis.repository.StructrAccessControlPermissionMapping) StructrDeletePermissionMapping(org.structr.files.cmis.repository.StructrDeletePermissionMapping) StructrReadPermissionMapping(org.structr.files.cmis.repository.StructrReadPermissionMapping) PermissionMapping(org.apache.chemistry.opencmis.commons.data.PermissionMapping) StructrReadPermissionMapping(org.structr.files.cmis.repository.StructrReadPermissionMapping) StructrDeletePermissionMapping(org.structr.files.cmis.repository.StructrDeletePermissionMapping) StructrWritePermissionMapping(org.structr.files.cmis.repository.StructrWritePermissionMapping) StructrAccessControlPermissionMapping(org.structr.files.cmis.repository.StructrAccessControlPermissionMapping) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

LinkedHashMap (java.util.LinkedHashMap)1 PermissionMapping (org.apache.chemistry.opencmis.commons.data.PermissionMapping)1 StructrAccessControlPermissionMapping (org.structr.files.cmis.repository.StructrAccessControlPermissionMapping)1 StructrDeletePermissionMapping (org.structr.files.cmis.repository.StructrDeletePermissionMapping)1 StructrReadPermissionMapping (org.structr.files.cmis.repository.StructrReadPermissionMapping)1 StructrWritePermissionMapping (org.structr.files.cmis.repository.StructrWritePermissionMapping)1