Class Agencies
- java.lang.Object
-
- org.bson.Document
-
- fr.gouv.vitam.common.database.server.mongodb.VitamDocument<Agencies>
-
- fr.gouv.vitam.functional.administration.common.Agencies
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class Agencies extends VitamDocument<Agencies>
Defines a Agency collection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DESCRIPTION
the Agency descriptionstatic java.lang.String
IDENTIFIER
the Agency idstatic java.lang.String
NAME
the Agency name-
Fields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Get the Agency descriptionjava.lang.String
getIdentifier()
Get the Agency Identifierjava.lang.String
getName()
Get the Agency nameVitamDocument<Agencies>
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given jsonAgencies
setDescription(java.lang.String description)
Set or change the Agency descriptionAgencies
setIdentifier(java.lang.String identifier)
Set or change the Agency identifierAgencies
setName(java.lang.String name)
Set or change the Agency nameAgenciesModel
wrap()
-
Methods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
checkId, getConcernedDiffLines, getId, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString, toStringDirect
-
Methods inherited from class org.bson.Document
append, clear, containsKey, containsValue, entrySet, equals, get, get, get, getBoolean, getBoolean, getDate, getDouble, getEmbedded, getEmbedded, getInteger, getInteger, getList, getList, getLong, getObjectId, getString, hashCode, isEmpty, keySet, parse, parse, put, putAll, remove, size, toBsonDocument, toJson, toJson, toJson, toJson, values
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
the Agency id- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
the Agency name- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
the Agency description- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Agencies
public Agencies()
/** Empty Constructor
-
Agencies
public Agencies(java.lang.Integer tenantId)
- Parameters:
tenantId
- the working tenant
-
Agencies
public Agencies(org.bson.Document document)
Constructor- Parameters:
document
- data in format Document to create agency
-
Agencies
public Agencies(com.fasterxml.jackson.databind.JsonNode content)
- Parameters:
content
- in format JsonNode to create agency
-
Agencies
public Agencies(java.lang.String content)
- Parameters:
content
- in format String to create agency
-
-
Method Detail
-
newInstance
public VitamDocument<Agencies> 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 classVitamDocument<Agencies>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
getDescription
public java.lang.String getDescription()
Get the Agency description- Returns:
- this
-
setDescription
public Agencies setDescription(java.lang.String description)
Set or change the Agency description- Parameters:
description
- to set to Agency- Returns:
- this
-
getIdentifier
public java.lang.String getIdentifier()
Get the Agency Identifier- Returns:
- this
-
setIdentifier
public Agencies setIdentifier(java.lang.String identifier)
Set or change the Agency identifier- Parameters:
identifier
- to set to Agency- Returns:
- this
-
getName
public java.lang.String getName()
Get the Agency name- Returns:
- this
-
setName
public Agencies setName(java.lang.String name)
Set or change the Agency name- Parameters:
name
- to set to Agency- Returns:
- this
-
wrap
public AgenciesModel wrap()
-
-