com.sas.hls.resource.repository
Class RepositoryResource

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

public abstract class RepositoryResource
extends Object
implements Resource, AclSecurable

Abstract parent class for resources in the repository.

See Also:
Serialized Form

Field Summary
protected  List<Attribute> attributes
           
protected  String identifier
           
protected  Date lastModifiedDate
           
protected  String objectType
           
protected  String path
           
 
Constructor Summary
RepositoryResource(String identifier, String objectType, String path, Date lastModified, List<Attribute> attributes)
          It is not intended or recommended that the consumer of the api construct these objects.
 
Method Summary
 boolean equals(Object obj)
           
 Attribute getAttribute(String name)
           
 List<Attribute> getAttributes()
           
 String getIdentifier()
          Get the identifier of this object.
 Date getLastModifiedDate()
           
 String getObjectType()
          Get the object type of this item.
 String getPath()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

path

protected String path

identifier

protected String identifier

objectType

protected String objectType

lastModifiedDate

protected Date lastModifiedDate

attributes

protected List<Attribute> attributes
Constructor Detail

RepositoryResource

public RepositoryResource(String identifier,
                          String objectType,
                          String path,
                          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 resource
objectType - object type of the repository resource
path - Path of the resource in the repository
lastModified - The date the resource was last modified
attributes - Attributes defined on the resource.
Method Detail

getPath

public String getPath()
Returns:
Path of the resource.

getLastModifiedDate

public Date getLastModifiedDate()
Returns:
Date the resource was last modified.

getIdentifier

public String getIdentifier()
Description copied from interface: Identifiable
Get the identifier of this object.

Specified by:
getIdentifier in interface Identifiable
Returns:
String the id of the resource

getObjectType

public String getObjectType()
Description copied from interface: Identifiable
Get the object type of this item.

Specified by:
getObjectType in interface Identifiable
Returns:
the object type of this item.

getAttributes

public List<Attribute> getAttributes()
Returns:
List of attributes defined on the resource.

getAttribute

public Attribute getAttribute(String name)
Parameters:
name - of the attribute being requested
Returns:
value of attribute with the provided name.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


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