Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.biomage.AuditAndSecurity
Class Security  view Security download Security.java

java.lang.Object
  extended byorg.biomage.Common.Extendable
      extended byorg.biomage.Common.Describable
          extended byorg.biomage.Common.Identifiable
              extended byorg.biomage.AuditAndSecurity.Security
All Implemented Interfaces:
org.biomage.Interface.HasAuditTrail, org.biomage.Interface.HasDescriptions, org.biomage.Interface.HasOwner, org.biomage.Interface.HasPropertySets, org.biomage.Interface.HasReadGroups, org.biomage.Interface.HasSecurity, org.biomage.Interface.HasWriteGroups, java.io.Serializable

public class Security
extends org.biomage.Common.Identifiable
implements java.io.Serializable, org.biomage.Interface.HasReadGroups, org.biomage.Interface.HasWriteGroups, org.biomage.Interface.HasOwner

Permission information for an object as to ownership, write and read permissions.


Nested Class Summary
 
Nested classes inherited from class org.biomage.Interface.HasReadGroups
org.biomage.Interface.HasReadGroups.ReadGroups_list
 
Nested classes inherited from class org.biomage.Interface.HasWriteGroups
org.biomage.Interface.HasWriteGroups.WriteGroups_list
 
Nested classes inherited from class org.biomage.Interface.HasAuditTrail
org.biomage.Interface.HasAuditTrail.AuditTrail_list
 
Nested classes inherited from class org.biomage.Interface.HasDescriptions
org.biomage.Interface.HasDescriptions.Descriptions_list
 
Nested classes inherited from class org.biomage.Interface.HasPropertySets
org.biomage.Interface.HasPropertySets.PropertySets_list
 
Field Summary
private  Contact owner
          The owner of the security rights.
private  org.biomage.Interface.HasReadGroups.ReadGroups_list readGroups
          Specifies which security groups have read permission.
private  org.biomage.Interface.HasWriteGroups.WriteGroups_list writeGroups
          Specifies which security groups have write permission.
 
Fields inherited from class org.biomage.Common.Identifiable
 
Fields inherited from class org.biomage.Common.Describable
 
Fields inherited from class org.biomage.Common.Extendable
 
Constructor Summary
Security()
          Default constructor.
Security(org.xml.sax.Attributes atts)
          Attribute constructor.
 
Method Summary
 void addToReadGroups(int position, SecurityGroup securityGroup)
          Method to add SecurityGroup at position to ReadGroups_list
 void addToReadGroups(SecurityGroup securityGroup)
          Method to add SecurityGroup to ReadGroups_list
 void addToWriteGroups(int position, SecurityGroup securityGroup)
          Method to add SecurityGroup at position to WriteGroups_list
 void addToWriteGroups(SecurityGroup securityGroup)
          Method to add SecurityGroup to WriteGroups_list
 SecurityGroup getFromReadGroups(int position)
          Method to get SecurityGroup from ReadGroups_list
 SecurityGroup getFromWriteGroups(int position)
          Method to get SecurityGroup from WriteGroups_list
 Contact getOwner()
          Get method for owner
 org.biomage.Interface.HasReadGroups.ReadGroups_list getReadGroups()
          Get method for readGroups
 org.biomage.Interface.HasWriteGroups.WriteGroups_list getWriteGroups()
          Get method for writeGroups
 void removeElementAtFromReadGroups(int position)
          Method to remove by position from ReadGroups_list
 void removeElementAtFromWriteGroups(int position)
          Method to remove by position from WriteGroups_list
 void removeFromReadGroups(SecurityGroup securityGroup)
          Method to remove first SecurityGroup from ReadGroups_list
 void removeFromWriteGroups(SecurityGroup securityGroup)
          Method to remove first SecurityGroup from WriteGroups_list
 void setOwner(Contact owner)
          Set method for owner
 void setReadGroups(org.biomage.Interface.HasReadGroups.ReadGroups_list readGroups)
          Set method for readGroups
 void setWriteGroups(org.biomage.Interface.HasWriteGroups.WriteGroups_list writeGroups)
          Set method for writeGroups
 void writeAssociations(java.io.Writer out)
          writeAssociations
 void writeAttributes(java.io.Writer out)
          writeAttributes
 void writeMAGEML(java.io.Writer out)
          writeMAGEML
 
Methods inherited from class org.biomage.Common.Identifiable
getIdentifier, getName, setIdentifier, setName
 
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, getFromPropertySets, getPropertySets, removeElementAtFromPropertySets, removeFromPropertySets, setPropertySets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readGroups

private org.biomage.Interface.HasReadGroups.ReadGroups_list readGroups
Specifies which security groups have read permission.


