uk.ac.soton.itinnovation.grid.pbac2.pdp.webadmin
Class ACLmodel

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.pbac2.pdp.webadmin.ACLmodel

public class ACLmodel
extends Object

This bean is used to pass information from ACLadmin to the JSP for rendering.

See Also:
ACLadmin

Method Summary
 void addFailureMessage(String failureMessage)
           
 void addRules(PolicyRule[] rules)
           
 void addSuccessMessage(String successMessage)
           
 String getDefaultProcessRole()
           
 PolicyRuleType getDefaultType()
           
 Map<String,String> getDeleteParameters(PolicyRule rule)
           
 String getFailureMessage()
           
 String[] getGroups()
           
 String getLinkSelf()
           
 boolean getNoLongerExists()
           
 String getResourceID()
           
 String[] getRoles()
          Returns the list of roles which are currently being used.
 PolicyRule[] getRules(String role)
           
 String getSuccessMessage()
           
 TrustedAttributeType getTrustedAttributeType(int typeid)
           
 TrustedAttributeType[] getTrustedAttributeTypes()
           
 int getTypeOfRuleToAdd()
           
 String[] getValidRoles()
          Returns all valid roles (those that could be used in new rules).
 boolean hasAuthorityCertificate(PolicyRule rule)
          Check whether this match rule has a certificate.
 boolean isEditable()
           
 boolean isGroup()
           
 void setDefaultProcessRole(String defaultProcessRole)
           
 void setDefaultType(PolicyRuleType defaultType)
           
 void setEditable(boolean editable)
           
 void setGroup(boolean group)
           
 void setGroups(String[] groups)
           
 void setLinkSelf(String linkSelf)
           
 void setNoLongerExists(boolean noLongerExists)
           
 void setResourceID(String resourceID)
           
 void setTrustedAttributeTypes(TrustedAttributeType[] trustedAttributeTypes)
           
 void setTypeOfRuleToAdd(int typeOfRuleToAdd)
           
 void setValidRoles(String[] validRoles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEditable

public boolean isEditable()

isGroup

public boolean isGroup()

getSuccessMessage

public String getSuccessMessage()

getFailureMessage

public String getFailureMessage()

getLinkSelf

public String getLinkSelf()

getTypeOfRuleToAdd

public int getTypeOfRuleToAdd()

setTrustedAttributeTypes

public void setTrustedAttributeTypes(TrustedAttributeType[] trustedAttributeTypes)

getRules

public PolicyRule[] getRules(String role)

getRoles

public String[] getRoles()
Returns the list of roles which are currently being used.


setValidRoles

public void setValidRoles(String[] validRoles)

getValidRoles

public String[] getValidRoles()
Returns all valid roles (those that could be used in new rules).


getTrustedAttributeTypes

public TrustedAttributeType[] getTrustedAttributeTypes()

setEditable

public void setEditable(boolean editable)

setGroup

public void setGroup(boolean group)

addSuccessMessage

public void addSuccessMessage(String successMessage)

addFailureMessage

public void addFailureMessage(String failureMessage)

setLinkSelf

public void setLinkSelf(String linkSelf)

setTypeOfRuleToAdd

public void setTypeOfRuleToAdd(int typeOfRuleToAdd)

addRules

public void addRules(PolicyRule[] rules)

setDefaultType

public void setDefaultType(PolicyRuleType defaultType)

getDefaultType

public PolicyRuleType getDefaultType()

setResourceID

public void setResourceID(String resourceID)

getResourceID

public String getResourceID()

setDefaultProcessRole

public void setDefaultProcessRole(String defaultProcessRole)

getDefaultProcessRole

public String getDefaultProcessRole()

setGroups

public void setGroups(String[] groups)

getGroups

public String[] getGroups()

getTrustedAttributeType

public TrustedAttributeType getTrustedAttributeType(int typeid)

getNoLongerExists

public boolean getNoLongerExists()

setNoLongerExists

public void setNoLongerExists(boolean noLongerExists)

hasAuthorityCertificate

public boolean hasAuthorityCertificate(PolicyRule rule)
Check whether this match rule has a certificate. This can be used to decide whether to offer a 'Download certificate' action.

Parameters:
rule - the rule to be checked
Returns:
true iff there is a certificate

getDeleteParameters

public Map<String,String> getDeleteParameters(PolicyRule rule)


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.