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:
Britt Park
2007-06-07 20:20:34 +00:00
parent df8ecd7398
commit 32d169b99b
7 changed files with 200 additions and 21 deletions

View File

@@ -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();
}

View File

@@ -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