1 17 package org.alfresco.repo.security.permissions; 18 19 import java.util.Set ; 20 21 import org.alfresco.service.cmr.repository.NodeRef; 22 import org.alfresco.service.cmr.security.AccessStatus; 23 import org.alfresco.service.cmr.security.PermissionService; 24 import org.alfresco.service.namespace.QName; 25 26 33 public interface PermissionServiceSPI extends PermissionService 34 { 35 40 public PermissionReference getAllPermissionReference(); 41 42 48 public Set <PermissionReference> getSettablePermissionReferences(QName type); 49 50 56 public Set <PermissionReference> getSettablePermissionReferences(NodeRef nodeRef); 57 58 65 public NodePermissionEntry getSetPermissions(NodeRef nodeRef); 66 67 75 public AccessStatus hasPermission(NodeRef nodeRef, PermissionReference perm); 76 77 86 public NodePermissionEntry explainPermission(NodeRef nodeRef, PermissionReference perm); 87 88 92 public void deletePermissions(NodePermissionEntry nodePermissionEntry); 93 94 98 public void deletePermission(PermissionEntry permissionEntry); 99 100 105 public void setPermission(PermissionEntry permissionEntry); 106 107 112 public void setPermission(NodePermissionEntry nodePermissionEntry); 113 114 121 public PermissionReference getPermissionReference(QName qname, String permissionName); 122 123 129 public PermissionReference getPermissionReference(String permissionName); 130 131 132 138 public String getPermission(PermissionReference permissionReference); 139 140 public void deletePermissions(String recipient); 141 } 142 | Popular Tags |