writeGroups

private org.biomage.Interface.HasWriteGroups.WriteGroups_list writeGroups
Specifies which security groups have write permission.


owner

private Contact owner
The owner of the security rights.

Constructor Detail

Security

public Security()
Default constructor.


Security

public Security(org.xml.sax.Attributes atts)
Attribute constructor. Looks up the attributes in the parameter and casts them from strings appropriately

Method Detail

writeMAGEML

public void writeMAGEML(java.io.Writer out)
                 throws java.io.IOException
writeMAGEML

This method is responsible for assembling the attribute and association data into XML. It creates the object tag and then calls the writeAttributes and writeAssociation methods.


writeAttributes

public void writeAttributes(java.io.Writer out)
                     throws java.io.IOException
writeAttributes

This method is responsible for assembling the attribute data into XML. It calls the super method to write out all attributes of this class and it's ancestors.


writeAssociations

public void writeAssociations(java.io.Writer out)
                       throws java.io.IOException
writeAssociations

This method is responsible for assembling the association data into XML. It calls the super method to write out all associations of this class's ancestors.


setReadGroups

public void setReadGroups(org.biomage.Interface.HasReadGroups.ReadGroups_list readGroups)
Set method for readGroups

Specified by:
setReadGroups in interface org.biomage.Interface.HasReadGroups

getReadGroups

public org.biomage.Interface.HasReadGroups.ReadGroups_list getReadGroups()
Get method for readGroups

Specified by:
getReadGroups in interface org.biomage.Interface.HasReadGroups

addToReadGroups

public void addToReadGroups(SecurityGroup securityGroup)
Method to add SecurityGroup to ReadGroups_list

Specified by:
addToReadGroups in interface org.biomage.Interface.HasReadGroups

addToReadGroups

public void addToReadGroups(int position,
                            SecurityGroup securityGroup)
Method to add SecurityGroup at position to ReadGroups_list

Specified by:
addToReadGroups in interface org.biomage.Interface.HasReadGroups

getFromReadGroups

public SecurityGroup getFromReadGroups(int position)
Method to get SecurityGroup from ReadGroups_list

Specified by:
getFromReadGroups in interface org.biomage.Interface.HasReadGroups

removeElementAtFromReadGroups

public void removeElementAtFromReadGroups(int position)
Method to remove by position from ReadGroups_list

Specified by:
removeElementAtFromReadGroups in interface org.biomage.Interface.HasReadGroups

removeFromReadGroups

public void removeFromReadGroups(SecurityGroup securityGroup)
Method to remove first SecurityGroup from ReadGroups_list

Specified by:
removeFromReadGroups in interface org.biomage.Interface.HasReadGroups

setWriteGroups

public void setWriteGroups(org.biomage.Interface.HasWriteGroups.WriteGroups_list writeGroups)
Set method for writeGroups

Specified by:
setWriteGroups in interface org.biomage.Interface.HasWriteGroups

getWriteGroups

public org.biomage.Interface.HasWriteGroups.WriteGroups_list getWriteGroups()
Get method for writeGroups

Specified by:
getWriteGroups in interface org.biomage.Interface.HasWriteGroups

addToWriteGroups

public void addToWriteGroups(SecurityGroup securityGroup)
Method to add SecurityGroup to WriteGroups_list

Specified by:
addToWriteGroups in interface org.biomage.Interface.HasWriteGroups

addToWriteGroups

public void addToWriteGroups(int position,
                             SecurityGroup securityGroup)
Method to add SecurityGroup at position to WriteGroups_list

Specified by:
addToWriteGroups in interface org.biomage.Interface.HasWriteGroups

getFromWriteGroups

public SecurityGroup getFromWriteGroups(int position)
Method to get SecurityGroup from WriteGroups_list

Specified by:
getFromWriteGroups in interface org.biomage.Interface.HasWriteGroups

removeElementAtFromWriteGroups

public void removeElementAtFromWriteGroups(int position)
Method to remove by position from WriteGroups_list

Specified by:
removeElementAtFromWriteGroups in interface org.biomage.Interface.HasWriteGroups

removeFromWriteGroups

public void removeFromWriteGroups(SecurityGroup securityGroup)
Method to remove first SecurityGroup from WriteGroups_list

Specified by:
removeFromWriteGroups in interface org.biomage.Interface.HasWriteGroups

setOwner

public void setOwner(Contact owner)
Set method for owner

Specified by:
setOwner in interface org.biomage.Interface.HasOwner

getOwner

public Contact getOwner()
Get method for owner

Specified by:
getOwner in interface org.biomage.Interface.HasOwner