|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.domain.AbstractCaArrayObject
gov.nih.nci.caarray.domain.AbstractCaArrayEntity
gov.nih.nci.caarray.domain.project.Project
public class Project
A microarray project.
Field Summary |
---|
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity |
---|
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE |
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject |
---|
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH |
Constructor Summary | |
---|---|
Project()
Hibernate and caster constructor. |
Method Summary | |
---|---|
AccessProfile |
addGroupProfile(CollaboratorGroup group)
Add a new AccessProfile for a collaborator group unless the project already has a profile for this group. |
boolean |
canModifyPermissions(gov.nih.nci.security.authorization.domainobjects.User user)
Returns whether the given user has permission to modify permissions for this project. |
int |
compareTo(Project o)
|
java.util.Collection<AccessProfile> |
getAllAccessProfiles()
|
Experiment |
getExperiment()
Gets the experiment. |
java.util.Set<java.lang.String> |
getFileNames()
|
java.util.SortedSet<CaArrayFile> |
getFiles()
Gets all the files. |
CaArrayFileSet |
getFileSet()
|
java.util.Map<CollaboratorGroup,AccessProfile> |
getGroupProfiles()
|
java.lang.String |
getImportDescription()
|
java.util.SortedSet<CaArrayFile> |
getImportedFiles()
Get the files. |
java.util.SortedSet<CaArrayFile> |
getImportingFiles()
Get the files. |
java.util.Date |
getLastUpdated()
Gets the last updated date. |
java.util.Set<gov.nih.nci.security.authorization.domainobjects.User> |
getOwners()
|
AccessProfile |
getPublicProfile()
|
java.util.Set<gov.nih.nci.caarray.security.SecurityPolicy> |
getRemoteApiSecurityPolicies(gov.nih.nci.security.authorization.domainobjects.User user)
Return the set of security policies that should be applied to this object prior to it being returned as part of a return value for a remote API call. |
java.util.SortedSet<CaArrayFile> |
getUnImportedFiles()
Get the files. |
java.util.SortedSet<CaArrayFile> |
getUserVisibleFiles()
Get user visible imported files. |
java.util.SortedSet<CaArrayFile> |
getUserVisibleImportedFiles()
Get user visible imported files. |
java.util.SortedSet<CaArrayFile> |
getUserVisibleSupplementalFiles()
Get user visible supplemental files. |
java.util.SortedSet<CaArrayFile> |
getUserVisibleUnImportedFiles()
Get user visible unimported files. |
boolean |
hasReadPermission(gov.nih.nci.security.authorization.domainobjects.User user)
Returns whether the given user has read permissions to this project. |
boolean |
hasWritePermission(gov.nih.nci.security.authorization.domainobjects.User user)
Returns whether the given user has write permissions to this project. |
boolean |
isCollaborator(gov.nih.nci.security.authorization.domainobjects.User user)
Returns whether the given user is a collaborator on this project, ie whether he is in any of the collaborator groups that have an access profile with a security level greater than "None" configured for this project. |
boolean |
isImportingData()
|
boolean |
isLocked()
Gets the workflow status of this project. |
boolean |
isOwner(gov.nih.nci.security.authorization.domainobjects.User user)
Checks whether a given user is an owner of this project. |
boolean |
isUnparsedAndReimportable()
Check whether this is a experiment that was previously imported but not parsed, but now can be imported and parsed (due to a parsing FileHandler being implemented for it). |
AccessProfile |
removeGroupProfile(CollaboratorGroup group)
remove the access profile for given collaborator group from this project. |
void |
setExperiment(Experiment experimentVal)
Sets the experiment. |
void |
setFiles(java.util.SortedSet<CaArrayFile> filesVal)
Sets the files. |
void |
setImportDescription(java.lang.String importDescription)
|
void |
setLastUpdated(java.util.Date lastUpdated)
Sets the last updated date. |
void |
setLocked(boolean locked)
Sets the workflow status of this project. |
java.lang.String |
toString()
|
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity |
---|
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity |
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject |
---|
equals, getCaBigId, getId, getPostLoadSecurityPolicies, hashCode, setCaBigId, setId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.fiveamsolutions.nci.commons.data.persistent.PersistentObject |
---|
getId |
Constructor Detail |
---|
public Project()
Method Detail |
---|
@NotNull @AttributePolicy(allow="Browse") public boolean isLocked()
public void setLocked(boolean locked)
locked
- the locked status to set.public boolean isImportingData()
@AttributePolicy(allow="Browse") @Valid public Experiment getExperiment()
public void setExperiment(Experiment experimentVal)
experimentVal
- the experimentpublic java.util.SortedSet<CaArrayFile> getFiles()
public java.util.SortedSet<CaArrayFile> getUserVisibleFiles()
public void setFiles(java.util.SortedSet<CaArrayFile> filesVal)
filesVal
- the files to setpublic java.util.SortedSet<CaArrayFile> getImportedFiles()
public java.util.SortedSet<CaArrayFile> getUserVisibleImportedFiles()
public java.util.SortedSet<CaArrayFile> getImportingFiles()
public java.util.SortedSet<CaArrayFile> getUserVisibleSupplementalFiles()
public java.util.SortedSet<CaArrayFile> getUnImportedFiles()
public java.util.SortedSet<CaArrayFile> getUserVisibleUnImportedFiles()
public CaArrayFileSet getFileSet()
public java.util.Set<java.lang.String> getFileNames()
@AttributePolicy(allow="Browse") public AccessProfile getPublicProfile()
public java.util.Map<CollaboratorGroup,AccessProfile> getGroupProfiles()
public AccessProfile addGroupProfile(CollaboratorGroup group)
group
- to add profile for
public AccessProfile removeGroupProfile(CollaboratorGroup group)
group
- to remove profile for
public java.util.Collection<AccessProfile> getAllAccessProfiles()
public java.util.Set<gov.nih.nci.security.authorization.domainobjects.User> getOwners()
public boolean isOwner(gov.nih.nci.security.authorization.domainobjects.User user)
user
- user to check
public boolean hasReadPermission(gov.nih.nci.security.authorization.domainobjects.User user)
user
- the user (can be the synthetic "anonymous" permission)
public boolean hasWritePermission(gov.nih.nci.security.authorization.domainobjects.User user)
user
- the user (can be the synthetic "anonymous" permission)
public boolean canModifyPermissions(gov.nih.nci.security.authorization.domainobjects.User user)
user
- the user (can be the synthetic "anonymous" permission)
public boolean isCollaborator(gov.nih.nci.security.authorization.domainobjects.User user)
user
- the user (can be the synthetic "anonymous" user)
@AttributePolicy(allow="Browse") public java.util.Date getLastUpdated()
public void setLastUpdated(java.util.Date lastUpdated)
lastUpdated
- the last date this experiment was updatedpublic java.util.Set<gov.nih.nci.caarray.security.SecurityPolicy> getRemoteApiSecurityPolicies(gov.nih.nci.security.authorization.domainobjects.User user)
getRemoteApiSecurityPolicies
in class AbstractCaArrayObject
user
- the current user.
public int compareTo(Project o)
compareTo
in interface java.lang.Comparable<Project>
public java.lang.String toString()
toString
in class AbstractCaArrayObject
public boolean isUnparsedAndReimportable()
public java.lang.String getImportDescription()
public void setImportDescription(java.lang.String importDescription)
importDescription
- the importDescription to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |