edu.ucsb.nceas.metacat
Class AccessControlForSingleFile

java.lang.Object
  extended byedu.ucsb.nceas.metacat.AccessControlForSingleFile
All Implemented Interfaces:
AccessControlInterface

public class AccessControlForSingleFile
extends java.lang.Object
implements AccessControlInterface

A Class that loads eml-access.xml file containing ACL for a metadata document into relational DB. It extends DefaultHandler class to handle SAX parsing events when processing the XML stream.


Field Summary
 
Fields inherited from interface edu.ucsb.nceas.metacat.AccessControlInterface
ACCESS, ACLID, ALL, ALLOW, ALLOWFIRST, ALLSTRING, CHMOD, CHMODSTRING, DENY, DENYFIRST, PERMISSION, PRINCIPAL, PUBLIC, READ, READSTRING, WRITE, WRITESTRING
 
Constructor Summary
AccessControlForSingleFile(java.lang.String myAccessionNumber, java.lang.String myPrincipalName, java.lang.String myPermission, java.lang.String myPermType, java.lang.String myPermOrder)
          Construct an instance of the AccessControlForSingleFile class.
 
Method Summary
 void insertPermissions()
          Method to insert records into xml_access table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessControlForSingleFile

public AccessControlForSingleFile(java.lang.String myAccessionNumber,
                                  java.lang.String myPrincipalName,
                                  java.lang.String myPermission,
                                  java.lang.String myPermType,
                                  java.lang.String myPermOrder)
                           throws java.lang.Exception
Construct an instance of the AccessControlForSingleFile class.

Parameters:
myPermission - the permission will be given
myPermType - the permsission type, allow or deny
myPermOrder - the permission order, allowFirst or denyFirst
Method Detail

insertPermissions

public void insertPermissions()
                       throws java.sql.SQLException
Method to insert records into xml_access table

Throws:
java.sql.SQLException


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.