com.sas.drugdev.remote.repository
Interface RemoteFile

All Superinterfaces:
File, Node, RemoteNode

public interface RemoteFile
extends RemoteNode, File

Interface representing a file that lives in the server repository. It is immutable. If you wish to change the properties on the server side, you must construct and instance of FileBean to do so. Instances are created by the API and can't be constructed.


Method Summary
 java.lang.String getCheckedOutBy()
          Get the user id of the user who has this file checked out.
 long getLength()
          Get the length of the File.
 java.util.List getVersions()
          Get all the versions available for this file
 boolean isCheckedOut()
          Is this file currently checked out?
 boolean isVersioned()
          Is this versioning enabled on this file?
 
Methods inherited from interface com.sas.drugdev.remote.repository.RemoteNode
canDelete, canManage, canRead, canWrite, getCreatedBy, getCreationDate, getLastModifiedBy, getLastModifiedDate, getName, getOwner
 
Methods inherited from interface com.sas.drugdev.remote.repository.Node
getId, getPath, getProperties, getType
 
Methods inherited from interface com.sas.drugdev.remote.repository.File
getVersion
 

Method Detail

getLength

public long getLength()
Get the length of the File.

Returns:
the length of the file

getCheckedOutBy

public java.lang.String getCheckedOutBy()
Get the user id of the user who has this file checked out. Returns null if the file isn't checked out.

Returns:
the userid that has this file checked out, null if the file isn't checked out.

isCheckedOut

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

Returns:
whether the file is checked out

isVersioned

public boolean isVersioned()
Is this versioning enabled on this file?

Returns:
whether versioning is enabled on this file

getVersions

public java.util.List getVersions()
Get all the versions available for this file

Returns:
List of String objects representing the versions