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.namespace.QName; 23 24 31 public interface PermissionService 32 { 33 38 public String getOwnerAuthority(); 39 40 45 public String getAllAuthorities(); 46 47 52 public PermissionReference getAllPermission(); 53 54 62 public Set <AccessPermission> getPermissions(NodeRef nodeRef); 63 64 72 public Set <AccessPermission> getAllPermissions(NodeRef nodeRef); 73 74 80 public Set <PermissionReference> getSettablePermissions(NodeRef nodeRef); 81 82 88 public Set <PermissionReference> getSettablePermissions(QName type); 89 90 97 public NodePermissionEntry getSetPermissions(NodeRef nodeRef); 98 99 107 public boolean hasPermission(NodeRef nodeRef, PermissionReference perm); 108 109 118 public NodePermissionEntry explainPermission(NodeRef nodeRef, PermissionReference perm); 119 120 124 public void deletePermissions(NodeRef nodeRef); 125 126 130 public void deletePermissions(NodePermissionEntry nodePermissionEntry); 131 132 136 public void deletePermission(PermissionEntry permissionEntry); 137 138 145 public void deletePermission(NodeRef nodeRef, String authority, PermissionReference perm, boolean allow); 146 147 155 public void setPermission(NodeRef nodeRef, String authority, PermissionReference perm, boolean allow); 156 157 162 public void setPermission(PermissionEntry permissionEntry); 163 164 169 public void setPermission(NodePermissionEntry nodePermissionEntry); 170 171 177 public void setInheritParentPermissions(NodeRef nodeRef, boolean inheritParentPermissions); 178 179 186 public PermissionReference getPermissionReference(QName qname, String permissionName); 187 } 188 | Popular Tags |