Class AccessRule
java.lang.Object
edu.ucsb.nceas.metacat.accesscontrol.AccessRule
A Class that represents an XML access rule. It include principal and
permission
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrincipal
(String newPrincipal) Set the a principleclone()
Copy a AccessRule to another accessrule objectint
Get permissionGet the principle vectorvoid
setPermission
(int myPermission) Set a permission.void
setPermissionType
(String type) Set the permssionType
-
Constructor Details
-
AccessRule
public AccessRule()
-
-
Method Details
-
setPermissionType
Set the permssionType -
getPermissionType
-
addPrincipal
Set the a principle -
getPrincipal
Get the principle vector -
setPermission
public void setPermission(int myPermission) Set a permission. -
getPermission
public int getPermission()Get permission -
clone
Copy a AccessRule to another accessrule object
-