edu.ucsb.nceas.metacat
Class AccessRule

java.lang.Object
  extended byedu.ucsb.nceas.metacat.AccessRule

public class AccessRule
extends java.lang.Object

A Class that represents an XML access rule. It include principal and permission


Constructor Summary
AccessRule()
           
 
Method Summary
 void addPrincipal(java.lang.String newPrincipal)
          Set the a principle
 java.lang.Object clone()
          Copy a AccessRule to another accessrule object
 int getPermission()
          Get permission
 java.lang.String getPermissionType()
           
 java.util.Vector getPrincipal()
          Get the principle vector
 void setPermission(int myPermission)
          Set a permission.
 void setPermissionType(java.lang.String type)
          Set the permssionType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessRule

public AccessRule()
Method Detail

setPermissionType

public void setPermissionType(java.lang.String type)
Set the permssionType


getPermissionType

public java.lang.String getPermissionType()

addPrincipal

public void addPrincipal(java.lang.String newPrincipal)
Set the a principle


getPrincipal

public java.util.Vector getPrincipal()
Get the principle vector


setPermission

public void setPermission(int myPermission)
Set a permission.


getPermission

public int getPermission()
Get permission


clone

public java.lang.Object clone()
Copy a AccessRule to another accessrule object



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