|
||||||||||
| 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.UnitHome
public final class UnitHome
UnitHome
| Method Summary | |
|---|---|
static void |
addUserToUnit(int nIdUnit,
int nIdUser)
Add the user to the unit |
static int |
create(Unit unit)
Insert a new unit |
static java.util.List<Unit> |
findAll()
Select all units |
static java.util.List<java.lang.Integer> |
findAllIdsUsers()
Find all ids users |
static java.util.List<Unit> |
findByFilter(UnitFilter uFilter)
Find the units by filter |
static Unit |
findByIdUser(int nIdUser)
Load an unit by id user |
static Unit |
findByPrimaryKey(int nIdUnit)
Load the unit |
static java.util.List<java.lang.Integer> |
findIdsUser(int nIdUnit)
Find the ids user |
static boolean |
hasSubUnits(int nIdUnit)
Check if the given id unit has sub units |
static boolean |
isUserInUnit(int nIdUser)
Check if the user is in the unit |
static void |
remove(int nIdUnit)
Remove a unit |
static void |
removeUserFromUnit(int nIdUser)
Remove an unit from a given id user |
static void |
removeUsersFromUnit(int nIdUnit)
Remove an unit from a given id unit |
static void |
update(Unit unit)
Update a unit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Unit findByPrimaryKey(int nIdUnit)
nIdUnit - the id unit
Unitpublic static Unit findByIdUser(int nIdUser)
nIdUser - the id user
Unitpublic static java.util.List<Unit> findByFilter(UnitFilter uFilter)
uFilter - the filter
Unitpublic static java.util.List<Unit> findAll()
Unitpublic static java.util.List<java.lang.Integer> findAllIdsUsers()
public static java.util.List<java.lang.Integer> findIdsUser(int nIdUnit)
nIdUnit - the id unit
public static int create(Unit unit)
unit - the unit
public static void remove(int nIdUnit)
nIdUnit - the id unitpublic static boolean hasSubUnits(int nIdUnit)
nIdUnit - the id unit
public static void removeUserFromUnit(int nIdUser)
nIdUser - the id userpublic static void removeUsersFromUnit(int nIdUnit)
nIdUnit - the id unitpublic static void update(Unit unit)
unit - the unit
public static void addUserToUnit(int nIdUnit,
int nIdUser)
nIdUnit - the id unitnIdUser - the id userpublic static boolean isUserInUnit(int nIdUser)
nIdUser - the id user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||