org.xiruss.snapcm.api
Class NullResolutionPolicy

java.lang.Object
  extended by org.xiruss.snapcm.api.NullRepositoryObject
      extended by org.xiruss.snapcm.api.NullResolutionPolicy
All Implemented Interfaces:
RepositoryObject, ResolutionPolicy

public class NullResolutionPolicy
extends NullRepositoryObject
implements ResolutionPolicy


Constructor Summary
NullResolutionPolicy()
           
 
Method Summary
 Version applyPolicy(Version sourceVersion, Resource targetResource, Snapshot onSnapshot)
          Applies a policy and returns a collection of zero or more result versions.
 java.lang.String getParameter(java.lang.String paramName)
          Returns the value of the specified parameter.
 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(java.util.Map parameters)
          Initialize the new policy instance with a set of parameters.
 void setParameter(java.lang.String name, java.lang.String value)
          Sets a parameter of the resolution policy instance.
 
Methods inherited from class org.xiruss.snapcm.api.NullRepositoryObject
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
 

Constructor Detail

NullResolutionPolicy

public NullResolutionPolicy()
Method Detail

applyPolicy

public Version applyPolicy(Version sourceVersion,
                           Resource targetResource,
                           Snapshot onSnapshot)
                    throws RepositoryException
Description copied from interface: ResolutionPolicy
Applies a policy and returns a collection of zero or more result versions.

Specified by:
applyPolicy in interface ResolutionPolicy
Parameters:
sourceVersion - The version the dependency is from
targetResource - The resource the depencency targets
onSnapshot - The snapshot that establishes the visibility context within which the policy is resolved.
Throws:
RepositoryException

initialize

public void initialize(java.util.Map parameters)
Description copied from interface: ResolutionPolicy
Initialize the new policy instance with a set of parameters. The parameters used are implementation specific.

Specified by:
initialize in interface ResolutionPolicy

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
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
Returns:

setParameter

public void setParameter(java.lang.String name,
                         java.lang.String value)
Description copied from interface: ResolutionPolicy
Sets a parameter of the resolution policy instance.

Specified by:
setParameter in interface ResolutionPolicy

getParameter

public java.lang.String getParameter(java.lang.String paramName)
Description copied from interface: ResolutionPolicy
Returns the value of the specified parameter.

Specified by:
getParameter in interface ResolutionPolicy
Parameters:
paramName - Name of the parameter to get;
Returns:
Parameter value or null if the parameter is not set.