Class ConsoleRoleListener

java.lang.Object
org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
org.wso2.identity.apps.common.listner.ConsoleRoleListener
All Implemented Interfaces:
org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener

public class ConsoleRoleListener extends org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
Console role listener to populate organization console application roles permissions.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    void
    postGetPermissionListOfRole(List<org.wso2.carbon.identity.role.v2.mgt.core.model.Permission> permissionListOfRole, String roleId, String tenantDomain)
     
    void
    postGetPermissionListOfRoles(List<String> permissions, List<String> roleIds, String tenantDomain)
     
    void
    postGetRole(org.wso2.carbon.identity.role.v2.mgt.core.model.Role role, String roleId, String tenantDomain)
     
    void
    preAddRole(String roleName, List<String> userList, List<String> groupList, List<org.wso2.carbon.identity.role.v2.mgt.core.model.Permission> permissions, String audience, String audienceId, 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)
     

    Methods inherited from class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener

    getExecutionOrderId, postAddRole, postDeleteRole, postDeleteRolesByApplication, postGetAssociatedApplicationIdsByRoleId, postGetGroupListOfRole, postGetIdpGroupListOfRole, postGetRoleBasicInfo, postGetRoleIdListOfGroups, postGetRoleIdListOfIdpGroups, postGetRoleIdListOfUser, postGetRoleListOfGroups, postGetRoleListOfIdpGroups, postGetRoleListOfUser, postGetRoles, postGetRoles, postGetRoles, postGetRoles, postGetRolesCount, postGetUserListOfRole, postUpdateGroupListOfRole, postUpdateIdpGroupListOfRole, postUpdatePermissionsForRole, postUpdateRoleName, postUpdateUserListOfRole, preDeleteRole, preDeleteRolesByApplication, preGetAssociatedApplicationIdsByRoleId, preGetGroupListOfRole, preGetIdpGroupListOfRole, preGetPermissionListOfRole, preGetRole, preGetRoleBasicInfo, preGetRoleIdListOfGroups, preGetRoleIdListOfIdpGroups, preGetRoleIdListOfUser, preGetRoleListOfGroups, preGetRoleListOfIdpGroups, preGetRoleListOfUser, preGetRoles, preGetRoles, preGetRoles, preGetRoles, preGetRolesCount, preGetUserListOfRole, preUpdateGroupListOfRole, preUpdateIdpGroupListOfRole, preUpdateRoleName, preUpdateUserListOfRole

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener

    postGetRolesCount, preGetPermissionListOfRoles, preGetRolesCount
  • Constructor Details

    • ConsoleRoleListener

      public ConsoleRoleListener()
  • Method Details

    • getDefaultOrderId

      public int getDefaultOrderId()
    • isEnable

      public boolean isEnable()
    • preAddRole

      public void preAddRole(String roleName, List<String> userList, List<String> groupList, List<org.wso2.carbon.identity.role.v2.mgt.core.model.Permission> permissions, String audience, String audienceId, String tenantDomain) throws org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
      Specified by:
      preAddRole in interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener
      Overrides:
      preAddRole in class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
      Throws:
      org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
    • postGetRole

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

      public void postGetPermissionListOfRole(List<org.wso2.carbon.identity.role.v2.mgt.core.model.Permission> permissionListOfRole, String roleId, String tenantDomain) throws org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
      Specified by:
      postGetPermissionListOfRole in interface org.wso2.carbon.identity.role.v2.mgt.core.listener.RoleManagementListener
      Overrides:
      postGetPermissionListOfRole in class org.wso2.carbon.identity.role.v2.mgt.core.listener.AbstractRoleManagementListener
      Throws:
      org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
    • postGetPermissionListOfRoles

      public void postGetPermissionListOfRoles(List<String> permissions, List<String> roleIds, String tenantDomain) throws org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException
      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