Package com.emc.documentum.rest.model
Class VersionPolicy
java.lang.Object
com.emc.documentum.rest.model.VersionPolicy
Model for version policy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final VersionPolicy
Constant for version policy NOT ALLOWED -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allow
(int policy) Makepolicy
allowedprotected boolean
allowed
(int policy) Check ifpolicy
allowedboolean
Check if branch version is allowedboolean
Check if next major version is allowedboolean
Check if next minor version is allowedboolean
Check if same version is allowedstatic VersionPolicy
toVersionPolicy
(com.documentum.fc.client.IDfSysObject dfcObject)
-
Field Details
-
NOT_ALLOWED
Constant for version policy NOT ALLOWED
-
-
Constructor Details
-
VersionPolicy
public VersionPolicy()
-
-
Method Details
-
allow
public void allow(int policy) Makepolicy
allowed- Parameters:
policy
- input policy
-
allowed
protected boolean allowed(int policy) Check ifpolicy
allowed- Parameters:
policy
- input policy- Returns:
true
ifpolicy
is allowed
-
allowedNextMajor
public boolean allowedNextMajor()Check if next major version is allowed- Returns:
true
if next major version is allowed
-
allowedNextMinor
public boolean allowedNextMinor()Check if next minor version is allowed- Returns:
true
if next minor version is allowed
-
allowedSameVersion
public boolean allowedSameVersion()Check if same version is allowed- Returns:
true
if same version is allowed
-
allowedBranchVersion
public boolean allowedBranchVersion()Check if branch version is allowed- Returns:
true
if branch version is allowed
-
toVersionPolicy
public static VersionPolicy toVersionPolicy(com.documentum.fc.client.IDfSysObject dfcObject) throws com.documentum.fc.common.DfException - Throws:
com.documentum.fc.common.DfException
-