public class Profile extends VitamDocument<Profile>
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVATIONDATE
the activation date of the profile
|
static String |
CREATIONDATE
the creatation date of the profile
|
static String |
DEACTIVATIONDATE
the desactication date of the profile
|
static String |
DESCRIPTION
the profile description
|
static String |
FORMAT
the profile file format
|
static String |
IDENTIFIER
the profile id
|
static String |
LAST_UPDATE
the last update of profile
|
static String |
NAME
the profile name
|
static String |
PATH
the profile file path in storage
|
static String |
STATUS
the profile status
|
ES_FILTER_OUT, ID, SCORE, TENANT_ID, VERSION
Constructor and Description |
---|
Profile()
Empty Constructor
|
Profile(org.bson.Document document)
Constructor
|
Profile(Integer tenantId) |
Profile(com.fasterxml.jackson.databind.JsonNode content) |
Profile(String content) |
Modifier and Type | Method and Description |
---|---|
String |
getActivationdate() |
String |
getCreationdate() |
String |
getDeactivationdate() |
String |
getDescription()
Get the profile description
|
ProfileFormat |
getFormat()
The profile file format If toJson called without MongoClient configuration this will thow codec exception
|
String |
getIdentifier()
The profile id
|
String |
getLastupdate() |
String |
getName()
Name of the profile
|
String |
getPath()
The profile file path in storage
|
ProfileStatus |
getStatus()
Get the profile status If toJson called without MongoClient configuration this will thow codec exception
|
VitamDocument<Profile> |
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given json
|
Profile |
setActivationdate(String activationdate) |
Profile |
setCreationdate(String creationdate) |
Profile |
setDeactivationdate(String deactivationdate) |
Profile |
setDescription(String description)
Set or change the profile description
|
Profile |
setFormat(ProfileFormat format)
Set or change the profile format (xsd, rng, ...)
|
Profile |
setId(String id) |
Profile |
setIdentifier(String identifier)
Set or change the profile id, the identifier must be unique by tenant
|
Profile |
setLastupdate(String lastupdate) |
Profile |
setName(String name)
Set or change the profile name
|
Profile |
setPath(String path)
Set or change the profile path
|
Profile |
setStatus(ProfileStatus status)
Set or change the profile status
|
checkId, getConcernedDiffLines, getId, getTenantId, getUnifiedDiff, getVersion, toString, toStringDirect
append, clear, containsKey, containsValue, entrySet, equals, get, get, getBoolean, getBoolean, getDate, getDouble, getInteger, getInteger, getLong, getObjectId, getString, hashCode, isEmpty, keySet, parse, parse, put, putAll, remove, size, toBsonDocument, toJson, toJson, toJson, toJson, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final String IDENTIFIER
public static final String NAME
public static final String DESCRIPTION
public static final String STATUS
public static final String FORMAT
public static final String PATH
public static final String CREATIONDATE
public static final String LAST_UPDATE
public static final String ACTIVATIONDATE
public static final String DEACTIVATIONDATE
public Profile()
public Profile(org.bson.Document document)
document
- data in format Document to create contactpublic Profile(com.fasterxml.jackson.databind.JsonNode content)
content
- in format JsonNode to create profilepublic Profile(String content)
content
- in format String to create profilepublic Profile(Integer tenantId)
tenantId
- the working tenantpublic VitamDocument<Profile> newInstance(com.fasterxml.jackson.databind.JsonNode content)
VitamDocument
newInstance
in class VitamDocument<Profile>
content
- document structure as jsonpublic Profile setId(String id)
id
- the id of ingest profilepublic String getIdentifier()
public Profile setIdentifier(String identifier)
identifier
- public String getName()
public Profile setName(String name)
name
- to setpublic String getDescription()
public Profile setDescription(String description)
description
- to set to contactpublic ProfileStatus getStatus()
public Profile setStatus(ProfileStatus status)
status
- to setpublic Profile setFormat(ProfileFormat format)
format
- public String getPath()
public Profile setPath(String path)
path
- public ProfileFormat getFormat()
public String getCreationdate()
public Profile setCreationdate(String creationdate)
creationdate
- to setpublic String getLastupdate()
public Profile setLastupdate(String lastupdate)
lastupdate
- to setpublic String getActivationdate()
public Profile setActivationdate(String activationdate)
activationdate
- to setpublic String getDeactivationdate()
Copyright © 2018 Vitam. All rights reserved.