Package org.wso2.carbon.user.api
Interface ClaimManager
public interface ClaimManager
This is the interface to manage claims in the system.
A claim is a name-value pair
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewClaimMapping(ClaimMapping mapping) Adds a new claim mappingvoiddeleteClaimMapping(ClaimMapping mapping) Deletes a claim mappingGets all claim objectsgetAllClaimMappings(String dialectUri) Gets all claims in the dialectString[]Gets all claim URIsGets all mandatory claimsGets all supported claims by default in the system.getAttributeName(String claimURI) Retrieves the attribute name of the claim URI.getAttributeName(String domainName, String claimURI) The Claim object of the claim URIgetClaimMapping(String claimURI) Gets the claim mapping.voidupdateClaimMapping(ClaimMapping mapping) Updates a claim mapping
-
Method Details
-
getAttributeName
Retrieves the attribute name of the claim URI.- Parameters:
claimURI- The claim URI- Returns:
- Throws:
UserStoreException
-
getClaim
The Claim object of the claim URI- Parameters:
claimURI- The claim URI- Returns:
- Throws:
UserStoreException
-
getClaimMapping
Gets the claim mapping.- Parameters:
claimURI- The claim URI- Returns:
- Throws:
UserStoreException
-
getAllSupportClaimMappingsByDefault
Gets all supported claims by default in the system.- Returns:
- An array of claim objects supported by default
- Throws:
UserStoreException
-
getAllClaimMappings
Gets all claim objects- Returns:
- An array of all claim objects
- Throws:
UserStoreException
-
getAllClaimMappings
Gets all claims in the dialect- Parameters:
dialectUri- The dialect URI- Returns:
- Throws:
UserStoreException
-
getAllRequiredClaimMappings
Gets all mandatory claims- Returns:
- Throws:
UserStoreException
-
getAllClaimUris
Gets all claim URIs- Returns:
- Throws:
UserStoreException
-
addNewClaimMapping
Adds a new claim mapping- Parameters:
mapping- The claim mapping to be added- Throws:
UserStoreException
-
deleteClaimMapping
Deletes a claim mapping- Parameters:
mapping- The claim mapping to be deleted- Throws:
UserStoreException
-
updateClaimMapping
Updates a claim mapping- Parameters:
mapping- The claim mapping to be updated- Throws:
UserStoreException
-
getAttributeName
- Parameters:
domainName-claimURI-- Returns:
- Throws:
UserStoreException
-