Class FeatureGroupHome
java.lang.Object
fr.paris.lutece.portal.business.right.FeatureGroupHome
This class provides instances management methods (create, find, ...) for feature groups objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic intchangeRightOrder(FeatureGroup featureGroup, int nNewOrder) Change the order in aRightstatic FeatureGroupcreate(FeatureGroup featureGroup) Creation of an instance of an feature groupstatic voiddeleteEntryFromList(int nOrderId) Delete entry (specify by nOrderId)static FeatureGroupfindByPrimaryKey(String strKey) Returns an instance of an feature group whose identifier is specified in parameterstatic intGets the count of groupsstatic List<FeatureGroup>Loads the data of all the feature groups and returns them in form of a collectionstatic ReferenceListLoads the data of all the feature groups and returns them in form of a reference liststatic voidRemove the feature group whose identifier is specified in parameterstatic FeatureGroupupdate(FeatureGroup featureGroup) Update of the feature group which is specified
-
Method Details
-
create
Creation of an instance of an feature group- Parameters:
featureGroup- An instance of an feature group which contains the informations to store- Returns:
- The instance of an feature group which has been created with its primary key.
-
update
Update of the feature group which is specified- Parameters:
featureGroup- The instance of the feature group which contains the data to store- Returns:
- The instance of the feature group which has been updated
-
remove
Remove the feature group whose identifier is specified in parameter- Parameters:
strId- The identifier of the feature group to remove
-
deleteEntryFromList
public static void deleteEntryFromList(int nOrderId) Delete entry (specify by nOrderId)- Parameters:
nOrderId- The order to delete
-
findByPrimaryKey
Returns an instance of an feature group whose identifier is specified in parameter- Parameters:
strKey- The feature group primary key- Returns:
- an instance of an feature group
-
getFeatureGroupsList
Loads the data of all the feature groups and returns them in form of a collection- Returns:
- the collection which contains the data of all the feature groups
-
getFeatureGroupsReferenceList
Loads the data of all the feature groups and returns them in form of a reference list- Returns:
- the reference list of all the feature groups
-
getFeatureGroupsCount
public static int getFeatureGroupsCount()Gets the count of groups- Returns:
- the count of groups
-
changeRightOrder
Change the order in aRight- Parameters:
featureGroup- TheFeatureGroupnNewOrder- The new place in the list or END_OF_LIST to place Right at the end- Returns:
- The new order
-