public final class UnitAttributeManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canCreateSubUnit(int nIdUnit)
Check if the given id unit can creabe sub units
|
static void |
doCreateUnit(Unit unit,
javax.servlet.http.HttpServletRequest request)
Do create the additional attributes of the given unit
|
static void |
doModifyUnit(Unit unit,
javax.servlet.http.HttpServletRequest request)
Do modify the additional attributes of the given unit
|
static void |
doRemoveUnit(int nIdUnit,
javax.servlet.http.HttpServletRequest request)
Do remove the additional attributes
|
static void |
fillModel(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.business.user.AdminUser adminUser,
Map<String,Object> model,
String strMark)
Fill the model for the unit user attribute component
|
static List<IUnitAttributeComponent> |
getListUnitAttributeComponents()
Get the list of unit attribute components
|
static List<IUnitAttributeService> |
getListUnitAttributeService()
Get the list of unit attribute services
|
static void |
moveSubTree(Unit unitToMove,
Unit newUnitParent)
Update attributes to change the parent of a unit.
|
static void |
populate(Unit unit)
Populate an unit additionnal attributes with the data of the database
|
static void |
populate(Unit unit,
javax.servlet.http.HttpServletRequest request)
Populate an unit with the data of the request
|
public static List<IUnitAttributeComponent> getListUnitAttributeComponents()
IUnitAttributeComponentpublic static void fillModel(javax.servlet.http.HttpServletRequest request,
fr.paris.lutece.portal.business.user.AdminUser adminUser,
Map<String,Object> model,
String strMark)
request - the HTTP requestadminUser - the current usermodel - the modelstrMark - the markerpublic static List<IUnitAttributeService> getListUnitAttributeService()
IUnitUserAttributeServicepublic static void populate(Unit unit, javax.servlet.http.HttpServletRequest request) throws UnitErrorException
unit - the unit to populaterequest - the HTTP requestUnitErrorException - exception if there is an error (ex: mandatory field)public static void populate(Unit unit)
unit - the unit to populatepublic static void doCreateUnit(Unit unit, javax.servlet.http.HttpServletRequest request)
unit - the unitrequest - the HTTP requestpublic static void doModifyUnit(Unit unit, javax.servlet.http.HttpServletRequest request)
unit - the unitrequest - the HTTP requestpublic static void doRemoveUnit(int nIdUnit,
javax.servlet.http.HttpServletRequest request)
nIdUnit - the id unitrequest - the HTTP requestpublic static boolean canCreateSubUnit(int nIdUnit)
nIdUnit - the id unitCopyright © 2018 City of Paris. All rights reserved.