Class AccessContract

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map<java.lang.String,​java.lang.Object>, org.bson.conversions.Bson

    public class AccessContract
    extends VitamDocument<AccessContract>
    Defines an Access contract model for SIP transfer control.
    See Also:
    Serialized Form
    • Field Detail

      • IDENTIFIER

        public static final java.lang.String IDENTIFIER
        the contract id
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        the contract description
        See Also:
        Constant Field Values
      • STATUS

        public static final java.lang.String STATUS
        the contract status
        See Also:
        Constant Field Values
      • ORIGINATINGAGENCIES

        public static final java.lang.String ORIGINATINGAGENCIES
        the originating agencies
        See Also:
        Constant Field Values
      • CREATIONDATE

        public static final java.lang.String CREATIONDATE
        the creatation date of contract
        See Also:
        Constant Field Values
      • LAST_UPDATE

        public static final java.lang.String LAST_UPDATE
        the last update of contract
        See Also:
        Constant Field Values
      • ACTIVATIONDATE

        public static final java.lang.String ACTIVATIONDATE
        the activation date of contract
        See Also:
        Constant Field Values
      • DEACTIVATIONDATE

        public static final java.lang.String DEACTIVATIONDATE
        the desactication date of contract
        See Also:
        Constant Field Values
    • Constructor Detail

      • AccessContract

        public AccessContract()
        Empty Constructor
      • AccessContract

        public AccessContract​(org.bson.Document document)
        Constructor
        Parameters:
        document - data in format Document to create contact
      • AccessContract

        public AccessContract​(com.fasterxml.jackson.databind.JsonNode content)
        Parameters:
        content - in format JsonNode to create contract
      • AccessContract

        public AccessContract​(java.lang.String content)
        Parameters:
        content - in format String to create contract
      • AccessContract

        public AccessContract​(java.lang.Integer tenantId)
        Parameters:
        tenantId - the working tenant
    • Method Detail

      • setId

        public AccessContract setId​(java.lang.String id)
        Parameters:
        id - the id of access contract
        Returns:
        AccessionRegisterDetail
      • getName

        public java.lang.String getName()
        Name of the contract
        Returns:
        name of contract
      • setName

        public AccessContract setName​(java.lang.String name)
        Set or change the contract name
        Parameters:
        name - to set
        Returns:
        this
      • getDescription

        public java.lang.String getDescription()
        Get the contract description
        Returns:
        this
      • setDescription

        public AccessContract setDescription​(java.lang.String description)
        Set or change the contract description
        Parameters:
        description - to set to contact
        Returns:
        this
      • getStatus

        public ActivationStatus getStatus()
        Get the contract status
        Returns:
        status of access contact
      • setStatus

        public AccessContract setStatus​(ActivationStatus status)
        Set or change the contract status
        Parameters:
        status - to set
        Returns:
        this
      • getOriginatingAgencies

        public java.util.Set<java.lang.String> getOriginatingAgencies()
        Returns:
        collection of originating agencies
      • setOriginatingAgencies

        public AccessContract setOriginatingAgencies​(java.util.Set<java.lang.String> originatingAgencies)
        Set the collection of originating agencies
        Parameters:
        originatingAgencies -
        Returns:
        this
      • getCreationdate

        public java.lang.String getCreationdate()
        Returns:
        creation date of contract
      • setCreationdate

        public AccessContract setCreationdate​(java.lang.String creationdate)
        Parameters:
        creationdate - to set
        Returns:
        this
      • getLastupdate

        public java.lang.String getLastupdate()
        Returns:
        last update of contract
      • setLastupdate

        public AccessContract setLastupdate​(java.lang.String lastupdate)
        Parameters:
        lastupdate - to set
        Returns:
        this
      • getActivationdate

        public java.lang.String getActivationdate()
        Returns:
        activation date of contract
      • setActivationdate

        public AccessContract setActivationdate​(java.lang.String activationdate)
        Parameters:
        activationdate - to set
        Returns:
        this
      • getDeactivationdate

        public java.lang.String getDeactivationdate()
        Returns:
        desactivation date of contract
      • setDeactivationdate

        public AccessContract setDeactivationdate​(java.lang.String deactivationdate)
        Parameters:
        deactivationdate - to set
        Returns:
        this