1 17 package org.alfresco.repo.security.permissions.impl; 18 19 import java.util.Set ; 20 21 import org.alfresco.repo.security.permissions.PermissionEntry; 22 import org.alfresco.repo.security.permissions.PermissionReference; 23 import org.alfresco.service.cmr.repository.NodeRef; 24 import org.alfresco.service.namespace.QName; 25 26 31 public interface ModelDAO 32 { 33 34 40 public Set <PermissionReference> getAllPermissions(QName type); 41 42 49 public Set <PermissionReference> getAllPermissions(NodeRef nodeRef); 50 51 57 public Set <PermissionReference> getExposedPermissions(QName type); 58 59 66 public Set <PermissionReference> getExposedPermissions(NodeRef nodeRef); 67 68 74 public Set <PermissionReference> getGrantingPermissions(PermissionReference perm); 75 76 85 public Set <PermissionReference> getRequiredPermissions(PermissionReference required, QName qName, Set <QName> aspectQNames, RequiredPermission.On on); 86 87 93 public Set <PermissionReference> getGranteePermissions(PermissionReference permissionReference); 94 95 101 public boolean checkPermission(PermissionReference required); 102 103 109 public boolean isUnique(PermissionReference permissionReference); 110 111 119 public PermissionReference getPermissionReference(QName qname, String permissionName); 120 121 127 public Set <? extends PermissionEntry> getGlobalPermissionEntries(); 128 129 } 130 | Popular Tags |