| java.lang.Object org.objectweb.speedo.pobjects.cap.JDORole
JDORole | public class JDORole (Code) | | author: mhoudu |
JDORole | public JDORole(int id, String label, Collection scopes, Collection actions)(Code) | | Default constructor.
Parameters: id - The role identifier. Parameters: label - The role label. Parameters: scopes - The role scopes. Parameters: actions - The role actions. |
addAction | public void addAction(JDOAction action, boolean isDisplayedInMenu, int displayOrder)(Code) | | Adds an action to the role.
Parameters: action - The action to add. Parameters: isDisplayedInMenu - The flag which indicates if the action has to be displayed in the menu or not. Parameters: displayOrder - The isplay order. |
getActions | public Collection getActions()(Code) | | Gets the actions.
Returns the actions. |
getId | public int getId()(Code) | | Gets the id.
Returns the id. |
getLabel | public String getLabel()(Code) | | Gets the label.
Returns the label. |
getScopes | public Collection getScopes()(Code) | | Gets the scopes.
Returns the scopes. |
hasAction | public boolean hasAction(JDOAction action)(Code) | | Tells if this role has the specified action.
Parameters: action - the action to check. true if this role has the specified action,false otherwise. |
hasScope | public boolean hasScope(JDOScope scope)(Code) | | Tells if this role has the specified scope.
Parameters: scope - the scope to check. true if this role has the specified scope,false otherwise. |
setActions | public void setActions(Collection actions)(Code) | | Sets the actions.
Parameters: actions - The actions to set. |
setId | public void setId(int id)(Code) | | Sets the id.
Parameters: id - The id to set. |
setLabel | public void setLabel(String label)(Code) | | Sets the label.
Parameters: label - The label to set. |
setScopes | public void setScopes(Collection scopes)(Code) | | Sets the scopes.
Parameters: scopes - The scope to set. |
|
|