@MessageBundle(projectCode="PLIDM")
public interface IDMMessages
MessageBundle interface for all exceptions thrown by the IDM.
Methods names follow the rule: [Context]+[Short Message Description]. For example, the name
storeConfigLockedFeatureSet. In this case the [Context] is storeConfig, meaning that this message is used by the
identity store configuration. The LockedFeatureSet is a short description for the message itself.
General messages may not have a [Context].
| Modifier and Type | Field and Description |
|---|---|
static IDMMessages |
MESSAGES |
static final IDMMessages MESSAGES
@Message(id=1,
value="Error creating instance for type [%s].")
IdentityManagementException instantiationError(Class<?> type,
@Cause
Throwable t)
@Message(id=2,
value="Null argument: [%s].")
IdentityManagementException nullArgument(String description)
@Message(id=3,
value="Error unmarshalling object.")
IdentityManagementException unmarshallingError(@Cause
Throwable t)
@Message(id=4,
value="Error marshalling object.")
IdentityManagementException marshallingError(@Cause
Throwable t)
@Message(id=200,
value="Credentials class [%s] not supported by this handler [%s].")
IdentityManagementException credentialUnsupportedType(Class<?> type,
CredentialHandler handler)
@Message(id=201,
value="Invalid Realm or it was not provided.")
IdentityManagementException credentialDigestInvalidRealm()
@Message(id=202,
value="Invalid Password or it was not provided.")
IdentityManagementException credentialInvalidPassword()
@Message(id=203,
value="Could not encode password.")
IdentityManagementException credentialCouldNotEncodePassword(@Cause
UnsupportedEncodingException e)
@Message(id=204,
value="No suitable CredentialHandler available for validating Credentials of type [%s].")
IdentityManagementException credentialHandlerNotFoundForCredentialType(Class<?> class1)
@Message(id=205,
value="No such algorithm [%s] for encoding passwords. Using PasswordEncoder [%s].")
IdentityManagementException credentialInvalidEncodingAlgorithm(String algorithm,
PasswordEncoder encoder,
@Cause
Throwable t)
@Message(id=206,
value="No IdentityStore found for credential class [%s]")
IdentityManagementException credentialNoStoreForCredentials(Class<?> credentialClass)
@Message(id=300,
value="Could not create context.")
IdentityManagementException storeLdapCouldNotCreateContext(@Cause
Throwable e)
@Message(id=301,
value="Error while trying to determine EntityManager - context parameter not set.")
IdentityManagementException storeJpaCouldNotGetEntityManagerFromStoreContext()
@Message(id=302,
value="Unexpected IdentityStore type. Expected [%s]. Actual [%s].")
IdentityManagementException storeUnexpectedType(Class<? extends IdentityStore> expectedType,
Class<? extends IdentityStore> actualType)
@Message(id=303,
value="No store found with type [%s].")
IdentityManagementException storeNotFound(Class<? extends IdentityStore> partitionStoreClass)
@Message(id=400,
value="Could not create contextual IdentityManager for Partition [%s]. Partition not found or it was null.")
IdentityManagementException partitionCouldNotCreateIdentityManager(Partition partition)
@Message(id=401,
value="A Partition [%s] with name [%s] already exists.")
IdentityManagementException partitionAlreadyExistsWithName(Class<? extends Partition> type,
String name)
@Message(id=402,
value="Partition [%s] not found with the given name [%s].")
IdentityManagementException partitionNotFoundWithName(Class<? extends Partition> type,
String name)
@Message(id=403,
value="No configuration found with the given name [%s].")
IdentityManagementException partitionNoConfigurationFound(String name)
@Message(id=404,
value="Partition [%s] references an invalid or non-existent configuration.")
IdentityManagementException partitionReferencesInvalidConfiguration(Partition partition)
@Message(id=405,
value="Could not load partition for type [%s] and identifier [%s].")
IdentityManagementException partitionGetFailed(Class<? extends Partition> partitionClass,
String name,
@Cause
Exception e)
@Message(id=406,
value="Could not create partition [%s] using configuration [%s].")
IdentityManagementException partitionAddFailed(Partition partition,
String configurationName,
@Cause
Exception e)
@Message(id=407,
value="Could not update partition [%s].")
IdentityManagementException partitionUpdateFailed(Partition partition,
@Cause
Exception e)
@Message(id=408,
value="Could not remove partition [%s].")
IdentityManagementException partitionRemoveFailed(Partition partition,
@Cause
Exception e)
@Message(id=409,
value="Partition management is not supported by the current configuration.")
OperationNotSupportedException partitionManagementNoSupported(@Param
Class<Partition> partitionClass,
@Param
IdentityStoreConfiguration.IdentityOperation create)
@Message(id=410,
value="Could not create contextual PermissionManager for Partition [%s]. Partition not found or it was null.")
IdentityManagementException partitionCouldNotCreatePermissionManager(Partition partition)
@Message(id=500,
value="Could not query Relationship using query [%s].")
IdentityManagementException queryRelationshipFailed(RelationshipQuery<?> query,
@Cause
Throwable t)
@Message(id=501,
value="Could not query IdentityType using query [%s].")
IdentityManagementException queryIdentityTypeFailed(IdentityQuery<?> query,
@Cause
Throwable t)
@Message(id=502,
value="Unsupported value for Query Parameter [%s]. Value: %s.")
IdentityManagementException queryUnsupportedParameterValue(String parameterName,
Object parameterValue)
@Message(id=600,
value="IdentityType [%s] already exists with the given identifier [%s] for the given Partition [%s].")
IdentityManagementException identityTypeAlreadyExists(Class<? extends IdentityType> type,
String identifier,
Partition partition)
@Message(id=601,
value="Ambiguous AttributedType found with identifier [%s].")
IdentityManagementException attributedTypeAmbiguosFoundWithId(String id)
@Message(id=602,
value="Could not add AttributedType [%s].")
IdentityManagementException attributedTypeAddFailed(AttributedType identityType,
@Cause
Throwable t)
@Message(id=603,
value="Could not remove AttributedType [%s].")
IdentityManagementException attributedTypeRemoveFailed(AttributedType identityType,
@Cause
Throwable t)
@Message(id=604,
value="Could not update AttributedType [%s].")
IdentityManagementException attributedTypeUpdateFailed(AttributedType identityType,
@Cause
Throwable t)
@Message(id=605,
value="Could not find AttributedType [%s] with the given identifier [%s] for Partition [%s]")
IdentityManagementException attributedTypeNotFoundWithId(Class<? extends AttributedType> type,
String id,
Partition partition)
@Message(id=606,
value="No identity store configuration found for requested type operation [%s.%s].")
OperationNotSupportedException attributedTypeUnsupportedOperation(@Param
Class<? extends AttributedType> type,
@Param
IdentityStoreConfiguration.IdentityOperation operation,
Class<? extends AttributedType> typeToDisplay,
IdentityStoreConfiguration.IdentityOperation operationToDisplay)
@Message(id=701,
value="Error initializing JpaIdentityStore - no entity classes configured.")
SecurityConfigurationException configJpaStoreNoEntityClassesProvided()
@Message(id=702,
value="Entity [%s] must have a field annotated with %s.")
SecurityConfigurationException configJpaStoreRequiredMappingAnnotation(Class<?> entityType,
Class<? extends Annotation> annotation)
@Message(id=703,
value="Mapped attribute [%s.%s] does not map to any field for type [%s].")
SecurityConfigurationException configJpaStoreMappedPropertyNotFound(Class<?> entityType,
String propertyName,
Class<?> type)
@Message(id=704,
value="At least one IdentityConfiguration must be provided")
SecurityConfigurationException configNoIdentityConfigurationProvided()
@Message(id=705,
value="Unknown IdentityStore class for configuration [%s].")
SecurityConfigurationException configUnknownStoreForConfiguration(IdentityStoreConfiguration storeConfiguration)
@Message(id=706,
value="Error while creating IdentityStore [%s] instance for configuration [%s].")
SecurityConfigurationException configCouldNotCreateStore(Class<? extends IdentityStore> storeClass,
IdentityStoreConfiguration storeConfiguration,
@Cause
Exception e)
@Message(id=707,
value="You have provided more than one configuration. Use the buildAll method instead.")
SecurityConfigurationException configBuildMultipleConfigurationExists()
@Message(id=708,
value="Only a single identity store config can support partitions. Found [%s] and [%s].")
SecurityConfigurationException configStoreMultiplePartitionConfigExists(IdentityStoreConfiguration config1,
IdentityStoreConfiguration config2)
@Message(id=709,
value="Duplicated supported types found for identity store configuration [%s].")
SecurityConfigurationException configStoreDuplicatedSupportedType(IdentityStoreConfiguration storeConfiguration)
@Message(id=710,
value="You must configure at least one identity store configuration.")
SecurityConfigurationException configStoreNoIdentityStoreConfigProvided()
@Message(id=711,
value="You must provide at least one configuration.")
SecurityConfigurationException configNoConfigurationProvided()
@Message(id=712,
value="Multiple configuration with the same name [%s].")
SecurityConfigurationException configMultipleConfigurationsFoundWithSameName(String name)
@Message(id=713,
value="Could not create configuration.")
SecurityConfigurationException configCouldNotCreateConfiguration(@Cause
Exception sce)
@Message(id=714,
value="Invalid configuration [%s].")
SecurityConfigurationException configInvalidConfiguration(String name)
@Message(id=715,
value="Multiple configuration with credential support.")
SecurityConfigurationException configMultipleConfigurationsFoundWithCredentialSupport()
@Message(id=800,
value="Could not grant Permission [%s].")
IdentityManagementException permissionGrantFailed(Permission permission,
@Cause
Throwable t)
Copyright © 2013. All Rights Reserved.