SAP ABAP Class CL_GRFN_UTIL_ROLE_ASSIGNMENT (Utility methods for role assignment)
Hierarchy
GRCFND_A (Software Component) GRC Foundation ABAP
   GRC (Application Component) Governance, Risk and Compliance
     GRFN_ACCESS (Package) Roles, authorization, menu, access
Properties
Class CL_GRFN_UTIL_ROLE_ASSIGNMENT  
Short Description Utility methods for role assignment    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package GRFN_ACCESS   Roles, authorization, menu, access 
Created 20080702   SAP 
Last change 20141106    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 GRFN0 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
3 GRFNM Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
4 GRPC0 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
5 GRRM0 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
6 IF_GRFN_API_REGULATION Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_GRFN_UTIL_ROLE_ASSIGNMENT has no interface implemented.
Friends
# Friend Modeled only Created on Description
1 CL_GRFN_PLANNER_GAF_WD 20090601 Planner GAF ui class
2 CL_GRRM_WD_PLANNER 20090603 Assistance Class for GRFN_PLANNER_GAF
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GT_ORGUNITS Static Attribute Private Type reference (TYPE) GRFN_T_OBJECT_AUTH_INFO Object authorization information 20130604
2 MC_ACTIVITY_MODEL_CLASS Constant Private Type reference (TYPE) CLASSNAME 'CL_GRRM_MODEL_ACTIVITY' Activity model class 20080822
3 MC_ORGUNIT_MODEL_CLASS Constant Private Type reference (TYPE) CLASSNAME 'CL_GRFN_MODEL_CATALOGUE' Ogunit model class 20080728
4 MT_GRFN_USER_BUFFER Static Attribute Private Type reference (TYPE) YT_GRFN_USER_BUFFER 20100917
5 MT_SOURCE_BUFFER Static Attribute Private Type reference (TYPE) YT_GRFN_SOURCE_BUFFER 20140305
Methods
# Method Level Visibility Method type Description Created on
1 GET_AGENTS_FOR_DATE Static method Private Method Get agents for a certain date (for friends only) 20090527
2 GET_RESPONSIBLE_USER Static method Public Method get the "owner" of the object 20081126
3 HAS_ACCESS_TO Static method Public Method does have user access to entity/subentity - ? 20091014
4 HAS_RA_AUTH Static method Public Method Checks whether a user has at least some RA authorization 20080702
5 QUERY_ACT_CR_ORGUNITS Static method Public Method Get orgunits which user is allowed to create activities for 20080822
6 QUERY_CHILD_PLANNER_ORGUNITS Static method Private Method 20081119
7 QUERY_CONTROL_CR_SUBPROC Static method Public Method Get subprocesses for which user is allowed to create control 20080822
8 QUERY_ENTITY_CR_ORGUNITS Static method Public Method Get orgunits the user is authzd to create certain entity for 20081117
9 QUERY_ORGUNITS_FOR_CHANGE Static method Public Method Obsolete at GRC2010 20090227
10 QUERY_PLANNER_ORGUNITS Static method Public Method Get OUs which user is allowed to create/display planner for 20080703
11 QUERY_POLICY_ORGUNITS Static method Public Method Get OUs for which a user is allowed to create Policy 20100623
12 QUERY_RA_AUTH_ORGUNITS Static method Public Method Query for all orgunits for which a user is allowed to do RA 20080702
13 QUERY_RA_INFO Static method Public Method Get OUs which user is allowed to create/display planner for 20081119
14 QUERY_RISK_CR_OBJECTS Static method Public Method Get objects which user is allowed to create risks for 20080821
15 QUERY_ROLES_2DN_LEVEL Static method Private Method Query for existing roles using auth object GRFN_API 20131112
16 QUERY_SIGNOFF_ORGUNITS Static method Public Method Get OUs for which a user is allowed to do signoff 20080703
17 QUERY_SOURCE_OBJECTS Static method Public Method Query for source objects with certain role assignments 20080702
18 QUERY_USERS_ROLES Static method Public Method Query for source objects with certain role assignments 20080704
19 QUERY_WORKSHOP_AUTH_OBJECTS Static method Public Method Get OUs and ACs for which a user is allowed to create WS 20120516
20 SET_MASS_ROLE_ASSIGNMENT Static method Public Method Set mass role assignment 20080710
Events
Class CL_GRFN_UTIL_ROLE_ASSIGNMENT has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 YS_GRFN_SOURCE_BUFFER Private See coding 20140305 begin of ys_grfn_source_buffer, username type SYUNAME, s_dates type GRFN_S_TF_DATES, role_key type string, t_object type GRFN_T_API_OBJECT_ID, end of ys_grfn_source_buffer
2 YS_GRFN_USER_BUFFER Private See coding 20100917 begin of ys_grfn_user_buffer, username type grfn_api_object_id, power type abap_bool, display type abap_bool, grc type abap_bool, end of ys_grfn_user_buffer
3 YT_GRFN_SOURCE_BUFFER Private See coding 20140305 yt_grfn_source_buffer type sorted table of ys_grfn_source_buffer with unique key username s_dates role_key
4 YT_GRFN_USER_BUFFER Private See coding 20100917 yt_grfn_user_buffer type hashed table of ys_grfn_user_buffer with unique key username
Method Signatures

