1 17 package org.alfresco.service.cmr.security; 18 19 import java.util.Set ; 20 21 35 public interface AuthorityService 36 { 37 46 public boolean hasAdminAuthority(); 47 48 53 public Set <String > getAuthorities(); 54 55 62 public Set <String > getAllAuthorities(AuthorityType type); 63 64 72 73 public Set <String > getAllRootAuthorities(AuthorityType type); 74 75 90 public String createAuthority(AuthorityType type, String parentName, String shortName); 91 92 101 public void addAuthority(String parentName, String childName); 102 103 114 public void removeAuthority(String parentName, String childName); 115 116 121 public void deleteAuthority(String name); 122 123 138 public Set <String > getContainedAuthorities(AuthorityType type, String name, boolean immediate); 139 140 155 public Set <String > getContainingAuthorities(AuthorityType type, String name, boolean immediate); 156 157 163 public String getShortName(String name); 164 165 173 public String getName(AuthorityType type, String shortName); 174 175 } 176 | Popular Tags |