Class SecurityHeaderHome
- java.lang.Object
-
- fr.paris.lutece.portal.business.securityheader.SecurityHeaderHome
-
public final class SecurityHeaderHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for SecurityHeader objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecurityHeadercreate(SecurityHeader securityheader)Creation of an instance of Security headerstatic java.util.Collection<SecurityHeader>findActiveByType(java.lang.String strType)Find all active security headers by type (page or REST api).static java.util.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 Detail
-
create
public static SecurityHeader create(SecurityHeader securityheader)
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
public static void update(SecurityHeader securityHeader)
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
public static SecurityHeader findByPrimaryKey(int nKey)
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
public static java.util.Collection<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
public static java.util.Collection<SecurityHeader> findActiveByType(java.lang.String strType)
Find all active security headers by type (page or REST api).- Parameters:
strType- The type- Returns:
- A security headers collection
-
-