Class Profile

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

    public class Profile
    extends VitamDocument<Profile>
    Defines a Profile collection.
    See Also:
    Serialized Form
    • Field Detail

      • IDENTIFIER

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

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

        public static final java.lang.String FORMAT
        the profile file format
        See Also:
        Constant Field Values
      • PATH

        public static final java.lang.String PATH
        the profile file path in storage
        See Also:
        Constant Field Values
      • CREATIONDATE

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

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

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

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

      • Profile

        public Profile()
        Empty Constructor
      • Profile

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

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

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

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

      • newInstance

        public VitamDocument<Profile> newInstance​(com.fasterxml.jackson.databind.JsonNode content)
        Description copied from class: VitamDocument
        Make a new instance of the document with the given json
        Specified by:
        newInstance in class VitamDocument<Profile>
        Parameters:
        content - document structure as json
        Returns:
        new document with the json as content
      • setId

        public Profile setId​(java.lang.String id)
        Parameters:
        id - the id of ingest profile
        Returns:
        AccessionRegisterDetail
      • getIdentifier

        public java.lang.String getIdentifier()
        The profile id
        Returns:
        the id of the profile
      • setIdentifier

        public Profile setIdentifier​(java.lang.String identifier)
        Set or change the profile id, the identifier must be unique by tenant
        Parameters:
        identifier -
        Returns:
        this
      • getName

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

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

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

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

        public ProfileStatus getStatus()
        Get the profile status If toJson called without MongoClient configuration this will thow codec exception
        Returns:
        status of ingest contact
      • setStatus

        public Profile setStatus​(ProfileStatus status)
        Set or change the profile status
        Parameters:
        status - to set
        Returns:
        this
      • setFormat

        public Profile setFormat​(ProfileFormat format)
        Set or change the profile format (xsd, rng, ...)
        Parameters:
        format -
        Returns:
        this
      • getPath

        public java.lang.String getPath()
        The profile file path in storage
        Returns:
        the profile path
      • setPath

        public Profile setPath​(java.lang.String path)
        Set or change the profile path
        Parameters:
        path -
        Returns:
        this
      • getFormat

        public ProfileFormat getFormat()
        The profile file format If toJson called without MongoClient configuration this will thow codec exception
        Returns:
        the profile format
      • getCreationdate

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

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

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

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

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

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

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

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