Search in sources :

Example 1 with StructrPermissionDefinition

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

the class StructrRepositoryInfo method getPermissions.

@Override
public List<PermissionDefinition> getPermissions() {
    final List<PermissionDefinition> permissions = new LinkedList<>();
    permissions.add(new StructrPermissionDefinition(Permission.read, "Read access"));
    permissions.add(new StructrPermissionDefinition(Permission.write, "Write access"));
    permissions.add(new StructrPermissionDefinition(Permission.delete, "Write access"));
    permissions.add(new StructrPermissionDefinition(Permission.accessControl, "Access control"));
    return permissions;
}
Also used : StructrPermissionDefinition(org.structr.files.cmis.repository.StructrPermissionDefinition) StructrPermissionDefinition(org.structr.files.cmis.repository.StructrPermissionDefinition) PermissionDefinition(org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition) LinkedList(java.util.LinkedList)

Aggregations

LinkedList (java.util.LinkedList)1 PermissionDefinition (org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition)1 StructrPermissionDefinition (org.structr.files.cmis.repository.StructrPermissionDefinition)1