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 file stored in the repository.

See Also:
Serialized Form

Constructor Summary
RepositoryFile(String identifier, String objectType, String path, long size, boolean isCheckedOut, boolean isVersioned, String versionLabel, boolean isLocked, Date lastModified, List<Attribute> attributes)
          It is not intended or recommended that the consumer of the API construct these objects.
 
Method Summary
 long getSize()
          Return the size of this repository file (in bytes).
 String getVersionLabel()
          Return the version of this repository file.
 boolean isCheckedOut()
          Is this repository file currently checked out?
 boolean isLocked()
          Is this repository file locked?
 boolean isVersioned()
          Is this repository file versioned?
 
Methods inherited from class com.sas.hls.resource.repository.RepositoryResource
equals, getAttribute, getAttributes, getIdentifier, getLastModifiedDate, getObjectType, getPath, hashCode, setAttributes, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryFile

public RepositoryFile(String identifier,
                      String objectType,
                      String path,
                      long size,
                      boolean isCheckedOut,
                      boolean isVersioned,
                      String versionLabel,
                      boolean isLocked,
                      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 RepositoryFile objects returned by the API.

Parameters:
identifier - The identifier of this repository file.
objectType - The object type of this repository file.
path - The path of this file in the repository.
size - The size of this repository file.
isCheckedOut - Is this repository file currently checked out?
isVersioned - Is this repository file versioned?
versionLabel - The version of this repository file.
isLocked - Is this repository file locked?
lastModified - The date this repository file was last modified.
attributes - The attributes defined on this repository file.
Method Detail

getSize

public long getSize()
Return the size of this repository file (in bytes).

Returns:
The size of this repository file (in bytes).

isCheckedOut

public boolean isCheckedOut()
Is this repository file currently checked out?

Returns:
true if this repository file is currently checked out, false otherwise.

isVersioned

public boolean isVersioned()
Is this repository file versioned?

Returns:
true if this repository file is currently versioned, false otherwise.

isLocked

public boolean isLocked()
Is this repository file locked?

Returns:
true if this repository file is currently locked, false otherwise.

getVersionLabel

public String getVersionLabel()
Return the version of this repository file.

Returns:
The version label of this version of the repository file.


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