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 Also:
Serialized Form

Field Summary
static String OBJECT_TYPE
          Represents the type name of a Project object.
 
Constructor Summary
ProjectDescriptor(String identifier)
          Deprecated. As of Java API 1.7. Please use ProjectDescriptor(String, String, String, long, List).
ProjectDescriptor(String identifier, String name, String path)
          Deprecated. As of Java API 1.7. Please use ProjectDescriptor(String, String, String, long, List).
ProjectDescriptor(String identifier, String path, String name, long revision, List<Attribute> attributes)
          Initializing constructor which sets the values of all variables.
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 List<Attribute> getAttributes()
          Returns the attributes associated with this Project.
 String getIdentifier()
          Get the identifier of this object.
 String getName()
          Returns the name of this Project.
 String getObjectType()
          Get the object type of this item.
 String getPath()
          Returns the full path of this Project.
 long getRevision()
          Returns the internal revision number of this Project.
 int hashCode()
          Return a hash code value for the object.
 void setAttributes(List<Attribute> attributes)
          Set the attributes associated with this Project.
 void setRevision(long revision)
          Deprecated. As of Java API 1.7. There is no replacement. Revision is immutable.
 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

@Deprecated
public ProjectDescriptor(String identifier,
                                    String name,
                                    String path)
Deprecated. As of Java API 1.7. Please use ProjectDescriptor(String, String, String, long, List).

Constructor

Parameters:
identifier -
name -
path -

ProjectDescriptor

@Deprecated
public ProjectDescriptor(String identifier)
Deprecated. As of Java API 1.7. Please use ProjectDescriptor(String, String, String, long, List).

Constructor

Parameters:
identifier -

ProjectDescriptor

public ProjectDescriptor(String identifier,
                         String path,
                         String name,
                         long revision,
                         List<Attribute> attributes)
Initializing constructor which sets the values of all variables.

It is not intended or recommended that the consumer of the API construct these objects. They should only be retrieved from service calls such as ProjectService.getProjectDescriptorByName(com.sas.hls.organization.OrganizationDescriptor, String).

Parameters:
identifier - The identifier of the Project.
path - The full path to the Project.
name - The name of the Project.
revision - The internal revision number for this Project.
attributes - The attributes associated with this Project.
Since:
1.7
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.

getName

public String getName()
Returns the name of this Project.

Returns:
The name of this Project.

getPath

public String getPath()
Returns the full path of this Project.

Returns:
The full path of this Project.

getRevision

public long getRevision()
Returns the internal revision number of this Project.

Returns:
The internal revision number of this Project.

getAttributes

public List<Attribute> getAttributes()
Returns the attributes associated with this Project.

Returns:
The attributes associated with this Project.

setAttributes

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

Parameters:
attributes - The attributes to associate with this Project.

setRevision

@Deprecated
public void setRevision(long revision)
Deprecated. As of Java API 1.7. There is no replacement. Revision is immutable.

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