Class AccessContractModel
- java.lang.Object
-
- fr.gouv.vitam.common.model.administration.AbstractContractModel
-
- fr.gouv.vitam.common.model.administration.AccessContractModel
-
public class AccessContractModel extends AbstractContractModel
Data Transfer Object Model of access contract (DTO).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DATA_OBJECT_VERSION
DataObjectVersionstatic java.lang.String
EVERY_DATA_OBJECT_VERSION
Work for all data object versionstatic java.lang.String
EVERY_ORIGINATINGAGENCY
Work for all originating agenciesstatic java.lang.String
EXCLUDED_ROOT_UNITS
Excluded root unitsstatic java.lang.String
ORIGINATING_AGENCIES
OriginatingAgenciesstatic java.lang.String
ROOT_UNITS
Root unitsstatic java.lang.String
RULE_CATEGORY_TO_FILTER
-
Fields inherited from class fr.gouv.vitam.common.model.administration.AbstractContractModel
TAG_CREATION_DATE, TAG_DESCRIPTION, TAG_IDENTIFIER, TAG_LAST_UPDATE, TAG_NAME, TAG_STATUS
-
-
Constructor Summary
Constructors Constructor Description AccessContractModel()
Constructor without fields use for jackson
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationStatus
getAccessLog()
java.util.Set<java.lang.String>
getDataObjectVersion()
java.lang.Boolean
getEveryOriginatingAgency()
java.util.Set<java.lang.String>
getExcludedRootUnits()
java.util.Set<java.lang.String>
getOriginatingAgencies()
Get the collection of originating agencyjava.util.Set<java.lang.String>
getRootUnits()
java.util.Set<RuleType>
getRuleCategoryToFilter()
java.lang.Boolean
getWritingPermission()
java.lang.Boolean
getWritingRestrictedDesc()
void
initializeDefaultValue()
java.lang.Boolean
isEveryDataObjectVersion()
AccessContractModel
setAccessLog(ActivationStatus accessLog)
AccessContractModel
setDataObjectVersion(java.util.Set<java.lang.String> dataObjectVersion)
AccessContractModel
setEveryDataObjectVersion(java.lang.Boolean everyDataObjectVersion)
Set the 'everyDataObjectVersion' flag on the contract.AccessContractModel
setEveryOriginatingAgency(java.lang.Boolean everyOriginatingAgency)
Set the 'everyOriginatingAgency' flag on the contract.AccessContractModel
setExcludedRootUnits(java.util.Set<java.lang.String> excludedRootUnits)
Collection of archive units' GUIDs.AccessContractModel
setOriginatingAgencies(java.util.Set<java.lang.String> originatingAgencies)
Set the collection of originating agencyAccessContractModel
setRootUnits(java.util.Set<java.lang.String> rootUnits)
Collection of GUID of archive units.AccessContractModel
setWritingPermission(java.lang.Boolean writingPermission)
-
Methods inherited from class fr.gouv.vitam.common.model.administration.AbstractContractModel
getActivationdate, getCreationdate, getDeactivationdate, getDescription, getId, getIdentifier, getLastupdate, getName, getStatus, getTenant, getVersion, setActivationdate, setCreationdate, setDeactivationdate, setDescription, setId, setIdentifier, setLastupdate, setName, setStatus, setTenant, setVersion
-
-
-
-
Field Detail
-
ORIGINATING_AGENCIES
public static final java.lang.String ORIGINATING_AGENCIES
OriginatingAgencies- See Also:
- Constant Field Values
-
ROOT_UNITS
public static final java.lang.String ROOT_UNITS
Root units- See Also:
- Constant Field Values
-
EXCLUDED_ROOT_UNITS
public static final java.lang.String EXCLUDED_ROOT_UNITS
Excluded root units- See Also:
- Constant Field Values
-
DATA_OBJECT_VERSION
public static final java.lang.String DATA_OBJECT_VERSION
DataObjectVersion- See Also:
- Constant Field Values
-
EVERY_DATA_OBJECT_VERSION
public static final java.lang.String EVERY_DATA_OBJECT_VERSION
Work for all data object version- See Also:
- Constant Field Values
-
EVERY_ORIGINATINGAGENCY
public static final java.lang.String EVERY_ORIGINATINGAGENCY
Work for all originating agencies- See Also:
- Constant Field Values
-
RULE_CATEGORY_TO_FILTER
public static final java.lang.String RULE_CATEGORY_TO_FILTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOriginatingAgencies
public java.util.Set<java.lang.String> getOriginatingAgencies()
Get the collection of originating agency- Returns:
- originatingAgencies collection
-
setOriginatingAgencies
public AccessContractModel setOriginatingAgencies(java.util.Set<java.lang.String> originatingAgencies)
Set the collection of originating agency- Parameters:
originatingAgencies
-
-
getDataObjectVersion
public java.util.Set<java.lang.String> getDataObjectVersion()
- Returns:
- dataObjectVersion
-
setDataObjectVersion
public AccessContractModel setDataObjectVersion(java.util.Set<java.lang.String> dataObjectVersion)
- Parameters:
dataObjectVersion
-- Returns:
- AccessContractModel
-
getWritingPermission
public java.lang.Boolean getWritingPermission()
- Returns:
- writingPermission
-
setWritingPermission
public AccessContractModel setWritingPermission(java.lang.Boolean writingPermission)
- Parameters:
writingPermission
-- Returns:
- AccessContractModel
-
getWritingRestrictedDesc
public java.lang.Boolean getWritingRestrictedDesc()
- Returns:
- writingRestrictedDesc
-
getEveryOriginatingAgency
public java.lang.Boolean getEveryOriginatingAgency()
- Returns:
- true if all originatingAgencies are enabled for this contract
-
setEveryOriginatingAgency
public AccessContractModel setEveryOriginatingAgency(java.lang.Boolean everyOriginatingAgency)
Set the 'everyOriginatingAgency' flag on the contract.- Parameters:
everyOriginatingAgency
- If true, all originatingAgencies are enabled for this contract- Returns:
- the contract
-
isEveryDataObjectVersion
public java.lang.Boolean isEveryDataObjectVersion()
- Returns:
- true if all data object version are enabled for this contract
-
setEveryDataObjectVersion
public AccessContractModel setEveryDataObjectVersion(java.lang.Boolean everyDataObjectVersion)
Set the 'everyDataObjectVersion' flag on the contract.- Parameters:
everyDataObjectVersion
- if true, all data object version are enabled for this contract- Returns:
- this
-
getRootUnits
public java.util.Set<java.lang.String> getRootUnits()
- Returns:
- the root units
-
setRootUnits
public AccessContractModel setRootUnits(java.util.Set<java.lang.String> rootUnits)
Collection of GUID of archive units. If not empty, access is restricted only to the given rootUnits and there childs. Access not permitted to parent units of the rootUnits Access not permitted to parent units of the rootUnits- Parameters:
rootUnits
- collection of guid of units (can be empty)- Returns:
- this
-
getExcludedRootUnits
public java.util.Set<java.lang.String> getExcludedRootUnits()
- Returns:
- the excluded root units
-
setExcludedRootUnits
public AccessContractModel setExcludedRootUnits(java.util.Set<java.lang.String> excludedRootUnits)
Collection of archive units' GUIDs. If not empty then access is forbidden to given unit and its children.- Parameters:
excludedRootUnits
- collection of guid of units (can be empty)- Returns:
- this
-
getAccessLog
public ActivationStatus getAccessLog()
-
setAccessLog
public AccessContractModel setAccessLog(ActivationStatus accessLog)
-
getRuleCategoryToFilter
public java.util.Set<RuleType> getRuleCategoryToFilter()
-
initializeDefaultValue
public void initializeDefaultValue()
-
-