Uses of Class
org.wso2.carbon.user.api.UserStoreException
-
Uses of UserStoreException in org.wso2.carbon.user.api
Subclasses of UserStoreException in org.wso2.carbon.user.apiModifier and TypeClassDescriptionclassThe exception to throw when there is a client problem with the realm.Methods in org.wso2.carbon.user.api that throw UserStoreExceptionModifier and TypeMethodDescriptionvoidTenantManager.activateTenant(int tenantId) Activates a tenantvoidClaimManager.addNewClaimMapping(ClaimMapping mapping) Adds a new claim mappingvoidProfileConfigurationManager.addProfileConfig(ProfileConfiguration profileConfig) Adds a profile configurationvoidUserStoreManager.addRememberMe(String userName, String token) Adding a remember me tokenvoidUserStoreManager.addRole(String roleName, String[] userList, Permission[] permissions) Adds a role to the system.voidUserStoreManager.addRole(String roleName, String[] userList, Permission[] permissions, boolean isSharedRole) Adds a role to the system.intAdds a tenant to the systemvoidUserStoreManager.addUser(String userName, Object credential, String[] roleList, Map<String, String> claims, String profileName) Add a user to the user storevoidUserStoreManager.addUser(String userName, Object credential, String[] roleList, Map<String, String> claims, String profileName, boolean requirePasswordChange) Add a user to the user storebooleanUserStoreManager.authenticate(String userName, Object credential) Given the user name and a credential object, the implementation code must validate whether the user is authenticated.voidAuthorizationManager.authorizeRole(String roleName, String resourceId, String action) Grants authorizes to a role to perform an action on a resource.voidAuthorizationManager.authorizeUser(String userName, String resourceId, String action) Deprecated.voidAuthorizationManager.clearResourceAuthorizations(String resourceId) Deletes all granted authorization on a resource.voidAuthorizationManager.clearRoleActionOnAllResources(String roleName, String action) Deletes the role's right to perform the action on all resources.voidAuthorizationManager.clearRoleAuthorization(String roleName) Used when deleting roles.voidAuthorizationManager.clearRoleAuthorization(String roleName, String resourceId, String action) Deletes an already granted authorization of a role.voidAuthorizationManager.clearUserAuthorization(String userName) Deprecated.voidAuthorizationManager.clearUserAuthorization(String userName, String resourceId, String action) Deprecated.voidTenantManager.deactivateTenant(int tenantId) De-activates a tenantvoidClaimManager.deleteClaimMapping(ClaimMapping mapping) Deletes a claim mappingvoidProfileConfigurationManager.deleteProfileConfig(ProfileConfiguration profileConfig) Deletes a profile configurationvoidUserStoreManager.deleteRole(String roleName) Delete the role with the given role namevoidTenantManager.deleteTenant(int tenantId) Deletes a tenant from the systemvoidTenantManager.deleteTenant(int tenantId, boolean removeFromPersistentStorage) Deletes a tenant from the system which use to delete the cache in each worker nodes using clustered message and delete the persistence storage in management nodevoidUserStoreManager.deleteUser(String userName) Delete the user with the given user namevoidUserStoreManager.deleteUserClaimValue(String userName, String claimURI, String profileName) Delete a single user claim valuevoidUserStoreManager.deleteUserClaimValues(String userName, String[] claims, String profileName) Delete many user claim values.voidDeny authorizations to a role to perform an action on a resource.voidDeprecated.ClaimManager.getAllClaimMappings()Gets all claim objectsClaimManager.getAllClaimMappings(String dialectUri) Gets all claims in the dialectString[]ClaimManager.getAllClaimUris()Gets all claim URIsString[]AuthorizationManager.getAllowedRolesForResource(String resourceId, String action) Retrieves a list of roles allowed to perform the given action on the resourcedefault String[]AuthorizationManager.getAllowedUIResourcesForRole(String roleName, String permissionRootPath) Returns the complete set of resources allowed for Role.String[]AuthorizationManager.getAllowedUIResourcesForUser(String userName, String permissionRootPath) Returns the complete set of UI resources allowed for User.String[]UserStoreManager.getAllProfileNames()Get all the profile names in the systemProfileConfigurationManager.getAllProfiles()Retrieves all profilesClaimManager.getAllRequiredClaimMappings()Gets all mandatory claimsClaimManager.getAllSupportClaimMappingsByDefault()Gets all supported claims by default in the system.Tenant[]TenantManager.getAllTenants()Gets all tenants in the system.Tenant[]TenantManager.getAllTenantsForTenantDomainStr(String domain) Gets tenants in the system which matches the given domain String(which can be used for partial searches).ClaimManager.getAttributeName(String claimURI) Retrieves the attribute name of the claim URI.ClaimManager.getAttributeName(String domainName, String claimURI) UserRealm.getAuthorizationManager()Get the AuthorizationReader of the systemUserRealmService.getBootstrapRealm()Get the bootstrap realmThe Claim object of the claim URIUserRealm.getClaimManager()Get the ClaimManager of the systemUserStoreManager.getClaimManager()Provides the handler to ClaimManager implementation.ClaimManager.getClaimMapping(String claimURI) Gets the claim mapping.String[]AuthorizationManager.getDeniedRolesForResource(String resourceId, String action) Retrieves a list of roles that are not allowed to perform the given action on the resourceTenantManager.getDomain(int tenantId) Retrieves the domain given a tenant IdString[]AuthorizationManager.getExplicitlyAllowedUsersForResource(String resourceId, String action) Deprecated.String[]AuthorizationManager.getExplicitlyDeniedUsersForResource(String resourceId, String action) Deprecated.String[]UserStoreManager.getHybridRoles()Gets a list of hybrid roles Hybrid role contains a set of user names in a read only user store.UserStoreManager.getPasswordExpirationTime(String username) Gets the password expiration time of a given userProfileConfigurationManager.getProfileConfig(String profileName) Gets the profile configuration given the profile name.UserRealm.getProfileConfigurationManager()Get the ProfileConfigurationManager of the systemString[]UserStoreManager.getProfileNames(String userName) Get all profile namesUserStoreManager.getProperties(Tenant tenant) Gets the properties of the Tenant.UserRealm.getRealmConfiguration()Get the realm configurationString[]UserStoreManager.getRoleListOfUser(String userName) Get roles of a user.String[]UserStoreManager.getRoleNames()Get all role namesTenantManager.getSuperTenantDomain()Checks whether the super tenant.TenantManager.getTenant(int tenantId) Gets a Tenant objectdefault TenantTenantManager.getTenantByDomain(String tenantDomain) Gets a Tenant object by tenant domain.intAuthorizationManager.getTenantId()This will get the tenant id associated with the user authorization managerintTenantManager.getTenantId(String domain) Retrieves the tenant Id given the domainintUserStoreManager.getTenantId()This will get the tenant id associated with the user store managerintUserStoreManager.getTenantId(String username) This method works only if the tenant is super tenant.UserRealmService.getTenantUserRealm(int tenantId) Only returns if available in cache.UserStoreManager.getUserClaimValue(String userName, String claim, String profileName) Get user claim value in the profile.Claim[]UserStoreManager.getUserClaimValues(String userName, String profileName) Get all claim values of the user in the profile.UserStoreManager.getUserClaimValues(String userName, String[] claims, String profileName) Get user claim values in the profile.intDeprecated.String[]UserStoreManager.getUserListOfRole(String roleName) UserRealm.getUserStoreManager()Get the UserStoreManager of the systembooleanUserStoreManager.isExistingRole(String roleName) Checks whether the role name is in the user storebooleanUserStoreManager.isExistingRole(String roleName, boolean isShared) Checks whether the role name is in the user storebooleanUserStoreManager.isExistingUser(String userName) Checks whether the user is in the user storebooleanUserStoreManager.isReadOnly()Checks whether this realm connects to a read only user storebooleanAuthorizationManager.isRoleAuthorized(String roleName, String resourceId, String action) Checks for role authorization.booleanUserStoreManager.isSCIMEnabled()To signal whether underlying user store supports SCIM attributes.booleanTenantManager.isTenantActive(int tenantId) Checks whether a tenant is activebooleanAuthorizationManager.isUserAuthorized(String userName, String resourceId, String action) Checks for user authorization.booleanUserStoreManager.isValidRememberMeToken(String userName, String token) Checking the validity of the remember me tokenString[]Retrieves a list of user names upto a maximum limitvoidAuthorizationManager.refreshAllowedRolesForResource(String resourceId) This method used to refresh the existing resource permissions which cached in the memoryvoidAuthorizationManager.resetPermissionOnUpdateRole(String roleName, String newRoleName) This will reset the permission of the renamed rolevoidUserRealmService.setTenantManager(TenantManager tenantManager) voidUserStoreManager.setUserClaimValue(String userName, String claimURI, String claimValue, String profileName) Set a single user claim valuevoidSet many user claim valuesvoidClaimManager.updateClaimMapping(ClaimMapping mapping) Updates a claim mappingvoidUserStoreManager.updateCredential(String userName, Object newCredential, Object oldCredential) Update the credential/password of the uservoidUserStoreManager.updateCredentialByAdmin(String userName, Object newCredential) Update credential/password by the admin of another uservoidProfileConfigurationManager.updateProfileConfig(ProfileConfiguration profileConfig) Updates a profile configurationvoidUserStoreManager.updateRoleListOfUser(String userName, String[] deletedRoles, String[] newRoles) Updates roles of a uservoidUserStoreManager.updateRoleName(String roleName, String newRoleName) Update the role name of given rolevoidTenantManager.updateTenant(Tenant tenant) Updates a tenant in the systemvoidUserStoreManager.updateUserListOfRole(String roleName, String[] deletedUsers, String[] newUsers) Updates users in a Role