Class NewSample
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.Identifier<NewSample>
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.NewSample
-
- All Implemented Interfaces:
IPropertiesBean
,IIdentifierHolder
,java.io.Serializable
,java.lang.Comparable<NewSample>
- Direct Known Subclasses:
UpdatedSample
public class NewSample extends Identifier<NewSample> implements java.lang.Comparable<NewSample>, IPropertiesBean
A sample to register.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.Identifier
Identifier.IdentifierHolderComparator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTAINER
static java.lang.String
CURRENT_CONTAINER
static java.lang.String
EXPERIMENT
static java.lang.String
PARENT
static java.lang.String
PARENTS
static java.lang.String
SAMPLE_REGISTRATION_TEMPLATE_COMMENT
static java.lang.String
SPACE
static java.lang.String
WITH_EXPERIMENTS_COMMENT
static java.lang.String
WITH_SPACE_COMMENT
-
Fields inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.Identifier
IDENTIFIER_COLUMN, IDENTIFIER_HOLDER_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description NewSample()
NewSample(java.lang.String identifier, SampleType sampleType, java.lang.String containerIdentifier, java.lang.String[] parentsOrNull, java.lang.String experimentIdentifier, java.lang.String defaultSpaceIdentifier, java.lang.String currentContainerIdentifier, IEntityProperty[] properties, java.util.List<NewAttachment> attachments)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static NewSample
createWithParent(java.lang.String identifier, SampleType sampleType, java.lang.String containerIdentifier, java.lang.String parentIdentifier)
static NewSample
createWithParents(java.lang.String identifier, SampleType sampleType, java.lang.String containerIdentifier, java.lang.String[] parents)
boolean
equals(java.lang.Object obj)
java.util.List<NewAttachment>
getAttachments()
java.lang.String
getContainerIdentifier()
java.lang.String
getContainerIdentifierForNewSample()
java.lang.String
getCurrentContainerIdentifier()
java.lang.String
getDefaultSpaceIdentifier()
java.lang.String
getExperimentIdentifier()
java.lang.String[]
getMetaprojectsOrNull()
java.lang.String
getParentIdentifier()
Deprecated.convenience method for tests - usegetParentsOrNull()
insteadjava.lang.String[]
getParentsOrNull()
java.lang.String
getProjectIdentifier()
IEntityProperty[]
getProperties()
SampleType
getSampleType()
void
setAttachments(java.util.List<NewAttachment> attachments)
void
setContainerIdentifier(java.lang.String container)
void
setCurrentContainerIdentifier(java.lang.String currentContainerIdentifier)
void
setDefaultSpaceIdentifier(java.lang.String defaultSpaceIdentifier)
void
setExperimentIdentifier(java.lang.String experimentIdentifier)
void
setMetaprojectsOrNull(java.lang.String[] metaprojectsOrNull)
void
setParentIdentifier(java.lang.String parent)
Deprecated.kept for backward compatibility and used as a convenience method for tests - usesetParents(String)
insteadvoid
setParents(java.lang.String parents)
void
setParentsOrNull(java.lang.String[] parents)
void
setProjectIdentifier(java.lang.String projectIdentifier)
void
setProperties(IEntityProperty[] properties)
void
setSampleType(SampleType sampleType)
java.lang.String
toString()
-
Methods inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.Identifier
compareTo, getIdentifier, getPermID, hashCode, setIdentifier, setPermID, toUpperCase
-
-
-
-
Field Detail
-
SAMPLE_REGISTRATION_TEMPLATE_COMMENT
public static final java.lang.String SAMPLE_REGISTRATION_TEMPLATE_COMMENT
- See Also:
- Constant Field Values
-
WITH_EXPERIMENTS_COMMENT
public static java.lang.String WITH_EXPERIMENTS_COMMENT
-
WITH_SPACE_COMMENT
public static java.lang.String WITH_SPACE_COMMENT
-
CONTAINER
public static final java.lang.String CONTAINER
- See Also:
- Constant Field Values
-
CURRENT_CONTAINER
public static final java.lang.String CURRENT_CONTAINER
- See Also:
- Constant Field Values
-
PARENT
public static final java.lang.String PARENT
- See Also:
- Constant Field Values
-
PARENTS
public static final java.lang.String PARENTS
- See Also:
- Constant Field Values
-
EXPERIMENT
public static final java.lang.String EXPERIMENT
- See Also:
- Constant Field Values
-
SPACE
public static final java.lang.String SPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NewSample
public NewSample()
-
NewSample
public NewSample(java.lang.String identifier, SampleType sampleType, java.lang.String containerIdentifier, java.lang.String[] parentsOrNull, java.lang.String experimentIdentifier, java.lang.String defaultSpaceIdentifier, java.lang.String currentContainerIdentifier, IEntityProperty[] properties, java.util.List<NewAttachment> attachments)
-
-
Method Detail
-
createWithParent
public static NewSample createWithParent(java.lang.String identifier, SampleType sampleType, java.lang.String containerIdentifier, java.lang.String parentIdentifier)
-
createWithParents
public static NewSample createWithParents(java.lang.String identifier, SampleType sampleType, java.lang.String containerIdentifier, java.lang.String[] parents)
-
getAttachments
public java.util.List<NewAttachment> getAttachments()
-
setAttachments
public void setAttachments(java.util.List<NewAttachment> attachments)
-
getSampleType
public final SampleType getSampleType()
-
setSampleType
public final void setSampleType(SampleType sampleType)
-
getParentsOrNull
public java.lang.String[] getParentsOrNull()
-
setParentsOrNull
public void setParentsOrNull(java.lang.String[] parents)
-
setParents
public void setParents(java.lang.String parents)
-
getParentIdentifier
@Deprecated public final java.lang.String getParentIdentifier()
Deprecated.convenience method for tests - usegetParentsOrNull()
instead
-
setParentIdentifier
@Deprecated public final void setParentIdentifier(java.lang.String parent)
Deprecated.kept for backward compatibility and used as a convenience method for tests - usesetParents(String)
instead
-
getContainerIdentifier
public final java.lang.String getContainerIdentifier()
-
setContainerIdentifier
public final void setContainerIdentifier(java.lang.String container)
-
getCurrentContainerIdentifier
public final java.lang.String getCurrentContainerIdentifier()
-
setCurrentContainerIdentifier
public final void setCurrentContainerIdentifier(java.lang.String currentContainerIdentifier)
-
getExperimentIdentifier
public java.lang.String getExperimentIdentifier()
-
setExperimentIdentifier
public void setExperimentIdentifier(java.lang.String experimentIdentifier)
-
getProjectIdentifier
public java.lang.String getProjectIdentifier()
-
setProjectIdentifier
public void setProjectIdentifier(java.lang.String projectIdentifier)
-
getDefaultSpaceIdentifier
public java.lang.String getDefaultSpaceIdentifier()
-
setDefaultSpaceIdentifier
public void setDefaultSpaceIdentifier(java.lang.String defaultSpaceIdentifier)
-
getProperties
public final IEntityProperty[] getProperties()
- Specified by:
getProperties
in interfaceIPropertiesBean
-
setProperties
public final void setProperties(IEntityProperty[] properties)
- Specified by:
setProperties
in interfaceIPropertiesBean
-
getMetaprojectsOrNull
public java.lang.String[] getMetaprojectsOrNull()
-
setMetaprojectsOrNull
public void setMetaprojectsOrNull(java.lang.String[] metaprojectsOrNull)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getContainerIdentifierForNewSample
public java.lang.String getContainerIdentifierForNewSample()
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equals
in classIdentifier<NewSample>
-
-