Class AccessContractModel
java.lang.Object
fr.gouv.vitam.common.model.administration.AbstractContractModel
fr.gouv.vitam.common.model.administration.AccessContractModel
Data Transfer Object Model of access contract (DTO).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
DataObjectVersionstatic final String
static final String
Work for all data object versionstatic final String
Work for all originating agenciesstatic final String
Excluded root unitsstatic final String
OriginatingAgenciesstatic final String
Root unitsstatic final String
static final String
static final String
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
-
Method Summary
Modifier and TypeMethodDescriptionGet the collection of originating agencyvoid
Deprecated, for removal: This API element is subject to removal in a future version.setAccessLog
(ActivationStatus accessLog) setDataObjectVersion
(Set<String> dataObjectVersion) setDoNotFilterFilingSchemes
(Boolean doNotFilterFilingSchemes) setEveryDataObjectVersion
(Boolean everyDataObjectVersion) Set the 'everyDataObjectVersion' flag on the contract.setEveryOriginatingAgency
(Boolean everyOriginatingAgency) Set the 'everyOriginatingAgency' flag on the contract.setExcludedRootUnits
(Set<String> excludedRootUnits) Collection of archive units' GUIDs.setOriginatingAgencies
(Set<String> originatingAgencies) Set the collection of originating agencysetRootUnits
(Set<String> rootUnits) Collection of GUID of archive units.setRuleCategoryToFilter
(Set<RuleType> ruleCategoryToFilter) setRuleCategoryToFilterForTheOtherOriginatingAgencies
(Set<RuleType> ruleCategoryToFilterForTheOtherOriginatingAgencies) setSkipFilingSchemeRuleCategoryFilter
(Boolean skipFilingSchemeRuleCategoryFilter) setWritingPermission
(Boolean writingPermission) setWritingRestrictedDesc
(Boolean writingRestrictedDesc) Methods inherited from class fr.gouv.vitam.common.model.administration.AbstractContractModel
getActivationdate, getActivationDate, getCreationdate, getCreationDate, getDeactivationdate, getDeactivationDate, getDescription, getId, getIdentifier, getLastupdate, getLastUpdate, getName, getStatus, getTenant, getVersion, setActivationdate, setActivationDate, setCreationdate, setCreationDate, setDeactivationdate, setDeactivationDate, setDescription, setId, setIdentifier, setLastupdate, setLastUpdate, setName, setStatus, setTenant, setVersion
-
Field Details
-
ORIGINATING_AGENCIES
OriginatingAgencies- See Also:
-
ROOT_UNITS
Root units- See Also:
-
EXCLUDED_ROOT_UNITS
Excluded root units- See Also:
-
DATA_OBJECT_VERSION
DataObjectVersion- See Also:
-
EVERY_DATA_OBJECT_VERSION
Work for all data object version- See Also:
-
EVERY_ORIGINATINGAGENCY
Work for all originating agencies- See Also:
-
RULE_CATEGORY_TO_FILTER
- See Also:
-
RULE_CATEGORY_TO_FILTER_FOR_THE_OTHER_ORIGINATING_AGENCIES
- See Also:
-
DO_NOT_FILTER_FILING_SCHEMES
- See Also:
-
SKIP_FILING_SCHEME_RULE_CATEGORY_FILTER
- See Also:
-
-
Constructor Details
-
AccessContractModel
public AccessContractModel()Constructor without fields use for jackson
-
-
Method Details
-
getOriginatingAgencies
Get the collection of originating agency- Returns:
- originatingAgencies collection
-
setOriginatingAgencies
Set the collection of originating agency -
getDataObjectVersion
- Returns:
- dataObjectVersion
-
setDataObjectVersion
- Returns:
- AccessContractModel
-
getWritingPermission
- Returns:
- writingPermission
-
setWritingPermission
- Returns:
- AccessContractModel
-
getWritingRestrictedDesc
- Returns:
- writingRestrictedDesc
-
setWritingRestrictedDesc
- Returns:
- AccessContractModel
-
getEveryOriginatingAgency
- Returns:
- true if all originatingAgencies are enabled for this contract
-
setEveryOriginatingAgency
Set the 'everyOriginatingAgency' flag on the contract.- Parameters:
everyOriginatingAgency
- If true, all originatingAgencies are enabled for this contract- Returns:
- the contract
-
getEveryDataObjectVersion
- Returns:
- true if all data object version are enabled for this contract
-
isEveryDataObjectVersion
Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withgetEveryDataObjectVersion()
-
setEveryDataObjectVersion
Set the 'everyDataObjectVersion' flag on the contract.- Parameters:
everyDataObjectVersion
- if true, all data object version are enabled for this contract- Returns:
- this
-
getRootUnits
- Returns:
- the root units
-
setRootUnits
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
- Returns:
- the excluded root units
-
setExcludedRootUnits
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
-
setAccessLog
-
getRuleCategoryToFilter
-
setRuleCategoryToFilter
-
getRuleCategoryToFilterForTheOtherOriginatingAgencies
-
setRuleCategoryToFilterForTheOtherOriginatingAgencies
public AccessContractModel setRuleCategoryToFilterForTheOtherOriginatingAgencies(Set<RuleType> ruleCategoryToFilterForTheOtherOriginatingAgencies) -
getSkipFilingSchemeRuleCategoryFilter
-
setSkipFilingSchemeRuleCategoryFilter
public AccessContractModel setSkipFilingSchemeRuleCategoryFilter(Boolean skipFilingSchemeRuleCategoryFilter) -
getDoNotFilterFilingSchemes
-
setDoNotFilterFilingSchemes
-
initializeDefaultValue
public void initializeDefaultValue()
-
getEveryDataObjectVersion()