Class GeneSetValueObject
java.lang.Object
ubic.gemma.model.common.IdentifiableValueObject<GeneSet>
ubic.gemma.model.genome.gene.GeneSetValueObject
- All Implemented Interfaces:
Serializable, Securable, SecureValueObject, Identifiable
- Direct Known Subclasses:
DatabaseBackedGeneSetValueObject, SessionBoundGeneSetValueObject
public class GeneSetValueObject
extends IdentifiableValueObject<GeneSet>
implements SecureValueObject
Represents a Gene group gene set
- Author:
- kelsey
- See Also:
-
Field Summary
Fields inherited from class IdentifiableValueObject
id -
Constructor Summary
ConstructorsConstructorDescriptiondefault constructor to satisfy java bean contractCreate a lightweight wrapper that can be used for security filteringGeneSetValueObject(GeneSet geneSet, Taxon taxon, Long size) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbooleanGene IDs part of this gene set.booleanIndicate if the object is public.booleanIndicate if the object is shared.getName()getSize()getTaxon()booleanIndicate if the current user can modify this object.booleanIndicate if the current user owns the object.inthashCode()voidsetDescription(String description) voidsetGeneIds(Collection<Long> geneIds) Gene IDs part of this gene set.voidsetIsPublic(boolean isPublic) voidsetIsShared(boolean isShared) voidvoidsetSize(long size) voidsetTaxon(TaxonValueObject taxon) voidsetUserCanWrite(boolean userCanWrite) voidsetUserOwned(boolean userOwned) toString()Methods inherited from class IdentifiableValueObject
getId, setId
-
Constructor Details
-
GeneSetValueObject
public GeneSetValueObject()default constructor to satisfy java bean contract -
GeneSetValueObject
Create a lightweight wrapper that can be used for security filtering- Parameters:
id- id
-
GeneSetValueObject
-
-
Method Details
-
getTaxonId
-
getTaxonName
-
getSize
- Returns:
- the number of members in the group
-
setSize
public void setSize(long size) -
getCurrentUserIsOwner
public boolean getCurrentUserIsOwner() -
getUserOwned
public boolean getUserOwned()Description copied from interface:SecureValueObjectIndicate if the current user owns the object.- Specified by:
getUserOwnedin interfaceSecureValueObject
-
getUserCanWrite
public boolean getUserCanWrite()Description copied from interface:SecureValueObjectIndicate if the current user can modify this object.- Specified by:
getUserCanWritein interfaceSecureValueObject
-
setUserCanWrite
public void setUserCanWrite(boolean userCanWrite) - Specified by:
setUserCanWritein interfaceSecureValueObject
-
getIsPublic
public boolean getIsPublic()Description copied from interface:SecureValueObjectIndicate if the object is public.- Specified by:
getIsPublicin interfaceSecureValueObject
-
setIsPublic
public void setIsPublic(boolean isPublic) - Specified by:
setIsPublicin interfaceSecureValueObject
-
getSecurableClass
- Specified by:
getSecurableClassin interfaceSecureValueObject- Returns:
- the securable Class of the represented entity.
-
toString
- Overrides:
toStringin classIdentifiableValueObject<GeneSet>
-
getName
-
getDescription
-
getGeneIds
Gene IDs part of this gene set. -
getTaxon
-
setName
-
setDescription
-
setGeneIds
Gene IDs part of this gene set. -
setTaxon
-
setUserOwned
public void setUserOwned(boolean userOwned) - Specified by:
setUserOwnedin interfaceSecureValueObject
-
equals
- Overrides:
equalsin classIdentifiableValueObject<GeneSet>
-
canEqual
- Overrides:
canEqualin classIdentifiableValueObject<GeneSet>
-
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifiableValueObject<GeneSet>
-