Class SecurityHeaderHome

java.lang.Object
fr.paris.lutece.portal.business.securityheader.SecurityHeaderHome

public final class SecurityHeaderHome extends Object
This class provides instances management methods (create, find, ...) for SecurityHeader objects
  • Method Details

    • 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 Id
      isActiveValue - 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 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 Collection<SecurityHeader> findActiveByType(String strType)
      Find all active security headers by type (page or REST api).
      Parameters:
      strType - The type
      Returns:
      A security headers collection