fr.paris.lutece.plugins.unittree.business.unit
Class Unit

java.lang.Object
  extended by fr.paris.lutece.plugins.unittree.business.unit.Unit
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource

public class Unit
extends java.lang.Object
implements fr.paris.lutece.portal.service.rbac.RBACResource

Unit


Field Summary
static int ID_NULL
           
static int ID_ROOT
           
static java.lang.String RESOURCE_TYPE
           
 
Constructor Summary
Unit()
           
 
Method Summary
 void addIdSector(int nIdSector)
          Add the id sector
 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.util.List<java.lang.Integer> getListIdsSector()
          Get the list of ids sector
 java.lang.String getResourceId()
          
 java.lang.String getResourceTypeCode()
          
 boolean hasIdSector(int nIdSector)
          Check if the unit has the given id sector
 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
 void setListIdsSector(java.util.List<java.lang.Integer> listIdsSector)
          Set the list of ids sector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

public static final java.lang.String RESOURCE_TYPE
See Also:
Constant Field Values

ID_ROOT

public static final int ID_ROOT
See Also:
Constant Field Values

ID_NULL

public static final int ID_NULL
See Also:
Constant Field Values
Constructor Detail

Unit

public Unit()
Method Detail

getIdUnit

public int getIdUnit()
Get the id unit

Returns:
the id unit

setIdUnit

public void setIdUnit(int nIdUnit)
Set the id unit

Parameters:
nIdUnit - the id unit

getLabel

public java.lang.String getLabel()
Get the label

Returns:
the label

setLabel

public void setLabel(java.lang.String strLabel)
Set the label

Parameters:
strLabel - the label

getDescription

public java.lang.String getDescription()
Get the description

Returns:
the description

setDescription

public void setDescription(java.lang.String strDescription)
Set the description

Parameters:
strDescription - the description

setIdParent

public void setIdParent(int nIdParent)
Set the id parent

Parameters:
nIdParent - the nIdParent to set

getIdParent

public int getIdParent()
Get the id parent

Returns:
the nIdParent

setListIdsSector

public void setListIdsSector(java.util.List<java.lang.Integer> listIdsSector)
Set the list of ids sector

Parameters:
listIdsSector - the list of ids sector

getListIdsSector

public java.util.List<java.lang.Integer> getListIdsSector()
Get the list of ids sector

Returns:
the list of ids sector

addIdSector

public void addIdSector(int nIdSector)
Add the id sector

Parameters:
nIdSector - the id sector

hasIdSector

public boolean hasIdSector(int nIdSector)
Check if the unit has the given id sector

Parameters:
nIdSector - the id sector
Returns:
true if the unit has the id sector, false otherwise

isRoot

public boolean isRoot()
Check if the unit is the root unit

Returns:
true if the unit is the root unit, false otherwise

getResourceId

public java.lang.String getResourceId()

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource

getResourceTypeCode

public java.lang.String getResourceTypeCode()

Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource


Copyright © 2012 Mairie de Paris. All Rights Reserved.