com.sas.hls.resource.repository
Class RepositoryResource
java.lang.Object
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
path
protected String path
identifier
protected String identifier
objectType
protected String objectType
lastModifiedDate
protected Date lastModifiedDate
attributes
protected List<Attribute> attributes
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 resourceobjectType
- object type of the repository resourcepath
- Path of the resource in the repositorylastModified
- The date the resource was last modifiedattributes
- Attributes defined on the resource.
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