Class RoleModelUtils
- java.lang.Object
-
- org.apache.archiva.redback.role.util.RoleModelUtils
-
public class RoleModelUtils extends Object
RoleModelUtils:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RoleModelUtils.RoleRelation
static class
RoleModelUtils.RoleType
-
Constructor Summary
Constructors Constructor Description RoleModelUtils()
-
Method Summary
-
-
-
Field Detail
-
ROOT
public static final String ROOT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RoleModelUtils
public RoleModelUtils()
-
-
Method Detail
-
getRoles
public static List<ModelRole> getRoles(RedbackRoleModel model)
-
getTemplates
public static List<ModelTemplate> getTemplates(RedbackRoleModel model)
-
getOperationIdList
public static List<String> getOperationIdList(RedbackRoleModel model)
-
getResourceIdList
public static List<String> getResourceIdList(RedbackRoleModel model)
-
getRoleIdList
public static List<String> getRoleIdList(RedbackRoleModel model)
-
getTemplateIdList
public static List<String> getTemplateIdList(RedbackRoleModel model)
-
getModelRole
public static ModelRole getModelRole(RedbackRoleModel model, String roleId)
WARNING: can return null- Parameters:
model
-roleId
-- Returns:
-
getModelTemplate
public static ModelTemplate getModelTemplate(RedbackRoleModel model, String templateId)
WARNING: can return null- Parameters:
model
-templateId
-- Returns:
-
getModelOperation
public static ModelOperation getModelOperation(RedbackRoleModel model, String operationId)
WARNING: can return null- Parameters:
model
-operationId
-- Returns:
-
getModelResource
public static ModelResource getModelResource(RedbackRoleModel model, String resourceId)
-
generateRoleGraph
public static org.apache.archiva.components.graph.base.SimpleGraph generateRoleGraph(RedbackRoleModel model)
-
generateTemplateGraph
public static org.apache.archiva.components.graph.base.SimpleGraph generateTemplateGraph(RedbackRoleModel model)
-
reverseTopologicalSortedRoleList
public static List<String> reverseTopologicalSortedRoleList(RedbackRoleModel model)
-
-