com.sas.hls.resource.repository
Class NewFileCheckinSpecification

java.lang.Object
  extended by com.sas.hls.resource.repository.NewFileCheckinSpecification
All Implemented Interfaces:
Serializable

public class NewFileCheckinSpecification
extends Object
implements Serializable

A special form of a ResourceCheckinSpecification which is only applied to resources that are newly created during another operation.

See Also:
Serialized Form

Constructor Summary
NewFileCheckinSpecification()
          Zero-arg constructor.
NewFileCheckinSpecification(boolean enableVersioning)
          Constructor specifying if new files created should be versioned.
NewFileCheckinSpecification(boolean enableVersioningForNewFiles, VersionType versionType)
          Constructor specifying if new files should be versioned, and what type of versioning should they use.
NewFileCheckinSpecification(boolean enableVersioning, VersionType versionType, String customVersionValue)
          Constructor specifying if new files should be versioned, what type of versioning should they use, and the customVersion to use if versioning type is CUSTOM..
 
Method Summary
 String getCustomVersionValue()
          Get the customVersionValue of this specification.
 VersionType getVersionType()
          Get the versionType of this specification.
 boolean isEnableVersioning()
          Is the enableVersioning value set to true?
 void setCustomVersionValue(String customVersionValue)
          Set the customVersionValue of this specification.
 void setEnableVersioning(boolean enableVersioning)
          Set the enableVersioning value.
 void setVersionType(VersionType versionType)
          Set the versionType of this specification.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewFileCheckinSpecification

public NewFileCheckinSpecification()
Zero-arg constructor.


NewFileCheckinSpecification

public NewFileCheckinSpecification(boolean enableVersioning)
Constructor specifying if new files created should be versioned.

Parameters:
enableVersioning - Boolean indicating if new files should be created as versioned or unversioned.

NewFileCheckinSpecification

public NewFileCheckinSpecification(boolean enableVersioningForNewFiles,
                                   VersionType versionType)
Constructor specifying if new files should be versioned, and what type of versioning should they use.

Parameters:
enableVersioningForNewFiles - Boolean indicating if new files should be created as versioned or unversioned.
versionType - The type of versioning the new files should use.

NewFileCheckinSpecification

public NewFileCheckinSpecification(boolean enableVersioning,
                                   VersionType versionType,
                                   String customVersionValue)
Constructor specifying if new files should be versioned, what type of versioning should they use, and the customVersion to use if versioning type is CUSTOM..

Parameters:
enableVersioning - Boolean indicating if new files should be created as versioned or unversioned.
versionType - The type of versioning the new files should use.
customVersionValue - The custom version the new files should use.
Method Detail

isEnableVersioning

public boolean isEnableVersioning()
Is the enableVersioning value set to true?

Returns:
the enableVersioning value

setEnableVersioning

public void setEnableVersioning(boolean enableVersioning)
Set the enableVersioning value.

Parameters:
enableVersioning - the enableVersioning to set

getVersionType

public VersionType getVersionType()
Get the versionType of this specification.

Returns:
the versionType

setVersionType

public void setVersionType(VersionType versionType)
Set the versionType of this specification.

Parameters:
versionType - the versionType to set

getCustomVersionValue

public String getCustomVersionValue()
Get the customVersionValue of this specification.

Returns:
the customVersionValue

setCustomVersionValue

public void setCustomVersionValue(String customVersionValue)
Set the customVersionValue of this specification.

Parameters:
customVersionValue - the customVersionValue to set

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2012, SAS Institute Inc., Cary, NC, USA