Method GET_AGENTS_FOR_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_EXCLUDE_USER Call by reference Type reference (TYPE) GRFN_T_USER_LIST Users to be excluded on object itself 20090527
2 Importing IV_AGENT_SLOT Call by reference Type reference (TYPE) GRFN_AGENTSLOT Agent Slot 20090527
3 Importing IV_ALL_GROUPS Call by reference Type reference (TYPE) INT4 1 0 = all of them 20090527
4 Importing IV_DATE Call by reference Type reference (TYPE) SY-DATUM 20090527
5 Importing IV_OBJECT_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20090527
6 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20090527
7 Returning RT_AGENT Value transfer Type reference (TYPE) GRFN_T_AGENT List of Agents 20090527
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20090527

Method GET_RESPONSIBLE_USER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Value transfer Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20081126
2 Importing IV_OBJECT Value transfer Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20081126
3 Importing IV_REGULATION_ID Value transfer Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20081208
4 Returning RV_USER Value transfer Type reference (TYPE) SY-UNAME User Name 20081126

Method GET_RESPONSIBLE_USER on class CL_GRFN_UTIL_ROLE_ASSIGNMENT has no exception.

Method HAS_ACCESS_TO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20091014
2 Importing IV_ENTITY Call by reference Type reference (TYPE) GRFN_API_ENTITY_ID Entity ID 20091014
3 Importing IV_REGULATION Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Regulation Configuration 20091014
4 Importing IV_SUBENTITY Call by reference Type reference (TYPE) GRFN_SUBENTITY Subentity 20091014
5 Returning RV_AUTHORIZED Value transfer Type reference (TYPE) AS4FLAG Flag (X or Blank) 20091014

Method HAS_ACCESS_TO on class CL_GRFN_UTIL_ROLE_ASSIGNMENT has no exception.

Method HAS_RA_AUTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20080702
2 Importing IV_FOR_FN Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Include RA auth for FN 20080702
3 Importing IV_FOR_PC Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Include RA auth for PC 20080702
4 Importing IV_FOR_RM Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Include RA auth for RM 20080702
5 Importing IV_USER Call by reference Type reference (TYPE) UNAME SY-UNAME User Name 20080702
6 Returning RV_HAS_RA_AUTH Value transfer Type reference (TYPE) ABAP_BOOL 20080702
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080709

Method QUERY_ACT_CR_ORGUNITS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ORGUNIT Call by reference Type reference (TYPE) GRFN_T_API_ORGUNIT_LIST table type of API object ID 20080822
2 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20080822
3 Importing IV_ACTIVITY Call by reference Type reference (TYPE) ACTIV_AUTH GRFN0_C_ACTIVITY-CREATE Activity 20110519
4 Importing IV_ENTITY Call by reference Type reference (TYPE) GRFN_API_ENTITY_ID GRRM0_C_ENTITY-ACTIVITY Entity ID 20110519
5 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID IF_GRFN_API_REGULATION=>GC_GEN_REG_RM Object ID 20090213
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080822

Method QUERY_CHILD_PLANNER_ORGUNITS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_ORGUNIT Call by reference Type reference (TYPE) GRFNM_T_ORGUNIT 20090225
2 Changing CT_PLANNER_ORGUNIT Call by reference Type reference (TYPE) GRFN_T_OBJECT_AUTH_INFO Object authorization information 20090225
3 Importing I_PARENT Call by reference Type reference (TYPE) GRFN_S_OBJECT_AUTH_INFO Object ID 20081119

Method QUERY_CHILD_PLANNER_ORGUNITS on class CL_GRFN_UTIL_ROLE_ASSIGNMENT has no exception.

Method QUERY_CONTROL_CR_SUBPROC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SUBPROCESS Call by reference Type reference (TYPE) GRPC_T_API_SUBPROCESS_LIST Table type for subprocess list 20080822
2 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20080822
3 Importing IV_USER Call by reference Type reference (TYPE) UNAME User Name 20080822
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080822

Method QUERY_ENTITY_CR_ORGUNITS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ORGUNIT Call by reference Type reference (TYPE) GRFN_T_API_ORGUNIT_LIST Table type for orgunit list 20081117
2 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20081117
3 Importing IV_ENTITY Call by reference Type reference (TYPE) GRFN_API_ENTITY_ID Entity ID 20081117
4 Importing IV_PATTERN Call by reference Type reference (TYPE) GRFN_API_SEARCH_PATTERN API search pattern 20081120
5 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20081209
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081117

Method QUERY_ORGUNITS_FOR_CHANGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20090227
2 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20090227
3 Returning RT_ORGUNIT Value transfer Type reference (TYPE) GRFN_T_API_ORGUNIT_LIST table type of API object ID 20090227
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20090227

Method QUERY_PLANNER_ORGUNITS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ORGUNIT Call by reference Type reference (TYPE) GRFN_T_OBJECT_AUTH_INFO Object authorization information 20081201
2 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20080703
3 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20090226

