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

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)
          Indicate whether some other object is "equal to" this one.
 Attribute getAttribute(String name)
          Return the attribute with the provided name.
 List<Attribute> getAttributes()
          Return the list of attributes associated with this repository resource.
 String getIdentifier()
          Get the identifier of this object.
 Date getLastModifiedDate()
          Return the date this repository resource was last modified.
 String getObjectType()
          Get the object type of this item.
 String getPath()
          Return the path to this repository resource.
 int hashCode()
          Return a hash code value for the object.
 void setAttributes(List<Attribute> attributes)
           
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 - The identifier of this repository resource.
objectType - The object type of this repository resource.
path - The path of this resource in the repository.
lastModified - The date this repository resource was last modified.
attributes - The attributes defined on this repository resource.
Method Detail

getIdentifier

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

Specified by:
getIdentifier in interface Identifiable
Returns:
the identifier of this object

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.

getPath

public String getPath()
Return the path to this repository resource.

Returns:
The path of this repository resource.

getLastModifiedDate

public Date getLastModifiedDate()
Return the date this repository resource was last modified.

Returns:
The date this repository resource was last modified.

getAttributes

public List<Attribute> getAttributes()
Return the list of attributes associated with this repository resource.

Returns:
List of attributes defined on this repository resource.

getAttribute

public Attribute getAttribute(String name)
Return the attribute with the provided name.

Parameters:
name - The name of the attribute being requested
Returns:
value The value of the attribute with the provided name, or null if it does not exist.

setAttributes

public void setAttributes(List<Attribute> attributes)

hashCode

public int hashCode()
Return a hash code value for the object.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Indicate whether some other object is "equal to" this one.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()


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