|
||||||||||
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 String |
RESOURCE_TYPE
|
Constructor Summary | |
---|---|
Unit()
|
Method Summary | ||
---|---|---|
void |
addAttribute(IUnitAttribute<?> attribute)
Add an attribute |
|
|
getAttribute(String strKey)
Get the attribute from a given key |
|
String |
getDescription()
Get the description |
|
int |
getIdParent()
Get the id parent |
|
int |
getIdUnit()
Get the id unit |
|
String |
getLabel()
Get the label |
|
String |
getResourceId()
|
|
String |
getResourceTypeCode()
|
|
boolean |
isRoot()
Check if the unit is the root unit |
|
void |
setDescription(String strDescription)
Set the description |
|
void |
setIdParent(int nIdParent)
Set the id parent |
|
void |
setIdUnit(int nIdUnit)
Set the id unit |
|
void |
setLabel(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 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 String getLabel()
public void setLabel(String strLabel)
strLabel
- the labelpublic String getDescription()
public void setDescription(String strDescription)
strDescription
- the descriptionpublic void setIdParent(int nIdParent)
nIdParent
- the nIdParent to setpublic int getIdParent()
public boolean isRoot()
public <T> IUnitAttribute<T> getAttribute(String strKey)
T
- the class of the attributestrKey
- the key of the attribute
public void addAttribute(IUnitAttribute<?> attribute)
attribute
- the attribute to addpublic String getResourceId()
getResourceId
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public 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 |