Skip navigation links
oracle.iam.platform.authopss.api
Class SearchAuthorizationUtil
java.lang.Object
oracle.iam.platform.authopss.api.SearchAuthorizationUtil
-
public class SearchAuthorizationUtil
- extends java.lang.Object
This utility class provides a SQL with security filter for entities that support organization based data scopes. This SQL along with filter values can be used to construct a prepared statement. This SQL string returns entity id and should be joined with other entity specific tables and other search filters to produce authorization filtered search results.
Method Summary |
java.util.List |
getFilterValues()
|
java.lang.String |
getSecurityFilter()
|
static void |
insertStopCount(java.lang.StringBuilder sb, int startindex, int rowcount)
This is an utility method to add stop count around a given SQL SELECT statement. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchAuthorizationUtil
public SearchAuthorizationUtil(OrganizationScopeObligation scope,
PolicyConstants.Resources resource)
- Constructor
- Parameters:
scope
- Organization scope obligation as returned in the authorization result
resource
- Type of the entity resource to search. Only Role, Application Instance and Entitlement types are supported.
SearchAuthorizationUtil
public SearchAuthorizationUtil(java.util.Set orgScopeNoHierarchy,
java.util.Set orgScopeWithHierarchy,
PolicyConstants.Resources resource)
- Constructor
- Parameters:
orgScopeNoHierarchy
- organization scope with no hierarchical permissions
orgScopeWithHierarchy
- organization scope with search allowed in its hierarchy
resource
- type of the entity resource to search. Only Role, Application Instance and Entitlement types are supported.
insertStopCount
public static void insertStopCount(java.lang.StringBuilder sb,
int startindex,
int rowcount)
- This is an utility method to add stop count around a given SQL SELECT statement.
-
- Parameters:
sb
- valid SQL SELECT statement
startindex
- start index of the record to fetch
rowcount
- number of records to fetch
getSecurityFilter
public java.lang.String getSecurityFilter()
getFilterValues
public java.util.List getFilterValues()
Skip navigation links
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.