|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.pbac2.pdp.webadmin.ACLadmin
public class ACLadmin
Provides code to create a web administration interface for PBAC access control lists. To use it, create a new ACLadmin object in your JSP page and then call addACLmodelToContext(). You should then render the ACLmodel object, which can be found in the "acl" attribute of the request context.
| Field Summary | |
|---|---|
static int |
TYPE_ANYONE
|
static int |
TYPE_CA
|
static int |
TYPE_MEMBER
|
static int |
TYPE_NONE
|
static int |
TYPE_SAML
|
static int |
TYPE_SUBJECT_DN
|
static int |
TYPE_TRUSTED_START
|
| Constructor Summary | |
|---|---|
ACLadmin(PDP pdp,
HttpServletRequest request)
Convenience constructor with other arguments set to null. |
|
ACLadmin(PDP pdp,
HttpServletRequest request,
HttpServletResponse response)
|
|
ACLadmin(PDP pdp,
HttpServletRequest request,
String resourceID)
Convenience constructor with other arguments set to null. |
|
ACLadmin(PDP pdp,
HttpServletRequest request,
String resourceID,
HttpServletResponse response)
|
|
ACLadmin(PDP pdp,
HttpServletRequest request,
String resourceID,
String fragment,
HttpServletResponse response)
Create a new ACLadmin from the parameters in this request. |
|
| Method Summary | |
|---|---|
void |
addACLmodelToContext()
Generate the ACLmodel for this resource, ready for rendering. |
void |
addTrustedAttributeType(String name,
String menuText,
String formText)
Add a trusted attribute that the user can add to this ACL. |
ACLmodel |
getACLmodel()
|
static Map<String,String> |
getDeleteParameters(PolicyRule rule)
Get the details needed to identify a match rule to be deleted. |
String |
getResourceType()
|
static String |
selected(PolicyRuleType value,
PolicyRuleType defaultValue)
|
static String |
selected(String value,
String defaultValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_NONE
public static final int TYPE_SUBJECT_DN
public static final int TYPE_CA
public static final int TYPE_SAML
public static final int TYPE_MEMBER
public static final int TYPE_ANYONE
public static final int TYPE_TRUSTED_START
| Constructor Detail |
|---|
public ACLadmin(PDP pdp,
HttpServletRequest request)
throws InvalidResourceIDException
InvalidResourceIDException
public ACLadmin(PDP pdp,
HttpServletRequest request,
String resourceID)
throws InvalidResourceIDException
InvalidResourceIDException
public ACLadmin(PDP pdp,
HttpServletRequest request,
String resourceID,
HttpServletResponse response)
throws InvalidResourceIDException
InvalidResourceIDException
public ACLadmin(PDP pdp,
HttpServletRequest request,
HttpServletResponse response)
throws InvalidResourceIDException
InvalidResourceIDException
public ACLadmin(PDP pdp,
HttpServletRequest request,
String resourceID,
String fragment,
HttpServletResponse response)
throws InvalidResourceIDException
request - servlet's request objectresourceID - resource to use. If null, uses request.getParameter("resource")fragment - fragment identifier to add to links (e.g. "acl" to link to "page.jsp#acl")
InvalidResourceIDException| Method Detail |
|---|
public void addACLmodelToContext()
throws IOException,
org.apache.commons.fileupload.FileUploadException,
CertificateException
IOException
org.apache.commons.fileupload.FileUploadException
CertificateException
public ACLmodel getACLmodel()
throws IOException,
org.apache.commons.fileupload.FileUploadException,
CertificateException
IOException
org.apache.commons.fileupload.FileUploadException
CertificateExceptionpublic static Map<String,String> getDeleteParameters(PolicyRule rule)
rule - the rule to be deleted
public static String selected(String value,
String defaultValue)
public static String selected(PolicyRuleType value,
PolicyRuleType defaultValue)
public String getResourceType()
public void addTrustedAttributeType(String name,
String menuText,
String formText)
name - the attribute namemenuText - the label for the menu (e.g. "User name is ...")formText - the label for the value box (e.g. "User name:")TrustedAttribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||