public class RepositoryFile extends RepositoryResource
Synchronizable.Syncable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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?
|
getLastModifiedDate, toString
clone, equals, getSyncable, hashCode, setSyncable, toDisplayValue
addAttribute, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributes, removeAttribute, setAttribute, setAttributes
getName, getPath, setName, setPath
getIdentifier, getObjectType, setIdentifier, setObjectType
finalize, getClass, notify, notifyAll, wait, wait, wait
getName, getPath, setName, setPath
getIdentifier, getObjectType
public RepositoryFile(String identifier, String objectType, String path, long size, boolean isCheckedOut, boolean isVersioned, String versionLabel, boolean isLocked, Date lastModified, List<Attribute> attributes)
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.public long getSize()
public boolean isCheckedOut()
true
if this repository file is currently checked out, false
otherwise.public boolean isVersioned()
true
if this repository file is currently versioned, false
otherwise.public boolean isLocked()
true
if this repository file is currently locked, false
otherwise.public String getVersionLabel()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA