|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUnitService
IUnitService
| Field Summary | |
|---|---|
static 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,
javax.servlet.http.HttpServletRequest request)
Create a unit |
List<Unit> |
findBySectorId(int nIdSector)
Find by sector id |
List<Unit> |
getAllUnits(boolean bGetAdditionalInfos)
Get all units |
List<IAction> |
getListActions(String strActionType,
Locale locale,
Unit unit,
fr.paris.lutece.portal.business.user.AdminUser user)
Get the list of actions |
Unit |
getRootUnit(boolean bGetAdditionalInfos)
Get the root unit |
List<Unit> |
getSubUnits(int nIdUnit,
boolean bGetAdditionalInfos)
Get the sub units from a given id unit |
fr.paris.lutece.util.ReferenceList |
getSubUnitsAsReferenceList(int nIdUnit,
Locale locale)
Get the sub units as a ReferenceList |
Source |
getTreeXsl()
Get the XSL of the tree |
Unit |
getUnit(int nIdUnit,
boolean bGetAdditionalInfos)
Get the unit |
List<Unit> |
getUnitsByIdUser(int nIdUser,
boolean bGetAdditionalInfos)
Get the unit by id user |
List<Unit> |
getUnitsFirstLevel(boolean bGetAdditionalInfos)
Get the units first level |
List<Unit> |
getUnitWithNoChildren()
Return all the Unit with no children (level 0) |
String |
getXMLUnits()
Get the XML units |
boolean |
hasSubUnits(int nIdUnit)
Check if the given id unit has sub units |
boolean |
isAuthorized(String strIdResource,
String strPermission,
fr.paris.lutece.portal.business.user.AdminUser user)
See isAuthorized(Unit, String, AdminUser) |
boolean |
isAuthorized(Unit unit,
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 |
boolean |
moveSubTree(Unit unitToMove,
Unit newUnitParent)
Change the parent of a unit. |
void |
removeUnit(int nIdUnit,
javax.servlet.http.HttpServletRequest request)
Remove the unit only if the unit does not have sub units |
void |
updateUnit(Unit unit,
javax.servlet.http.HttpServletRequest request)
Update the unit |
| Field Detail |
|---|
static final String BEAN_UNIT_SERVICE
| Method Detail |
|---|
Unit getUnit(int nIdUnit,
boolean bGetAdditionalInfos)
nIdUnit - the id unitbGetAdditionalInfos - true if it must get the additional infos
UnitUnit getRootUnit(boolean bGetAdditionalInfos)
bGetAdditionalInfos - true if it must get the ids sector
Unit
List<Unit> getUnitsByIdUser(int nIdUser,
boolean bGetAdditionalInfos)
nIdUser - the id userbGetAdditionalInfos - true if it must get the ids sector
UnitList<Unit> getAllUnits(boolean bGetAdditionalInfos)
bGetAdditionalInfos - true if it must get the ids sector
UnitList<Unit> getUnitsFirstLevel(boolean bGetAdditionalInfos)
bGetAdditionalInfos - true if it must get the ids sector
Unit
List<Unit> getSubUnits(int nIdUnit,
boolean bGetAdditionalInfos)
nIdUnit - the id unitbGetAdditionalInfos - true if it must get the ids sector
Unit
List<IAction> getListActions(String strActionType,
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,
Locale locale)
ReferenceList
nIdUnit - the id unitlocale - the locale
ReferenceListString getXMLUnits()
Source getTreeXsl()
List<Unit> findBySectorId(int nIdSector)
nIdSector - id sector
List<Unit> getUnitWithNoChildren()
boolean hasSubUnits(int nIdUnit)
nIdUnit - the id unit
boolean isParent(Unit unitParent,
Unit unitRef)
unitParent - the parent unitunitRef - the unit to check
boolean canCreateSubUnit(int nIdUnit)
nIdUnit - the id unit
boolean isAuthorized(Unit unit,
String strPermission,
fr.paris.lutece.portal.business.user.AdminUser user)
unit - the unitstrPermission - the permissionuser - the user
boolean isAuthorized(String strIdResource,
String strPermission,
fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorized(Unit, String, AdminUser)
strIdResource - the id resourcestrPermission - the permissionuser - the user
@Transactional(value="unittree.transactionManager")
int createUnit(Unit unit,
javax.servlet.http.HttpServletRequest request)
throws UnitErrorException
unit - the unitrequest - the HTTP request
UnitErrorException - exception if there is an application error
@Transactional(value="unittree.transactionManager")
void updateUnit(Unit unit,
javax.servlet.http.HttpServletRequest request)
throws UnitErrorException
unit - the unitrequest - the HTTP request
UnitErrorException - exception if there is an application error
@Transactional(value="unittree.transactionManager")
void removeUnit(int nIdUnit,
javax.servlet.http.HttpServletRequest request)
nIdUnit - the id unitrequest - the HTTP request
@Transactional(value="unittree.transactionManager")
boolean moveSubTree(Unit unitToMove,
Unit newUnitParent)
unitToMove - The unit to change the parent of.newUnitParent - The new parent of the unit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||