Class CustomMenuHome
- java.lang.Object
-
- fr.paris.lutece.plugins.menus.business.CustomMenuHome
-
public final class CustomMenuHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for CustomMenu objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CustomMenucreate(CustomMenu customMenu)Create an instance of the customMenu classstatic java.util.List<CustomMenu>findAllWithCriteria(java.lang.String strFilterCriteria)Load a filtered list of customMenu objects and returns them as a liststatic CustomMenufindByPrimaryKey(int nKey)Returns an instance of a customMenu whose identifier is specified in parameterstatic java.util.List<CustomMenu>getCustomMenusList()Load the data of all the customMenu objects and returns them in form of a collectionstatic java.util.List<java.lang.Integer>getIdMenusList()Load the id of all the customMenu objects and returns them as a liststatic java.util.List<CustomMenu>getMenusListByIds(java.util.List<java.lang.Integer> listIds)Load the id of all the customMenu objects containing in listIds and returns them as a liststatic java.lang.BooleanisUniqueBookmark(CustomMenu customMenu, java.lang.Boolean bIsCreation)Return if bookmark is unique or notstatic voidremove(int nKey)Remove the customMenu whose identifier is specified in parameterstatic CustomMenuupdate(CustomMenu customMenu)Update of the customMenu which is specified in parameter
-
-
-
Method Detail
-
create
public static CustomMenu create(CustomMenu customMenu)
Create an instance of the customMenu class- Parameters:
customMenu- The instance of the CustomMenu which contains the informations to store- Returns:
- The instance of customMenu which has been created with its primary key.
-
update
public static CustomMenu update(CustomMenu customMenu)
Update of the customMenu which is specified in parameter- Parameters:
customMenu- The instance of the CustomMenu which contains the data to store- Returns:
- The instance of the customMenu which has been updated
-
remove
public static void remove(int nKey)
Remove the customMenu whose identifier is specified in parameter- Parameters:
nKey- The customMenu Id
-
findByPrimaryKey
public static CustomMenu findByPrimaryKey(int nKey)
Returns an instance of a customMenu whose identifier is specified in parameter- Parameters:
nKey- The customMenu primary key- Returns:
- an instance of CustomMenu
-
getCustomMenusList
public static java.util.List<CustomMenu> getCustomMenusList()
Load the data of all the customMenu objects and returns them in form of a collection- Returns:
- the collection which contains the data of all the customMenu objects
-
getIdMenusList
public static java.util.List<java.lang.Integer> getIdMenusList()
Load the id of all the customMenu objects and returns them as a list- Returns:
- the list which contains the id of all the customMenu objects
-
getMenusListByIds
public static java.util.List<CustomMenu> getMenusListByIds(java.util.List<java.lang.Integer> listIds)
Load the id of all the customMenu objects containing in listIds and returns them as a list- Parameters:
nKey- The customMenu primary key- Returns:
- the list which contains the id of all the customMenu objects
-
findAllWithCriteria
public static java.util.List<CustomMenu> findAllWithCriteria(java.lang.String strFilterCriteria)
Load a filtered list of customMenu objects and returns them as a list- Parameters:
strFilterCriteria- Filter criteria- Returns:
- the filtered list of customMenu objects
-
isUniqueBookmark
public static java.lang.Boolean isUniqueBookmark(CustomMenu customMenu, java.lang.Boolean bIsCreation)
Return if bookmark is unique or not- Parameters:
customMenu- instance of the CustomMenu object to insertbIsCreation- is creation mode or not- Returns:
- True if bookmark is unique or false else.
-
-