|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.domain.permissions.AccessProfile
public class AccessProfile
Container class that models the read and write permissions to samples.
Constructor Summary | |
---|---|
AccessProfile()
Hibernate-only constructor. |
|
AccessProfile(SecurityLevel securityLevel)
Creates a new profile with given initial security level. |
Method Summary | |
---|---|
int |
compareTo(AccessProfile profile)
Compares Access Profiles by group name, putting "The Public" after Collaboration groups. |
CollaboratorGroup |
getGroup()
|
java.lang.Long |
getId()
|
Project |
getProject()
|
java.util.Map<Sample,SampleSecurityLevel> |
getSampleSecurityLevels()
|
SecurityLevel |
getSecurityLevel()
|
boolean |
isGroupProfile()
|
boolean |
isPublicProfile()
|
void |
setGroup(CollaboratorGroup group)
|
void |
setId(java.lang.Long id)
Deprecated. should only be used by castor, hibernate and struts |
void |
setProjectForGroupProfile(Project projectForGroupProfile)
|
void |
setProjectForPublicProfile(Project projectForPublicProfile)
|
void |
setSampleSecurityLevels(java.util.Map<Sample,SampleSecurityLevel> sampleSecurityLevels)
|
void |
setSecurityLevel(SecurityLevel securityLevel)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessProfile()
public AccessProfile(SecurityLevel securityLevel)
securityLevel
- initial security levelMethod Detail |
---|
public java.lang.Long getId()
getId
in interface com.fiveamsolutions.nci.commons.data.persistent.PersistentObject
@Deprecated public void setId(java.lang.Long id)
id
- the id to setpublic SecurityLevel getSecurityLevel()
public void setSecurityLevel(SecurityLevel securityLevel)
securityLevel
- the securityLevel to setpublic java.util.Map<Sample,SampleSecurityLevel> getSampleSecurityLevels()
public void setSampleSecurityLevels(java.util.Map<Sample,SampleSecurityLevel> sampleSecurityLevels)
sampleSecurityLevels
- the sampleSecurityLevels to setpublic void setProjectForPublicProfile(Project projectForPublicProfile)
projectForPublicProfile
- the projectForPublicProfile to set
DEVELOPER NOTE:
This method should not generally never be called. It needs to remain public
as it must be called by Project to establish the symmetric linkpublic void setProjectForGroupProfile(Project projectForGroupProfile)
projectForGroupProfile
- the projectForGroupProfile to set
DEVELOPER NOTE:
This method should not generally never be called. It needs to remain public
as it must be called by Project to establish the symmetric linkpublic boolean isPublicProfile()
public boolean isGroupProfile()
public Project getProject()
public CollaboratorGroup getGroup()
public void setGroup(CollaboratorGroup group)
group
- for group access profiles only, the group to which this profile corresponds
This method should not generally never be called. It needs to remain public
as it must be called by Project.addProfile to establish the symmetric linkpublic int compareTo(AccessProfile profile)
compareTo
in interface java.lang.Comparable<AccessProfile>
profile
- other Access Profile to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |