yawda.data.model.application
Class CGroup
java.lang.Object
yawda.data.model.application.CGroup
- public final class CGroup
- extends Object
This class represent a group (role)
- Author:
- Quentin Anciaux
CGroup
public CGroup(CModule parent,
String name,
boolean disabled)
- Create a new group
- Parameters:
parent - The module to associate to this groupname - The name of the groupdisabled - if true, the associated module is disabled for this group
isDisabled
public final boolean isDisabled()
- Returns:
- true, if this groupd disable the associated module
getParent
public final CModule getParent()
- Returns:
- the associated module
getName
public final String getName()
- Returns:
- the name of the group
unmarshall
public static final CGroup unmarshall(Node node,
CModule parent)
- Unmarshall a group object
- Parameters:
node - a <group> tag nodeparent - the module to associate the unmarshalled group
- Returns:
- The unmarshalled group
toString
public final String toString()
- See Also:
Object.toString()
toString
public final String toString(String tabs)
- Parameters:
tabs - A string containing one or more tabs '\t'
- Returns:
- The group as an xml string.