com.sas.hls.drug.project
Class ProjectDescriptor

java.lang.Object
  extended by com.sas.hls.drug.project.ProjectDescriptor
All Implemented Interfaces:
Identifiable, AclContainerSecurable, AclSecurable, GroupContext, MembershipContext, PrivilegeContext, RoleContext, Serializable
Direct Known Subclasses:
Project

public class ProjectDescriptor
extends Object
implements GroupContext, MembershipContext, RoleContext, AclContainerSecurable

A light-weight representation of a SAS Drug Development project. See Project for details contained in a project object.

See Also:
Serialized Form

Field Summary
static String OBJECT_TYPE
          Represents the type name of a Project object.
 
Constructor Summary
ProjectDescriptor(String identifier)
          Constructor
ProjectDescriptor(String identifier, String name, String path)
          Constructor
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 List<Attribute> getAttributes()
          Get the attributes associated with the projectDescriptor.
 String getIdentifier()
          Get the identifier of the projectDescriptor.
 String getName()
          Get the name of the projectDescriptor.
 String getObjectType()
          Get the objectType of the projectDescriptor.
 String getPath()
          Get the path of the projectDescriptor.
 long getRevision()
          Get the internal revision number of this object.
 int hashCode()
          Return a hash code value for the object.
 void setAttributes(List<Attribute> attributes)
          Set the attributes associated with this projectDescriptor.
 void setRevision(long revision)
          Set the internal revision number of this object.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT_TYPE

public static final String OBJECT_TYPE
Represents the type name of a Project object.

See Also:
Constant Field Values
Constructor Detail

ProjectDescriptor

public ProjectDescriptor(String identifier,
                         String name,
                         String path)
Constructor

Parameters:
identifier -
name -
path -

ProjectDescriptor

public ProjectDescriptor(String identifier)
Constructor

Parameters:
identifier -
Method Detail

getIdentifier

public String getIdentifier()
Get the identifier of the projectDescriptor.

Specified by:
getIdentifier in interface Identifiable
Returns:
the identifier

getName

public String getName()
Get the name of the projectDescriptor.

Returns:
the name

getAttributes

public List<Attribute> getAttributes()
Get the attributes associated with the projectDescriptor.

Returns:
the attributes set on the projectDescriptor.

setAttributes

public void setAttributes(List<Attribute> attributes)
Set the attributes associated with this projectDescriptor.

Parameters:
attributes - the attributes to set

getPath

public String getPath()
Get the path of the projectDescriptor.

Returns:
the path

getObjectType

public String getObjectType()
Get the objectType of the projectDescriptor.

Specified by:
getObjectType in interface Identifiable
Returns:
the objectType

getRevision

public long getRevision()
Get the internal revision number of this object.

Returns:
the internal revision number of this object.

setRevision

public void setRevision(long revision)
Set the internal revision number of this object.

Parameters:
revision - The new internal revision number of this object.

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) 2013, SAS Institute Inc., Cary, NC, USA