com.sas.hls.resource.repository
Class RepositoryFile

java.lang.Object
  extended by com.sas.hls.resource.repository.RepositoryResource
      extended by com.sas.hls.resource.repository.RepositoryFile
All Implemented Interfaces:
Identifiable, Resource, AclSecurable, Serializable

public class RepositoryFile
extends RepositoryResource

Client representation of a non-container content item stored in the repository.

See Also:
Serialized Form

Field Summary
protected  boolean checkedOut
           
protected  long size
           
protected  String version
           
protected  boolean versioned
           
 
Fields inherited from class com.sas.hls.resource.repository.RepositoryResource
attributes, identifier, lastModifiedDate, objectType, path
 
Constructor Summary
RepositoryFile(String identifier, String objectType, String path, long size, boolean isCheckedOut, boolean isVersioned, String versionLabel, Date lastModified, List<Attribute> attributes)
          It is not intended or recommended that the consumer of the api construct these objects.
 
Method Summary
 long getSize()
           
 String getVersionLabel()
           
 boolean isCheckedOut()
           
 boolean isVersioned()
           
 
Methods inherited from class com.sas.hls.resource.repository.RepositoryResource
equals, getAttribute, getAttributes, getIdentifier, getLastModifiedDate, getObjectType, getPath, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

size

protected long size

checkedOut

protected boolean checkedOut

versioned

protected boolean versioned

version

protected String version
Constructor Detail

RepositoryFile

public RepositoryFile(String identifier,
                      String objectType,
                      String path,
                      long size,
                      boolean isCheckedOut,
                      boolean isVersioned,
                      String versionLabel,
                      Date lastModified,
                      List<Attribute> attributes)
It is not intended or recommended that the consumer of the api construct these objects. They should only deal with the RepositoryResource objects returned by the api.

Parameters:
identifier - identifier of the repository file
objectType - object type of the repository file
path - Path of the file in the repository
size - Size of the file
isCheckedOut - Is the file currently checked out?
isVersioned - Is the file versioned?
versionLabel - What is the label of the current version of the file?
lastModified - When was the file last modified.
attributes - The attributes defined on the file.
Method Detail

getSize

public long getSize()
Returns:
size of file (in bytes)

isCheckedOut

public boolean isCheckedOut()
Returns:
is repository file currently checked out?

isVersioned

public boolean isVersioned()
Returns:
is repository file versioned?

getVersionLabel

public String getVersionLabel()
Returns:
version label of current version of the repository file


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