| java.lang.Object org.apache.lenya.cms.ac.usecase.impl.UsecaseRoles
UsecaseRoles | public class UsecaseRoles (Code) | | Class to manage roles for a usecase.
version: $Id: UsecaseRoles.java 562973 2007-08-05 21:44:42Z nettings $ |
UsecaseRoles | public UsecaseRoles()(Code) | | Ctor.
|
addRole | public void addRole(String usecase, String role)(Code) | | Parameters: usecase - The usecase name. Parameters: role - The role ID. |
getRoles | public String[] getRoles(String usecaseId)(Code) | | Returns the roles for a usecase. If no roles are defined for this
usecase, an array of size 0 is returned.
Parameters: usecaseId - The usecase ID. A role array. |
getUsecaseNames | public String[] getUsecaseNames()(Code) | | All available usecase names. |
hasRoles | public boolean hasRoles(String usecaseId)(Code) | | Checks if a usecase has roles.
Parameters: usecaseId - The usecase ID. A boolean value. |
removeRole | public void removeRole(String usecase, String role)(Code) | | Parameters: usecase - The usecase. Parameters: role - The role. |
setRoles | public void setRoles(String usecaseId, String[] roleIds)(Code) | | Sets the roles for a usecase.
Parameters: usecaseId - The usecase ID. Parameters: roleIds - The role IDs. |
|
|