com.bea.ales.management
Class AuthorizationPolicyQueryResult

java.lang.Object
  |
  +--com.bea.ales.management.query.MultiQueryResultImpl
        |
        +--com.bea.ales.management.AuthorizationPolicyQueryResult

public class AuthorizationPolicyQueryResult
extends com.bea.ales.management.query.MultiQueryResultImpl

This class represents the result of executing a query on authorization policies. It provides methods to iterate over the result and find an policy from the result.


Constructor Summary
AuthorizationPolicyQueryResult(com.bea.ales.management.cache.CollectionRef ref, RBAC_Context ctx, com.bea.ales.management.cache.QueryCache cache)
          Constructs an AuthorizationPolicyQueryResult object.
 
Method Summary
 AuthorizationPolicy find(java.lang.String queryString)
          Find an authorization policy that matches the query condition.
 AuthorizationPolicy next()
          Get the next authorization policy in the result.
 AuthorizationPolicy previous()
          Get the previous authorization policy in the result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationPolicyQueryResult

public AuthorizationPolicyQueryResult(com.bea.ales.management.cache.CollectionRef ref,
                                      RBAC_Context ctx,
                                      com.bea.ales.management.cache.QueryCache cache)
Constructs an AuthorizationPolicyQueryResult object.

Parameters:
ref - the internal collection identity.
ctx - the RBAC context.
cache - the cache to hold the collectionRef of this query result
Method Detail

next

public AuthorizationPolicy next()
                         throws ManagementException
Get the next authorization policy in the result.

Returns:
the next policy; or null if this is the last one.
Throws:
ManagementException - if the operation fails.

previous

public AuthorizationPolicy previous()
                             throws ManagementException
Get the previous authorization policy in the result.

Returns:
the previous policy; or null if this is the first one.
Throws:
ManagementException - if the operation fails.

find

public AuthorizationPolicy find(java.lang.String queryString)
                         throws ManagementException
Find an authorization policy that matches the query condition. Match means the query condition must be an exact match of the string represetation of the policy object.

Parameters:
queryString - the query condition.
Returns:
the policy that matches the condition; or null of none matches.
Throws:
ManagementException - if the operation fails.


Copyright © 2006 BEA Systems Inc. All Rights Reserved.