com.sas.hls.drug.project
Class Project

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

public class Project
extends ProjectDescriptor

A data object that represents a SAS Drug Development project and contains all properties of a project defined within an organization in the system.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.hls.drug.project.ProjectDescriptor
OBJECT_TYPE
 
Constructor Summary
Project(String identifier, String path, String name, long revision, List<Attribute> attributes, OrganizationDescriptor context, State state, String stateComment, String lead)
          Initializing constructor which sets the values of all variables.
Project(String identifier, String name, String path, OrganizationDescriptor context, State state, String stateComment)
          Deprecated. As of Java API 1.7. Please use Project(String, String, String, long, List, OrganizationDescriptor, State, String, String).
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 OrganizationDescriptor getContext()
          Returns the parent organization of this Project.
 String getLead()
          Return the current lead of this Project.
 State getState()
          Returns the current state of this Project.
 String getStateComment()
          Returns the most recent state comment for this Project.
 int hashCode()
          Return a hash code value for the object.
 void setLead(String lead)
          Set the new lead of this Project.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class com.sas.hls.drug.project.ProjectDescriptor
getAttributes, getIdentifier, getName, getObjectType, getPath, getRevision, setAttributes, setRevision
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Project

@Deprecated
public Project(String identifier,
                          String name,
                          String path,
                          OrganizationDescriptor context,
                          State state,
                          String stateComment)
Deprecated. As of Java API 1.7. Please use Project(String, String, String, long, List, OrganizationDescriptor, State, String, String).

Constructor

Parameters:
identifier -
name -
path -
context -
state -
stateComment -

Project

public Project(String identifier,
               String path,
               String name,
               long revision,
               List<Attribute> attributes,
               OrganizationDescriptor context,
               State state,
               String stateComment,
               String lead)
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.
context - The parent OrganizationDescriptor context for this Project.
state - The current State of this Project.
stateComment - The current comment (if one exists) associated with the last state change for this Project.
lead - The lead associated with this Project.
Since:
1.7
Method Detail

getStateComment

public String getStateComment()
Returns the most recent state comment for this Project.

Returns:
The most recent state comment for this Project.

getState

public State getState()
Returns the current state of this Project.

Returns:
The current state of this Project.

getContext

public OrganizationDescriptor getContext()
Returns the parent organization of this Project.

Returns:
The parent organization of this Project.

getLead

public String getLead()
Return the current lead of this Project.

Returns:
The current lead of this Project.

setLead

public void setLead(String lead)
Set the new lead of this Project.

Parameters:
lead - The new lead of this Project.
See Also:
ProjectService.updateProject(Project)

hashCode

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

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

equals

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

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

toString

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

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


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