|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUnitService
IUnitService
Field Summary | |
---|---|
static java.lang.String |
BEAN_UNIT_SERVICE
|
Method Summary | |
---|---|
boolean |
canCreateSubUnit(int nIdUnit)
Check if the given id unit, we can create sub unit. |
int |
createUnit(Unit unit)
Create a unit |
java.util.List<Unit> |
findBySectorId(long lIdSector)
Return all the Unit of the Sector |
java.util.List<Unit> |
getAllUnits(boolean bGetIdsSector)
Get all units |
java.util.List<IAction> |
getListActions(java.lang.String strActionType,
java.util.Locale locale,
Unit unit,
fr.paris.lutece.portal.business.user.AdminUser user)
Get the list of actions |
Unit |
getRootUnit(boolean bGetIdsSector)
Get the root unit |
java.util.List<Unit> |
getSubUnits(int nIdUnit,
boolean bGetIdsSector)
Get the sub units from a given id unit |
fr.paris.lutece.util.ReferenceList |
getSubUnitsAsReferenceList(int nIdUnit,
java.util.Locale locale)
Get the sub units as a ReferenceList |
javax.xml.transform.Source |
getTreeXsl()
Get the XSL of the tree |
Unit |
getUnit(int nIdUnit,
boolean bGetIdsSector)
Get the unit |
Unit |
getUnitByIdUser(int nIdUser,
boolean bGetSectors)
Get the unit by id user |
java.util.List<Unit> |
getUnitsFirstLevel(boolean bGetIdsSector)
Get the units first level |
java.lang.String |
getXMLUnits()
Get the XML units |
boolean |
hasSubUnits(int nIdUnit)
Check if the given id unit has sub units |
boolean |
isAuthorized(java.lang.String strIdResource,
java.lang.String strPermission,
fr.paris.lutece.portal.business.user.AdminUser user)
See isAuthorized(Unit, String, AdminUser) |
boolean |
isAuthorized(Unit unit,
java.lang.String strPermission,
fr.paris.lutece.portal.business.user.AdminUser user)
Check if the given user is authorized to do the action for a given unit. |
boolean |
isParent(Unit unitParent,
Unit unitRef)
Check if the first unit in parameter is parent of the second unit in parameter |
void |
removeUnit(int nIdUnit)
Remove the unit only if the unit does not have sub units |
void |
updateUnit(Unit unit)
Update the unit |
Field Detail |
---|
static final java.lang.String BEAN_UNIT_SERVICE
Method Detail |
---|
Unit getUnit(int nIdUnit, boolean bGetIdsSector)
nIdUnit
- the id unitbGetIdsSector
- true if it must get the ids sector
Unit
Unit getRootUnit(boolean bGetIdsSector)
bGetIdsSector
- true if it must get the ids sector
Unit
Unit getUnitByIdUser(int nIdUser, boolean bGetSectors)
nIdUser
- the id userbGetSectors
- true if it must get the ids sector
Unit
java.util.List<Unit> getAllUnits(boolean bGetIdsSector)
bGetIdsSector
- true if it must get the ids sector
Unit
java.util.List<Unit> getUnitsFirstLevel(boolean bGetIdsSector)
bGetIdsSector
- true if it must get the ids sector
Unit
java.util.List<Unit> getSubUnits(int nIdUnit, boolean bGetIdsSector)
nIdUnit
- the id unitbGetIdsSector
- true if it must get the ids sector
Unit
java.util.List<IAction> getListActions(java.lang.String strActionType, java.util.Locale locale, Unit unit, fr.paris.lutece.portal.business.user.AdminUser user)
strActionType
- the action typelocale
- the localeunit
- the unituser
- the user
IAction
fr.paris.lutece.util.ReferenceList getSubUnitsAsReferenceList(int nIdUnit, java.util.Locale locale)
ReferenceList
nIdUnit
- the id unitlocale
- the locale
ReferenceList
java.lang.String getXMLUnits()
javax.xml.transform.Source getTreeXsl()
boolean hasSubUnits(int nIdUnit)
nIdUnit
- the id unit
boolean isParent(Unit unitParent, Unit unitRef)
unitParent
- the unit parent ?unitRef
- of the unit ?
boolean canCreateSubUnit(int nIdUnit)
nIdUnit
- the id unit
boolean isAuthorized(Unit unit, java.lang.String strPermission, fr.paris.lutece.portal.business.user.AdminUser user)
unit
- the unitstrPermission
- the permissionuser
- the user
boolean isAuthorized(java.lang.String strIdResource, java.lang.String strPermission, fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorized(Unit, String, AdminUser)
strResourceType
- the resource typestrIdResource
- the id resourcestrPermission
- the permissionuser
- the user
@Transactional(value="unittree.transactionManager") int createUnit(Unit unit)
unit
- the unit
@Transactional(value="unittree.transactionManager") void updateUnit(Unit unit)
unit
- the unit@Transactional(value="unittree.transactionManager") void removeUnit(int nIdUnit)
nIdUnit
- the id unitjava.util.List<Unit> findBySectorId(long lIdSector)
lIdSector
- id sector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |