|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.unittree.business.unit.Unit
public class Unit
Unit
| Field Summary | |
|---|---|
static int |
ID_NULL
|
static int |
ID_ROOT
|
static java.lang.String |
RESOURCE_TYPE
|
| Constructor Summary | |
|---|---|
Unit()
|
|
| Method Summary | ||
|---|---|---|
void |
addAttribute(IUnitAttribute<?> attribute)
Add an attribute |
|
|
getAttribute(java.lang.String strKey)
Get the attribute from a given key |
|
java.lang.String |
getDescription()
Get the description |
|
int |
getIdParent()
Get the id parent |
|
int |
getIdUnit()
Get the id unit |
|
java.lang.String |
getLabel()
Get the label |
|
java.lang.String |
getResourceId()
|
|
java.lang.String |
getResourceTypeCode()
|
|
boolean |
isRoot()
Check if the unit is the root unit |
|
void |
setDescription(java.lang.String strDescription)
Set the description |
|
void |
setIdParent(int nIdParent)
Set the id parent |
|
void |
setIdUnit(int nIdUnit)
Set the id unit |
|
void |
setLabel(java.lang.String strLabel)
Set the label |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RESOURCE_TYPE
public static final int ID_ROOT
public static final int ID_NULL
| Constructor Detail |
|---|
public Unit()
| Method Detail |
|---|
public int getIdUnit()
public void setIdUnit(int nIdUnit)
nIdUnit - the id unitpublic java.lang.String getLabel()
public void setLabel(java.lang.String strLabel)
strLabel - the labelpublic java.lang.String getDescription()
public void setDescription(java.lang.String strDescription)
strDescription - the descriptionpublic void setIdParent(int nIdParent)
nIdParent - the nIdParent to setpublic int getIdParent()
public boolean isRoot()
public <T> IUnitAttribute<T> getAttribute(java.lang.String strKey)
T - the class of the attributestrKey - the key of the attribute
public void addAttribute(IUnitAttribute<?> attribute)
attribute - the attribute to addpublic java.lang.String getResourceId()
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResourcepublic java.lang.String getResourceTypeCode()
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||