Class SecurityHeaderHome
java.lang.Object
fr.paris.lutece.portal.business.securityheader.SecurityHeaderHome
This class provides instances management methods (create, find, ...) for SecurityHeader objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityHeadercreate(SecurityHeader securityheader) Creation of an instance of Security headerstatic Collection<SecurityHeader>findActiveByType(String strType) Find all active security headers by type (page or REST api).static Collection<SecurityHeader>findAll()Loads the data of all the security headers and returns them in form of a collection.static SecurityHeaderfindByPrimaryKey(int nKey) Returns an instance of a security header whose identifier is specified in parameterstatic voidremove(int nSecurityHeaderId) Remove the security header whose identifier is specified in parameterstatic voidupdate(SecurityHeader securityHeader) Update of the security header which is specified in parameterstatic voidupdateIsActive(int nSecurityHeaderId, boolean isActiveValue) Update of the is_active column value of the security header which is specified in parameter
-
Method Details
-
create
Creation of an instance of Security header- Parameters:
securityHeader- The instance of the security header which contains the informations to store- Returns:
- The instance of security header which has been created with its primary key.
-
update
Update of the security header which is specified in parameter- Parameters:
securityHeader- The instance of the Security header which contains the data to store
-
updateIsActive
public static void updateIsActive(int nSecurityHeaderId, boolean isActiveValue) Update of the is_active column value of the security header which is specified in parameter- Parameters:
nSecurityHeaderId- The securityHeader IdisActiveValue- The value to set to is_active column
-
remove
public static void remove(int nSecurityHeaderId) Remove the security header whose identifier is specified in parameter- Parameters:
nSecurityHeaderId- The securityHeader Id
-
findByPrimaryKey
Returns an instance of a security header whose identifier is specified in parameter- Parameters:
nKey- The security header primary key- Returns:
- an instance of SecurityHeader
-
findAll
Loads the data of all the security headers and returns them in form of a collection.- Returns:
- the collection which contains the data of all the security headers
-
findActiveByType
Find all active security headers by type (page or REST api).- Parameters:
strType- The type- Returns:
- A security headers collection
-