Package com.sas.lsaf.clinical.standards
Class StandardDescriptor
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.clinical.standards.StandardDescriptor
- All Implemented Interfaces:
Identifiable,Serializable
A lightweight representation of a standard.
- Since:
- 2.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStandardDescriptor(String id, String name, BaseStandardTypeInfo baseStandardTypeInfo, String modelId, String description, boolean isCheckedOut, String checkedOutBy, Date checkedOutDate, String createdBy, Date created, String lastModifiedBy, Date lastModified, EntityState state, EntityState publishedState, EntityStatus standardStatus, String currentVersion, int numStudiesAssociated) It is not intended or recommended that the consumer of the API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the base standard type info of the standard.Gets the userId of the user who checked out the standard.Gets the date on which the standard was checked out.Gets the date on which the standard was created.Gets the userId of the user who created the standard.Gets the current published version of the standard.Gets the description of the standard.Gets the date on which the standard was last modified.Gets the userId of the user who last modified the standard.Gets the model identifier of the standard.getName()Gets the name of the standard.intGets the number of studies that are associated with the standard.Gets the published state of the standard, if it has been published.Gets the status of the standard.getState()Gets the state of the standard.inthashCode()booleanIndicates whether the standard is checked out.toString()Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
Constructor Details
-
StandardDescriptor
public StandardDescriptor(String id, String name, BaseStandardTypeInfo baseStandardTypeInfo, String modelId, String description, boolean isCheckedOut, String checkedOutBy, Date checkedOutDate, String createdBy, Date created, String lastModifiedBy, Date lastModified, EntityState state, EntityState publishedState, EntityStatus standardStatus, String currentVersion, int numStudiesAssociated) It is not intended or recommended that the consumer of the API construct these objects. They should only deal with the standard descriptors returned by the API.- Parameters:
id- The identifier of the standard.name- The name of the standard.baseStandardTypeInfo- The base standard information.modelId- The model identifier of the standard.description- The description of the standard.isCheckedOut- Indicates whether the standard is checked out.checkedOutBy- The userId of the user who checked out the standard.checkedOutDate- The date on which the standard was checked out.createdBy- The userId of the user who created the standard.created- The date on which the standard was created.lastModifiedBy- The userId of the user who last modified the standard.lastModified- The date on which the standard was modified.state- The state of the standard.publishedState- The published state of the standard, if it has been published.standardStatus- The status of the standard.currentVersion- The current published version of the standard.numStudiesAssociated- The number of studies that are associated with the standard.
-
-
Method Details
-
getNumStudiesAssociated
public int getNumStudiesAssociated()Gets the number of studies that are associated with the standard.- Returns:
- The number of studies that are associated with the standard.
-
getName
Gets the name of the standard.- Returns:
- The name of the standard.
-
getDescription
Gets the description of the standard.- Returns:
- The description of the standard.
-
getBaseStandardTypeInfo
Gets the base standard type info of the standard.- Returns:
- The base standard type info of the standard.
-
getModelId
Gets the model identifier of the standard.- Returns:
- The model identifier of the standard.
-
getCreatedBy
Gets the userId of the user who created the standard.- Returns:
- The userId of the user who created the standard.
-
getCreated
Gets the date on which the standard was created.- Returns:
- The date on which the standard was created.
-
isCheckedOut
public boolean isCheckedOut()Indicates whether the standard is checked out.- Returns:
- True, if the standard is checked out.
-
getCheckedOutBy
Gets the userId of the user who checked out the standard.- Returns:
- The userId of the user who checked out the standard.
-
getCheckedOutDate
Gets the date on which the standard was checked out.- Returns:
- The date on which the standard was checked out.
-
getState
Gets the state of the standard.- Returns:
- The state of the standard.
-
getPublishedState
Gets the published state of the standard, if it has been published. Otherwise, null.- Returns:
- The published state of the standard, if it has been published.
-
getStandardStatus
Gets the status of the standard.- Returns:
- The status of the standard.
-
getCurrentVersion
Gets the current published version of the standard. Returns 0, if the standard has not been published.- Returns:
- The current published version of the standard. Returns 0, if the standard has not been published.
-
getLastModified
Gets the date on which the standard was last modified.- Returns:
- The date on which the standard was last modified.
-
getLastModifiedBy
Gets the userId of the user who last modified the standard.- Returns:
- The userId of the user who last modified the standard.
-
equals
- Overrides:
equalsin classAbstractIdentifiable
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-