Package org.wso2.carbon.user.api
Class Claim
java.lang.Object
org.wso2.carbon.user.api.Claim
- All Implemented Interfaces:
Serializable
Represents a claim that is associated with an entity usually a user. Claims
describe the capabilities associated with some entity in the system. A claim
is the expression of a right with respect to a particular value. Hence a
claim has a uri, display name, value and many other properties. This class
models the properties of a claim.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the set of user stores that exclude this claim.getRegEx()getValue()booleanbooleanIndicates whether the claim is extended value which requires special handling in the user store.Indicates whether the claim is managed in the user store.booleanbooleanbooleanbooleanvoidsetCheckedAttribute(boolean checkedAttribute) voidsetClaimUri(String claimUri) voidsetDescription(String description) voidsetDialectURI(String dialectURI) voidsetDisplayOrder(int displayOrder) voidsetDisplayTag(String displayTag) voidsetExcludedUserStores(Set<String> excludedUserStores) Set the user stores that exclude this claim.voidsetExtendedValued(boolean extendedValued) Sets the claim to be extended value which requires special handling in the user store.voidsetManagedInUserStore(Boolean managedInUserStore) Sets the claim to be managed in the user store.voidsetMultiValued(boolean multiValued) voidsetReadOnly(boolean readOnly) voidvoidsetRequired(boolean required) voidsetSupportedByDefault(boolean supportedByDefault) void
-
Constructor Details
-
Claim
public Claim()
-
-
Method Details
-
getClaimUri
-
setClaimUri
-
getDisplayTag
-
setDisplayTag
-
getDescription
-
setDescription
-
isSupportedByDefault
public boolean isSupportedByDefault() -
setSupportedByDefault
public void setSupportedByDefault(boolean supportedByDefault) -
isRequired
public boolean isRequired() -
setRequired
public void setRequired(boolean required) -
getRegEx
-
setRegEx
-
getDialectURI
-
setDialectURI
-
getValue
-
setValue
-
getDisplayOrder
public int getDisplayOrder() -
setDisplayOrder
public void setDisplayOrder(int displayOrder) -
isReadOnly
public boolean isReadOnly() -
setReadOnly
public void setReadOnly(boolean readOnly) -
isCheckedAttribute
public boolean isCheckedAttribute() -
setCheckedAttribute
public void setCheckedAttribute(boolean checkedAttribute) -
isMultiValued
public boolean isMultiValued() -
setMultiValued
public void setMultiValued(boolean multiValued) -
isManagedInUserStore
Indicates whether the claim is managed in the user store.- Returns:
- true if enabled, false otherwise.
-
setManagedInUserStore
Sets the claim to be managed in the user store.- Parameters:
managedInUserStore- true to enable, false to disable.
-
getExcludedUserStores
Get the set of user stores that exclude this claim.- Returns:
- Set of excluded user stores.
-
setExcludedUserStores
Set the user stores that exclude this claim.- Parameters:
excludedUserStores- Set of excluded user stores.
-
isExtendedValued
public boolean isExtendedValued()Indicates whether the claim is extended value which requires special handling in the user store.- Returns:
- true if enabled, false otherwise.
-
setExtendedValued
public void setExtendedValued(boolean extendedValued) Sets the claim to be extended value which requires special handling in the user store.- Parameters:
extendedValued- true to enable, false to disable.
-