eu.xtreemos.xconsole.command
Class XConVOPS

java.lang.Object
  extended by eu.xtreemos.xconsole.command.XConVOPS

public class XConVOPS
extends java.lang.Object

Author:
gregor.pipan@xlab.si

Field Summary
 java.util.ArrayList<XConsoleHandle> handles
           
 java.lang.String servicename
           
 
Constructor Summary
XConVOPS()
           
 
Method Summary
 java.lang.Object addRule(java.lang.String __ruleXML, java.lang.String __policyId)
          Adds rule which is passed as XML string to the policy identified by policyId.
 java.lang.Object addXACMLRule(java.lang.String __ruleXACML, java.lang.String __policyId)
          Adds rule which is passed as XML string in XACML format to the policy identified by policyId.
 java.lang.Object createPolicy(java.lang.String __policyID, java.lang.String __description)
          A new policy file is created in policy storage using static PolicyFactory class.
 java.lang.Object evaluateRequest(java.lang.String __xacmlRequest)
           
 java.lang.Object listFilteredPolicy(java.lang.String __xacmlRequest)
           
 java.lang.Object listPolicies()
          Returns policyIds and for which resource this policy applies to.
 java.lang.Object listPolicy(java.lang.String __policyId)
          Lists specific policy with policyId.
 java.lang.Object listVoAdmins()
          Lists a list of registered VO administrators.
 java.util.ArrayList<XConsoleHandle> register()
           
 XConsoleHandle registeraddRule()
           
 XConsoleHandle registeraddXACMLRule()
           
 XConsoleHandle registercreatePolicy()
           
 XConsoleHandle registerevaluateRequest()
           
 XConsoleHandle registerlistFilteredPolicy()
           
 XConsoleHandle registerlistPolicies()
           
 XConsoleHandle registerlistPolicy()
           
 XConsoleHandle registerlistVoAdmins()
           
 XConsoleHandle registerregisterVoAdmin()
           
 XConsoleHandle registerreloadVOPS()
           
 XConsoleHandle registerremovePolicy()
           
 XConsoleHandle registerremoveRuleFromPolicy()
           
 XConsoleHandle registerunregisterVoAdmin()
           
 java.lang.Object registerVoAdmin(java.security.cert.X509Certificate __voAdminsCert)
          Adds certificate passed as an argument into a list of trusted certificates (VO admins list).
 XConsoleHandle registerwriteBack()
           
 java.lang.Object reloadVOPS()
          Reloads all policies stored in policy storage.
 java.lang.Object removePolicy(java.lang.String __policyId)
          Policy with policyId will be removed from policy storage.
 java.lang.Object removeRuleFromPolicy(java.lang.String __ruleId, java.lang.String __policyId)
          Removes rule from policy with specified policyId.
 java.lang.Object unregisterVoAdmin(java.lang.Integer __index)
          Removes certificate with specified index from a list of trusted certificates.
 java.lang.Object writeBack()
          Writes back policies from policy storage in PolicyFactory on to local disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servicename

public java.lang.String servicename

handles

public java.util.ArrayList<XConsoleHandle> handles
Constructor Detail

XConVOPS

public XConVOPS()
Method Detail

registerVoAdmin

public java.lang.Object registerVoAdmin(java.security.cert.X509Certificate __voAdminsCert)
Adds certificate passed as an argument into a list of trusted certificates (VO admins list).

Parameters:
voAdminsCert - certificate to add into a list of trusted certificates.
Returns:
true on success.

registerregisterVoAdmin

public XConsoleHandle registerregisterVoAdmin()

unregisterVoAdmin

public java.lang.Object unregisterVoAdmin(java.lang.Integer __index)
Removes certificate with specified index from a list of trusted certificates.

Parameters:
voAdminsCert -
Returns:
true on success

registerunregisterVoAdmin

public XConsoleHandle registerunregisterVoAdmin()

listVoAdmins

public java.lang.Object listVoAdmins()
Lists a list of registered VO administrators.

Returns:
list in a instance of String.

registerlistVoAdmins

public XConsoleHandle registerlistVoAdmins()

createPolicy

public java.lang.Object createPolicy(java.lang.String __policyID,
                                     java.lang.String __description)
A new policy file is created in policy storage using static PolicyFactory class. Policy has policyID, description and resource as provided with parameters

Parameters:
policyID - Id of new policy created
description - of new policy
Returns:
String policy as String instance.

registercreatePolicy

public XConsoleHandle registercreatePolicy()

removePolicy

public java.lang.Object removePolicy(java.lang.String __policyId)
Policy with policyId will be removed from policy storage.

Parameters:
policyId -
Returns:
true on success

registerremovePolicy

public XConsoleHandle registerremovePolicy()

listPolicies

public java.lang.Object listPolicies()
Returns policyIds and for which resource this policy applies to. For more info of policy, use command listPolicy ( policyId )

Returns:
ArrayList of policies as ArrayList of strings.

registerlistPolicies

public XConsoleHandle registerlistPolicies()

listPolicy

public java.lang.Object listPolicy(java.lang.String __policyId)
Lists specific policy with policyId. Returns policy as String object.

Parameters:
policyId -
Returns:
Policy in string

registerlistPolicy

public XConsoleHandle registerlistPolicy()

addRule

public java.lang.Object addRule(java.lang.String __ruleXML,
                                java.lang.String __policyId)
Adds rule which is passed as XML string to the policy identified by policyId. Returns rule as String object.

Parameters:
ruleXML - description of the rule
policyId - defines destination policy
Returns:

registeraddRule

public XConsoleHandle registeraddRule()

addXACMLRule

public java.lang.Object addXACMLRule(java.lang.String __ruleXACML,
                                     java.lang.String __policyId)
Adds rule which is passed as XML string in XACML format to the policy identified by policyId. Returns rule created as String object.

Parameters:
ruleXACML - XACML string presenting rule to be added to policy
policyId - defines destination policy (to which policy this rule will be added)
Returns:

registeraddXACMLRule

public XConsoleHandle registeraddXACMLRule()

listFilteredPolicy

public java.lang.Object listFilteredPolicy(java.lang.String __xacmlRequest)

registerlistFilteredPolicy

public XConsoleHandle registerlistFilteredPolicy()

evaluateRequest

public java.lang.Object evaluateRequest(java.lang.String __xacmlRequest)

registerevaluateRequest

public XConsoleHandle registerevaluateRequest()

removeRuleFromPolicy

public java.lang.Object removeRuleFromPolicy(java.lang.String __ruleId,
                                             java.lang.String __policyId)
Removes rule from policy with specified policyId.

Parameters:
ruleId - Rule which will be removed from policy.
policyId - policy from which this rule is removed.
Returns:

registerremoveRuleFromPolicy

public XConsoleHandle registerremoveRuleFromPolicy()

writeBack

public java.lang.Object writeBack()
Writes back policies from policy storage in PolicyFactory on to local disk.

Returns:
true on success.

registerwriteBack

public XConsoleHandle registerwriteBack()

reloadVOPS

public java.lang.Object reloadVOPS()
Reloads all policies stored in policy storage.

Returns:

registerreloadVOPS

public XConsoleHandle registerreloadVOPS()

register

public java.util.ArrayList<XConsoleHandle> register()