Class AppPortalRoleManagementListener

  • All Implemented Interfaces:
    org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener

    public class AppPortalRoleManagementListener
    extends org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
    App portal role management listener.
    • Constructor Summary

      Constructors 
      Constructor Description
      AppPortalRoleManagementListener​(boolean isEnable)
      Constructor for app portal role management listener with enable flag.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDefaultOrderId()  
      int getExecutionOrderId()  
      boolean isEnable()  
      void preDeleteRole​(String roleId, String tenantDomain)  
      void preUpdatePermissionsForRole​(String roleId, List<org.wso2.carbon.identity.role.v2.mgt.core.model.Permission> addedPermissions, List<org.wso2.carbon.identity.role.v2.mgt.core.model.Permission> deletedPermissions, String audience, String audienceId, String tenantDomain)  
      void preUpdateRoleName​(String roleId, String newRoleName, String tenantDomain)  
      void preUpdateUserListOfRole​(String roleId, List<String> newUserIDList, List<String> deletedUserIDList, String tenantDomain)  
      • Methods inherited from class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener

        postAddRole, postDeleteRole, postDeleteRolesByApplication, postGetAssociatedApplicationIdsByRoleId, postGetGroupListOfRole, postGetIdpGroupListOfRole, postGetPermissionListOfRole, postGetRole, postGetRoleBasicInfo, postGetRoleIdListOfGroups, postGetRoleIdListOfIdpGroups, postGetRoleIdListOfUser, postGetRoleListOfGroups, postGetRoleListOfIdpGroups, postGetRoleListOfUser, postGetRoles, postGetRoles, postGetRoles, postGetRoles, postGetRolesCount, postGetUserListOfRole, postUpdateGroupListOfRole, postUpdateIdpGroupListOfRole, postUpdatePermissionsForRole, postUpdateRoleName, postUpdateUserListOfRole, preAddRole, preDeleteRolesByApplication, preGetAssociatedApplicationIdsByRoleId, preGetGroupListOfRole, preGetIdpGroupListOfRole, preGetPermissionListOfRole, preGetRole, preGetRoleBasicInfo, preGetRoleIdListOfGroups, preGetRoleIdListOfIdpGroups, preGetRoleIdListOfUser, preGetRoleListOfGroups, preGetRoleListOfIdpGroups, preGetRoleListOfUser, preGetRoles, preGetRoles, preGetRoles, preGetRoles, preGetRolesCount, preGetUserListOfRole, preUpdateGroupListOfRole, preUpdateIdpGroupListOfRole
      • Methods inherited from interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener

        postGetPermissionListOfRoles, postGetRolesCount, preGetPermissionListOfRoles, preGetRolesCount
    • Constructor Detail

      • AppPortalRoleManagementListener

        public AppPortalRoleManagementListener​(boolean isEnable)
        Constructor for app portal role management listener with enable flag.
        Parameters:
        isEnable - Enable flag.
    • Method Detail

      • getExecutionOrderId

        public int getExecutionOrderId()
        Specified by:
        getExecutionOrderId in interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener
        Overrides:
        getExecutionOrderId in class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
      • getDefaultOrderId

        public int getDefaultOrderId()
      • isEnable

        public boolean isEnable()
      • preUpdateRoleName

        public void preUpdateRoleName​(String roleId,
                                      String newRoleName,
                                      String tenantDomain)
                               throws org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
        Specified by:
        preUpdateRoleName in interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener
        Overrides:
        preUpdateRoleName in class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
        Throws:
        org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
      • preDeleteRole

        public void preDeleteRole​(String roleId,
                                  String tenantDomain)
                           throws org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
        Specified by:
        preDeleteRole in interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener
        Overrides:
        preDeleteRole in class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
        Throws:
        org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
      • preUpdateUserListOfRole

        public void preUpdateUserListOfRole​(String roleId,
                                            List<String> newUserIDList,
                                            List<String> deletedUserIDList,
                                            String tenantDomain)
                                     throws org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
        Specified by:
        preUpdateUserListOfRole in interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener
        Overrides:
        preUpdateUserListOfRole in class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
        Throws:
        org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
      • preUpdatePermissionsForRole

        public void preUpdatePermissionsForRole​(String roleId,
                                                List<org.wso2.carbon.identity.role.v2.mgt.core.model.Permission> addedPermissions,
                                                List<org.wso2.carbon.identity.role.v2.mgt.core.model.Permission> deletedPermissions,
                                                String audience,
                                                String audienceId,
                                                String tenantDomain)
                                         throws org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
        Specified by:
        preUpdatePermissionsForRole in interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener
        Overrides:
        preUpdatePermissionsForRole in class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
        Throws:
        org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException