mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
AVMLockingService is better tested now. Added isAdminAuthority() to
AuthorityService. Can be removed if this is objectionable. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5887 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -122,4 +122,10 @@ public interface AVMLockingService
|
||||
* @return Whether the user has access.
|
||||
*/
|
||||
public boolean hasAccess(String webProject, String avmPath, String user);
|
||||
|
||||
/**
|
||||
* Get the names of all the web projects the service knows about.
|
||||
* @return The list of web project names.
|
||||
*/
|
||||
public List<String> getWebProjects();
|
||||
}
|
||||
|
@@ -57,6 +57,15 @@ public interface AuthorityService
|
||||
*/
|
||||
@Auditable
|
||||
public boolean hasAdminAuthority();
|
||||
|
||||
/**
|
||||
* Does the given authority have admin authority.
|
||||
*
|
||||
* @param authorityName The name of the authority.
|
||||
* @return Whether the authority is an admin.
|
||||
*/
|
||||
@Auditable(parameters = {"authorityName"})
|
||||
public boolean isAdminAuthority(String authorityName);
|
||||
|
||||
/**
|
||||
* Get the authorities for the current user
|
||||
|
Reference in New Issue
Block a user