Class AccessRule

java.lang.Object
edu.ucsb.nceas.metacat.accesscontrol.AccessRule

public class AccessRule extends Object
A Class that represents an XML access rule. It include principal and permission
  • Constructor Details

    • AccessRule

      public AccessRule()
  • Method Details

    • setPermissionType

      public void setPermissionType(String type)
      Set the permssionType
    • getPermissionType

      public String getPermissionType()
    • addPrincipal

      public void addPrincipal(String newPrincipal)
      Set the a principle
    • getPrincipal

      public Vector<String> getPrincipal()
      Get the principle vector
    • setPermission

      public void setPermission(int myPermission)
      Set a permission.
    • getPermission

      public int getPermission()
      Get permission
    • clone

      public Object clone()
      Copy a AccessRule to another accessrule object
      Overrides:
      clone in class Object