|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biomage.Common.Extendable
org.biomage.Common.Describable
org.biomage.Common.Identifiable
org.biomage.AuditAndSecurity.Security
public class Security
Permission information for an object as to ownership, write and read permissions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.biomage.Interface.HasSecurityGroups |
---|
HasSecurityGroups.SecurityGroups_list |
Nested classes/interfaces inherited from interface org.biomage.Interface.HasOwner |
---|
HasOwner.Owner_list |
Nested classes/interfaces inherited from interface org.biomage.Interface.HasAuditTrail |
---|
HasAuditTrail.AuditTrail_list |
Nested classes/interfaces inherited from interface org.biomage.Interface.HasDescriptions |
---|
HasDescriptions.Descriptions_list |
Nested classes/interfaces inherited from interface org.biomage.Interface.HasPropertySets |
---|
HasPropertySets.PropertySets_list |
Field Summary | |
---|---|
protected java.util.List |
owner
The owner of the security rights. |
protected java.util.List |
securityGroups
Specifies which security groups have permission to view the associated object. |
Fields inherited from class org.biomage.Common.Describable |
---|
security |
Fields inherited from class org.biomage.Common.Extendable |
---|
editable, id, securedElementId |
Constructor Summary | |
---|---|
Security()
Default constructor. |
|
Security(org.xml.sax.Attributes atts)
Attribute constructor. |
Method Summary | |
---|---|
void |
addToOwner(Contact contact)
Method to add Contact to Owner_list |
void |
addToOwner(int position,
Contact contact)
Method to add Contact at position to Owner_list |
void |
addToSecurityGroups(int position,
SecurityGroup securityGroup)
Method to add SecurityGroup at position to SecurityGroups_list |
void |
addToSecurityGroups(SecurityGroup securityGroup)
Method to add SecurityGroup to SecurityGroups_list |
boolean |
emptyMAGEobject()
|
Contact |
getFromOwner(int position)
Method to get Contact from Owner_list |
SecurityGroup |
getFromSecurityGroups(int position)
Method to get SecurityGroup from SecurityGroups_list |
java.lang.String |
getModelClassName()
|
HasOwner.Owner_list |
getOwner()
Get method for owner |
HasSecurityGroups.SecurityGroups_list |
getSecurityGroups()
Get method for securityGroups |
void |
removeElementAtFromOwner(int position)
Method to remove by position from Owner_list |
void |
removeElementAtFromSecurityGroups(int position)
Method to remove by position from SecurityGroups_list |
void |
removeFromOwner(Contact contact)
Method to remove first Contact from Owner_list |
void |
removeFromSecurityGroups(SecurityGroup securityGroup)
Method to remove first SecurityGroup from SecurityGroups_list |
void |
setAttributes(org.xml.sax.Attributes atts)
|
void |
setOwner(HasOwner.Owner_list owner)
Set method for owner |
void |
setSecurityGroups(HasSecurityGroups.SecurityGroups_list securityGroups)
Set method for securityGroups |
void |
writeAssociations(java.io.Writer out)
writeAssociations This method is responsible for assembling the association data into XML. |
void |
writeAttributes(java.io.Writer out)
writeAttributes This method is responsible for assembling the attribute data into XML. |
void |
writeMAGEML(java.io.Writer out)
writeMAGEML This method is responsible for assembling the attribute and association data into XML. |
Methods inherited from class org.biomage.Common.Identifiable |
---|
getIdentifier, getName, setIdentifier, setName, toString |
Methods inherited from class org.biomage.Common.Describable |
---|
addToAuditTrail, addToAuditTrail, addToDescriptions, addToDescriptions, getAuditTrail, getDescriptions, getFromAuditTrail, getFromDescriptions, getSecurity, removeElementAtFromAuditTrail, removeElementAtFromDescriptions, removeFromAuditTrail, removeFromDescriptions, setAuditTrail, setDescriptions, setSecurity |
Methods inherited from class org.biomage.Common.Extendable |
---|
addToPropertySets, addToPropertySets, equals, getFromPropertySets, getId, getIsEditable, getPropertySets, getSecuredElementId, isEditable, removeElementAtFromPropertySets, removeFromPropertySets, setId, setIsEditable, setPropertySets, setSecuredElementId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List owner
protected java.util.List securityGroups
Constructor Detail |
---|
public Security()
public Security(org.xml.sax.Attributes atts)
atts:
- the attribute list.Method Detail |
---|
public void setAttributes(org.xml.sax.Attributes atts)
setAttributes
in class Identifiable
public void writeMAGEML(java.io.Writer out) throws java.io.IOException
writeMAGEML
in class Identifiable
java.io.IOException
public boolean emptyMAGEobject()
public void writeAttributes(java.io.Writer out) throws java.io.IOException
writeAttributes
in class Identifiable
java.io.IOException
public void writeAssociations(java.io.Writer out) throws java.io.IOException
writeAssociations
in class Identifiable
java.io.IOException
public java.lang.String getModelClassName()
getModelClassName
in class Identifiable
public void setOwner(HasOwner.Owner_list owner)
setOwner
in interface HasOwner
value
- to setpublic HasOwner.Owner_list getOwner()
getOwner
in interface HasOwner
public void addToOwner(Contact contact)
addToOwner
in interface HasOwner
public void addToOwner(int position, Contact contact)
addToOwner
in interface HasOwner
public Contact getFromOwner(int position)
getFromOwner
in interface HasOwner
public void removeElementAtFromOwner(int position)
removeElementAtFromOwner
in interface HasOwner
public void removeFromOwner(Contact contact)
removeFromOwner
in interface HasOwner
public void setSecurityGroups(HasSecurityGroups.SecurityGroups_list securityGroups)
setSecurityGroups
in interface HasSecurityGroups
value
- to setpublic HasSecurityGroups.SecurityGroups_list getSecurityGroups()
getSecurityGroups
in interface HasSecurityGroups
public void addToSecurityGroups(SecurityGroup securityGroup)
addToSecurityGroups
in interface HasSecurityGroups
public void addToSecurityGroups(int position, SecurityGroup securityGroup)
addToSecurityGroups
in interface HasSecurityGroups
public SecurityGroup getFromSecurityGroups(int position)
getFromSecurityGroups
in interface HasSecurityGroups
public void removeElementAtFromSecurityGroups(int position)
removeElementAtFromSecurityGroups
in interface HasSecurityGroups
public void removeFromSecurityGroups(SecurityGroup securityGroup)
removeFromSecurityGroups
in interface HasSecurityGroups
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |