com.redhat.rhn.common.security.acl.action
Class ActionAclHandler

java.lang.Object
  extended by com.redhat.rhn.common.security.acl.action.ActionAclHandler
All Implemented Interfaces:
AclHandler

public class ActionAclHandler
extends java.lang.Object
implements AclHandler

ActionAclHandler contains ACL methods related to com.redhat.rhn.domain.action.Action objects.


Constructor Summary
ActionAclHandler()
          Constructor for Access object
 
Method Summary
 boolean aclActionTypePatch(java.lang.Object ctx, java.lang.String[] params)
          Returns true if there is an action with the given id that is one of four action types associated with solaris patches
 boolean aclGenericActionType(java.lang.Object ctx, java.lang.String[] params)
          Returns true if there exists an Action which matches the given id, and whose archtype matches the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionAclHandler

public ActionAclHandler()
Constructor for Access object

Method Detail

aclGenericActionType

public boolean aclGenericActionType(java.lang.Object ctx,
                                    java.lang.String[] params)
Returns true if there exists an Action which matches the given id, and whose archtype matches the given type. Requires an aid String in the Context.

Parameters:
ctx - Context Map to pass in
params - Parameters to use to fetch from Context
Returns:
true if type type matches, false otherwise.

aclActionTypePatch

public boolean aclActionTypePatch(java.lang.Object ctx,
                                  java.lang.String[] params)
Returns true if there is an action with the given id that is one of four action types associated with solaris patches

Parameters:
ctx - Context Map
params - Parameters not used
Returns:
true is patch action type; false otherwise