Method QUERY_PLANNER_ORGUNITS on class CL_GRFN_UTIL_ROLE_ASSIGNMENT has no exception.

Method QUERY_POLICY_ORGUNITS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ORGUNIT Call by reference Type reference (TYPE) GRFN_T_API_ORGUNIT_LIST Orgunit List 20100623
2 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20100623
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20100623

Method QUERY_RA_AUTH_ORGUNITS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20080702
2 Importing IV_FOR_FN Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Include RA auth for FN 20080702
3 Importing IV_FOR_PC Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Include RA auth for PC 20080702
4 Importing IV_FOR_RM Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Include RA auth for RM 20080702
5 Importing IV_PATTERN Call by reference Type reference (TYPE) GRFN_API_SEARCH_PATTERN API search pattern 20090327
6 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20081001
7 Returning RT_ORGUNIT Value transfer Type reference (TYPE) GRFN_T_API_ORGUNIT_LIST table type of API object ID 20080702
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080709

Method QUERY_RA_INFO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20081119
2 Importing IV_OBJECT Value transfer Type reference (TYPE) GRFN_API_OBJECT_ID 20081119
3 Importing IV_OPERATION Value transfer Type reference (TYPE) GRFN_API_OPERATION_ID The ID of the operation 20081119
4 Importing IV_REGULATION_ID Value transfer Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20081208
5 Returning RT_INFO Value transfer Type reference (TYPE) GRFN_T_ROLE_ASSIGNMENT_INFO 20081119
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081119

Method QUERY_RISK_CR_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ACTIVITY Call by reference Type reference (TYPE) GRRM_T_API_ACTIVITY_LIST Activity List 20080821
2 Exporting ET_ORGUNIT Call by reference Type reference (TYPE) GRFN_T_API_ORGUNIT_LIST table type of API object ID 20080821
3 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20080821
4 Importing IV_ENTITY_ID Call by reference Type reference (TYPE) GRFN_API_ENTITY_ID GRRM0_C_ENTITY-RISK Entity ID 20121116
5 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID '$$$$$GEN_REG_RM' Object ID 20090105
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080821

Method QUERY_ROLES_2DN_LEVEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ACTIVITY Call by reference Type reference (TYPE) ACTIV_AUTH Activity 20131112
2 Importing IV_DATAPART Call by reference Type reference (TYPE) GRFN_DATAPART Data Part for GRC Object Types 20131112
3 Importing IV_ENTITY Call by reference Type reference (TYPE) GRFN_API_ENTITY_ID Entity ID 20131112
4 Importing IV_SUBENTITY Call by reference Type reference (TYPE) GRFN_SUBENTITY Subentity 20131112
5 Returning RT_ROLES Value transfer Type reference (TYPE) GRFN_T_ROLE List of roles 20131112

Method QUERY_ROLES_2DN_LEVEL on class CL_GRFN_UTIL_ROLE_ASSIGNMENT has no exception.

Method QUERY_SIGNOFF_ORGUNITS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20080703
2 Importing IV_REGULATION Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20081203
3 Returning RT_ORGUNIT Value transfer Type reference (TYPE) GRFN_T_API_ORGUNIT_LIST table type of API object ID 20080703
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080709

Method QUERY_SOURCE_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_DATES Call by reference Type reference (TYPE) GRFN_S_TF_DATES 20081112
2 Importing IT_ROLE Call by reference Type reference (TYPE) AGR_TT_NAME Table of role assignments 20080704
3 Importing IV_USERNAME Value transfer Type reference (TYPE) SYUNAME User Name 20080704
4 Returning RT_OBJECT Value transfer Type reference (TYPE) GRFN_T_API_OBJECT_ID table type of API object ID 20080702
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080702

Method QUERY_USERS_ROLES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_DATES Call by reference Type reference (TYPE) GRFN_S_TF_DATES Session Management for GRC APIs 20081112
2 Importing IT_ROLE Call by reference Type reference (TYPE) AGR_TT_NAME Table of role assignments 20080708
3 Importing IV_OBJECT Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20130604
4 Importing IV_USERNAME Value transfer Type reference (TYPE) SYUNAME User Name 20080704
5 Returning RT_USER_ROLE Value transfer Type reference (TYPE) GRFN_T_ROLE_LIST table type of API object ID 20080704
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080704

Method QUERY_WORKSHOP_AUTH_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ACTIVITY Call by reference Type reference (TYPE) GRRM_T_API_ACTIVITY_LIST Activity List 20120516
2 Exporting ET_ORGUNIT Call by reference Type reference (TYPE) GRFN_T_API_ORGUNIT_LIST Orgunit List 20120516
3 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20120516
4 Importing IV_PATTERN Call by reference Type reference (TYPE) GRFN_API_SEARCH_PATTERN API search pattern 20120516
5 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20120516
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20120516

Method SET_MASS_ROLE_ASSIGNMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION 20080710
2 Importing IT_ROLE_ASSIGNMENT Call by reference Type reference (TYPE) GRFN_T_ROLE_LIST 20080710
3 Importing IV_REGULATION_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20081208
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080710
History
Last changed by/on SAP  20141106 
SAP Release Created in 300