public final class RightHome extends Object
Modifier and Type | Method and Description |
---|---|
static int |
changeRightOrder(Right right,
int nNewOrder)
Change the order in a
Right |
static boolean |
checkFeatureOrders(String strFeatureGroup)
Check feature orders and return false if at least one order is twice
|
static Right |
create(Right right)
Creation of an instance of an admin right
|
static void |
deleteEntryFromList(String strFeatureGroup,
int nOrderId)
Delete entry (specify by nOrderId)
|
static Right |
findByPrimaryKey(String strKey)
Returns an instance of an admin right whose identifier is specified in parameter
|
static Collection<Right> |
getExternalRightList() |
static Collection<Right> |
getRightsList()
Loads the data of all the rights and returns them in form of a collection
|
static Collection<Right> |
getRightsList(int nLevel)
Loads the data of all the rights with level greater or equal than nLevel and returns them in form of a collection
|
static Collection<Right> |
getRightsList(String strFeatureGroup)
Loads the data of all the rights with the specified feature group and returns them in form of a collection
|
static void |
reinitFeatureOrders(String strFeatureGroup)
Reinitialize feature order groups
|
static void |
remove(String strId)
Remove the admin right whose identifier is specified in parameter
|
static Right |
update(Right right)
Update of the admin right which is specified
|
public static Right create(Right right)
right
- An instance of an admin right which contains the informations to storepublic static Right update(Right right)
right
- The instance of the admin right which contains the data to storepublic static void remove(String strId)
strId
- The identifier of the admin right to removepublic static Right findByPrimaryKey(String strKey)
strKey
- The admin right primary keypublic static Collection<Right> getRightsList()
public static Collection<Right> getRightsList(int nLevel)
nLevel
- The right's levelpublic static Collection<Right> getRightsList(String strFeatureGroup)
strFeatureGroup
- the name of the feature grouppublic static int changeRightOrder(Right right, int nNewOrder)
Right
right
- The right to update ordernNewOrder
- The new place in the list or END_OF_LIST to place Right at the endpublic static void deleteEntryFromList(String strFeatureGroup, int nOrderId)
strFeatureGroup
- The FeatureGroup
impactednOrderId
- The order to deletepublic static void reinitFeatureOrders(String strFeatureGroup)
strFeatureGroup
- The feature group keypublic static boolean checkFeatureOrders(String strFeatureGroup)
strFeatureGroup
- The feature group keypublic static Collection<Right> getExternalRightList()
Copyright © 2020 City of Paris. All rights reserved.