org.xiruss.repository.server
Class SpecificVersionResolutionPolicyBase
java.lang.Object
org.xiruss.repository.server.RepositoryObjectBase
org.xiruss.repository.server.ResolutionPolicyBase
org.xiruss.repository.server.SpecificVersionResolutionPolicyBase
- All Implemented Interfaces:
- java.lang.Comparable, SpecificVersionResolutionPolicy, RepositoryObject, ResolutionPolicy
public class SpecificVersionResolutionPolicyBase
- extends ResolutionPolicyBase
- implements SpecificVersionResolutionPolicy
A resolution policy that resolves to a specific, invariant,
version.
|
Method Summary |
Version |
applyPolicy(Version sourceVersion,
Resource targetResource,
Snapshot onSnapshot)
Applies a policy and returns a collection of zero or more
result versions. |
java.util.Map |
getParams()
Returns the map of name/value pairs representing the specific parameter values the
policy was created with. |
java.lang.String |
getPolicyTypeName()
Returns the repository-implementation-unique name for the policy, i.e., the class name. |
void |
initialize(Version targetVer)
|
void |
setTargetVersion(Version targetVer)
Sets the specific version this resolution policy should resolve to. |
| Methods inherited from class org.xiruss.repository.server.RepositoryObjectBase |
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, initialize, isNull, setId, setName, setProperties, setProperty, setRepository, setType, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject |
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString |
SpecificVersionResolutionPolicyBase
public SpecificVersionResolutionPolicyBase()
SpecificVersionResolutionPolicyBase
public SpecificVersionResolutionPolicyBase(Version targetVer)
- Parameters:
targetVer - The version the dependency must resolve to.
initialize
public void initialize(Version targetVer)
applyPolicy
public Version applyPolicy(Version sourceVersion,
Resource targetResource,
Snapshot onSnapshot)
throws ResolutionPolicyException
- Description copied from interface:
ResolutionPolicy
- Applies a policy and returns a collection of zero or more
result versions.
- Specified by:
applyPolicy in interface ResolutionPolicy- Specified by:
applyPolicy in class ResolutionPolicyBase
- Parameters:
sourceVersion - The version the dependency is fromtargetResource - The resource the depencency targetsonSnapshot - The snapshot that establishes the visibility context within which
the policy is resolved.
- Throws:
ResolutionPolicyException
getPolicyTypeName
public java.lang.String getPolicyTypeName()
- Description copied from interface:
ResolutionPolicy
- Returns the repository-implementation-unique name for the policy, i.e., the class name.
The name "onSnapshot" is reserved by the XIRUSS system.
- Specified by:
getPolicyTypeName in interface ResolutionPolicy- Overrides:
getPolicyTypeName in class ResolutionPolicyBase
- Returns:
getParams
public java.util.Map getParams()
- Description copied from interface:
ResolutionPolicy
- Returns the map of name/value pairs representing the specific parameter values the
policy was created with.
- Specified by:
getParams in interface ResolutionPolicy- Overrides:
getParams in class ResolutionPolicyBase
- Returns:
setTargetVersion
public void setTargetVersion(Version targetVer)
- Description copied from interface:
SpecificVersionResolutionPolicy
- Sets the specific version this resolution policy should resolve to.
- Specified by:
setTargetVersion in interface SpecificVersionResolutionPolicy