Class FeatureGroupHome
- java.lang.Object
-
- fr.paris.lutece.portal.business.right.FeatureGroupHome
-
public final class FeatureGroupHome extends Object
This class provides instances management methods (create, find, ...) for feature groups objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 intgetFeatureGroupsCount()Gets the count of groupsstatic List<FeatureGroup>getFeatureGroupsList()Loads the data of all the feature groups and returns them in form of a collectionstatic ReferenceListgetFeatureGroupsReferenceList()Loads the data of all the feature groups and returns them in form of a reference liststatic voidremove(String strId)Remove the feature group whose identifier is specified in parameterstatic FeatureGroupupdate(FeatureGroup featureGroup)Update of the feature group which is specified
-
-
-
Method Detail
-
create
public static FeatureGroup create(FeatureGroup featureGroup)
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
public static FeatureGroup update(FeatureGroup featureGroup)
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
public static void remove(String strId)
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
public static FeatureGroup findByPrimaryKey(String strKey)
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
public static List<FeatureGroup> 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
public static ReferenceList 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
public static int changeRightOrder(FeatureGroup featureGroup, int nNewOrder)
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
-
-