Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.7.1)

E10686-09


oracle.adf.share.security.policystore
Class AppPolicySupport

java.lang.Object
  extended by oracle.adf.share.security.policystore.AppPolicySupport

All Implemented Interfaces:
AppPolicyService
Direct Known Subclasses:
JpsAppPolicySupport

public abstract class AppPolicySupport
extends java.lang.Object
implements AppPolicyService

Internal: Applications should not use this class.


Constructor Summary
AppPolicySupport()
           

 

Method Summary
abstract  SearchFilter createSearchFilter(java.util.List<SearchFilter> filters, boolean negation, boolean isOrMatch)
          Creates a complex search filter from a list of filters
abstract  SearchFilter createSearchFilter(java.lang.String value, AppRoleAttributeType attrType, Comparator comparatorType, MatcherType matcherType)
          Creates a search filter
abstract  java.util.List<ADFAppRole> findAppRolesByRoleCategory(java.lang.String roleCategory)
          Find application role by role category
abstract  java.util.List<java.security.Permission> findGrantedPermissions(AppRole appRole, java.lang.String permissionClass)
          Find granted permission for a given role and permission class name
abstract  java.util.List<AppRoleCategory> getRoleCategories()
          Get all role categories
abstract  java.util.List<java.lang.String> getRoleCategoryNames()
          Get all role category names
abstract  void grantPermission(AppRole appRole, java.security.Permission permission)
          Grant permission to an application role
abstract  boolean isComplexSearchSupported()
           
abstract  void revokePermission(AppRole appRole, java.security.Permission permission)
          Revoke permission from an application role
abstract  java.util.List<ADFAppRole> searchAppRoles(SearchFilter filter)
          Searches application roles using filter query.
abstract  java.util.List<ADFAppRole> searchAppRoles(java.lang.String value, AppRoleAttributeType attrType, boolean negation)
          Searches application roles by an attribute and its value.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.adf.share.security.policystore.AppPolicyService
getAllGrantedRoleNames, getGrantedRoles

 

Constructor Detail

AppPolicySupport

public AppPolicySupport()

Method Detail

getRoleCategoryNames

public abstract java.util.List<java.lang.String> getRoleCategoryNames()
Get all role category names
Returns:
List of application role category names

getRoleCategories

public abstract java.util.List<AppRoleCategory> getRoleCategories()
Get all role categories
Returns:
List of application role categories

findAppRolesByRoleCategory

public abstract java.util.List<ADFAppRole> findAppRolesByRoleCategory(java.lang.String roleCategory)
Find application role by role category
Parameters:
roleCategory -
Returns:
List of application roles for the role category

findGrantedPermissions

public abstract java.util.List<java.security.Permission> findGrantedPermissions(AppRole appRole,
                                                                                java.lang.String permissionClass)
Find granted permission for a given role and permission class name
Parameters:
appRole - Application role
permissionClass - Permission class name
Returns:
List of permissions granted to app role

grantPermission

public abstract void grantPermission(AppRole appRole,
                                     java.security.Permission permission)
Grant permission to an application role
Parameters:
appRole - Application role
permission - Permission to be granted

revokePermission

public abstract void revokePermission(AppRole appRole,
                                      java.security.Permission permission)
Revoke permission from an application role
Parameters:
appRole - Application Role
permission - Permission to be revoked

searchAppRoles

public abstract java.util.List<ADFAppRole> searchAppRoles(java.lang.String value,
                                                          AppRoleAttributeType attrType,
                                                          boolean negation)
Searches application roles by an attribute and its value.
Returns:
the List of ADFAppRole or null if no matching roles found

searchAppRoles

public abstract java.util.List<ADFAppRole> searchAppRoles(SearchFilter filter)
Searches application roles using filter query. The filter query could be simple or complex.
Returns:
the List of ADFAppRole or null if no matching roles found

createSearchFilter

public abstract SearchFilter createSearchFilter(java.lang.String value,
                                                AppRoleAttributeType attrType,
                                                Comparator comparatorType,
                                                MatcherType matcherType)
Creates a search filter
Parameters:
value - attribute value
attrType - attribute type
comparatorType - comparator type
matcherType - matcher type
Returns:
the SearchFilter

createSearchFilter

public abstract SearchFilter createSearchFilter(java.util.List<SearchFilter> filters,
                                                boolean negation,
                                                boolean isOrMatch)
Creates a complex search filter from a list of filters
Parameters:
filters - list of search filters
negation - apply NOT operator if true
isOrMatch - apply OR to all child filters
Returns:
the SearchFilter containing child filters

isComplexSearchSupported

public abstract boolean isComplexSearchSupported()
Returns:
true if complex search query is supported.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.7.1)

E10686-09


Copyright © 1997, 2013, Oracle. All rights reserved.