org.codehaus.plexus.redback.role.util
Class RoleModelUtils

java.lang.Object
  extended by org.codehaus.plexus.redback.role.util.RoleModelUtils

public class RoleModelUtils
extends java.lang.Object

RoleModelUtils:


Constructor Summary
RoleModelUtils()
           
 
Method Summary
static org.codehaus.plexus.util.dag.DAG generateRoleGraph(RedbackRoleModel model)
           
static org.codehaus.plexus.util.dag.DAG generateTemplateGraph(RedbackRoleModel model)
           
static ModelOperation getModelOperation(RedbackRoleModel model, java.lang.String operationId)
          WARNING: can return null
static ModelResource getModelResource(RedbackRoleModel model, java.lang.String resourceId)
           
static ModelRole getModelRole(RedbackRoleModel model, java.lang.String roleId)
          WARNING: can return null
static ModelTemplate getModelTemplate(RedbackRoleModel model, java.lang.String templateId)
          WARNING: can return null
static java.util.List getOperationIdList(RedbackRoleModel model)
           
static java.util.List getResourceIdList(RedbackRoleModel model)
           
static java.util.List getRoleIdList(RedbackRoleModel model)
           
static java.util.List getRoles(RedbackRoleModel model)
           
static java.util.List getTemplateIdList(RedbackRoleModel model)
           
static java.util.List getTemplates(RedbackRoleModel model)
           
static java.util.List reverseTopologicalSortedRoleList(RedbackRoleModel model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleModelUtils

public RoleModelUtils()
Method Detail

getRoles

public static java.util.List getRoles(RedbackRoleModel model)

getTemplates

public static java.util.List getTemplates(RedbackRoleModel model)

getOperationIdList

public static java.util.List getOperationIdList(RedbackRoleModel model)

getResourceIdList

public static java.util.List getResourceIdList(RedbackRoleModel model)

getRoleIdList

public static java.util.List getRoleIdList(RedbackRoleModel model)

getTemplateIdList

public static java.util.List getTemplateIdList(RedbackRoleModel model)

getModelRole

public static ModelRole getModelRole(RedbackRoleModel model,
                                     java.lang.String roleId)
WARNING: can return null

Parameters:
model -
roleId -
Returns:

getModelTemplate

public static ModelTemplate getModelTemplate(RedbackRoleModel model,
                                             java.lang.String templateId)
WARNING: can return null

Parameters:
model -
templateId -
Returns:

getModelOperation

public static ModelOperation getModelOperation(RedbackRoleModel model,
                                               java.lang.String operationId)
WARNING: can return null

Parameters:
model -
operationId -
Returns:

getModelResource

public static ModelResource getModelResource(RedbackRoleModel model,
                                             java.lang.String resourceId)

generateRoleGraph

public static org.codehaus.plexus.util.dag.DAG generateRoleGraph(RedbackRoleModel model)
                                                          throws org.codehaus.plexus.util.dag.CycleDetectedException
Throws:
org.codehaus.plexus.util.dag.CycleDetectedException

generateTemplateGraph

public static org.codehaus.plexus.util.dag.DAG generateTemplateGraph(RedbackRoleModel model)
                                                              throws org.codehaus.plexus.util.dag.CycleDetectedException
Throws:
org.codehaus.plexus.util.dag.CycleDetectedException

reverseTopologicalSortedRoleList

public static java.util.List reverseTopologicalSortedRoleList(RedbackRoleModel model)
                                                       throws org.codehaus.plexus.util.dag.CycleDetectedException
Throws:
org.codehaus.plexus.util.dag.CycleDetectedException


Copyright © 2006-2008 Codehaus. All Rights Reserved.