com.sas.hls.drug.analysis
Class Analysis

java.lang.Object
  extended by com.sas.hls.drug.analysis.AnalysisDescriptor
      extended by com.sas.hls.drug.analysis.Analysis
All Implemented Interfaces:
Identifiable, AclContainerSecurable, AclSecurable, GroupContext, MembershipContext, PrivilegeContext, RoleContext, Serializable

public class Analysis
extends AnalysisDescriptor

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.hls.drug.analysis.AnalysisDescriptor
OBJECT_TYPE
 
Constructor Summary
Analysis(String identifier, String path, String name, long revision, List<Attribute> attributes, ProjectDescriptor context, State state, String stateComment, String lead)
          Initializing constructor which sets the values of all variables.
Analysis(String identifier, String name, String path, ProjectDescriptor context, State state, String stateComment)
          Deprecated. As of Java API 1.7. Please use Analysis(String, String, String, long, List, ProjectDescriptor, State, String, String).
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 ProjectDescriptor getContext()
          Returns the parent organization of this Analysis.
 String getLead()
          Return the current lead of this Analysis.
 State getState()
          Returns the current state of this Analysis.
 String getStateComment()
          Returns the most recent state comment for this Analysis.
 int hashCode()
          Return a hash code value for the object.
 void setLead(String lead)
          Set the new lead of this Analysis.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class com.sas.hls.drug.analysis.AnalysisDescriptor
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

Analysis

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

Constructor

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

Analysis

public Analysis(String identifier,
                String path,
                String name,
                long revision,
                List<Attribute> attributes,
                ProjectDescriptor 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 AnalysisService.getAnalysisByName(ProjectDescriptor, String).

Parameters:
identifier - The identifier of the Analysis.
path - The full path to the Analysis.
name - The name of the Analysis.
revision - The internal revision number for this Analysis.
attributes - The attributes associated with this Analysis.
context - The parent ProjectDescriptor context for this Analysis.
state - The current State of this Analysis.
stateComment - The current comment (if one exists) associated with the last state change for this Analysis.
lead - The lead associated with this Analysis.
Since:
1.7
Method Detail

getStateComment

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

Returns:
The most recent state comment for this Analysis.

getState

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

Returns:
The current state of this Analysis.

getContext

public ProjectDescriptor getContext()
Returns the parent organization of this Analysis.

Returns:
The parent project of this Analysis.

getLead

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

Returns:
The current lead of this Analysis.

setLead

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

Parameters:
lead - The new lead of this Analysis.
See Also:
AnalysisService.updateAnalysis(Analysis)

hashCode

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

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

equals

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

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

toString

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

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


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