Package org.kuali.rice.krad.messages
Class Message
java.lang.Object
org.kuali.rice.krad.bo.DataObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
org.kuali.rice.krad.messages.Message
- All Implemented Interfaces:
Serializable,Cloneable,org.eclipse.persistence.descriptors.changetracking.ChangeTracker,org.eclipse.persistence.internal.descriptors.PersistenceEntity,org.eclipse.persistence.internal.descriptors.PersistenceObject,org.eclipse.persistence.internal.weaving.PersistenceWeaved,org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking,org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups,org.eclipse.persistence.internal.weaving.PersistenceWeavedRest,org.eclipse.persistence.queries.FetchGroupTracker,org.kuali.rice.core.api.mo.common.GloballyUnique,org.kuali.rice.core.api.mo.common.Versioned
@Entity
public class Message
extends org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
Holds the text and metadata for a message that will be given by the system, including validation
messages, UI text (labels, instructions), and other text that has been externalized from the
system
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
extension, newCollectionRecordFields inherited from class org.kuali.rice.krad.bo.DataObjectBase
_persistence_cacheKey, _persistence_fetchGroup, _persistence_href, _persistence_links, _persistence_listener, _persistence_primaryKey, _persistence_relationshipInfo, _persistence_session, _persistence_shouldRefreshFetchGroup, objectId, versionNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA code within the namespace that identifies a component or group, used for further grouping of messages within the namespaceA description for the messagegetKey()A key that uniquely identifies the message within the namespace and componentLocale code the message is represented for, used for supporting messages in different languagesNamespace code (often an application or module code) that message is associated with, used for grouping messagesgetText()Text value for the messagevoidsetComponentCode(String componentCode) Setter for the component code the message should be associated withvoidsetDescription(String description) Setter for the message descriptionvoidSetter for the message keyvoidSetter for the message locale codevoidsetNamespaceCode(String namespaceCode) Setter for the namespace code the message should be associated withvoidSetter for the message textfinal StringtoString()Generate toString using message key fieldsMethods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
_persistence_get, _persistence_new, _persistence_post_clone, _persistence_set, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecordMethods inherited from class org.kuali.rice.krad.bo.DataObjectBase
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get_objectId, _persistence_get_versionNumber, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getHref, _persistence_getId, _persistence_getLinks, _persistence_getPropertyChangeListener, _persistence_getRelationships, _persistence_getSession, _persistence_isAttributeFetched, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set_objectId, _persistence_set_versionNumber, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setHref, _persistence_setId, _persistence_setLinks, _persistence_setPropertyChangeListener, _persistence_setRelationships, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, prePersist, preUpdate, setExtensionObject, setObjectId, setVersionNumberMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.internal.descriptors.PersistenceObject
_persistence_shallow_clone
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
getNamespaceCode
Namespace code (often an application or module code) that message is associated with, used for grouping messages- Returns:
- String namespace code
-
setNamespaceCode
Setter for the namespace code the message should be associated with- Parameters:
namespaceCode-
-
getComponentCode
A code within the namespace that identifies a component or group, used for further grouping of messages within the namespaceExamples here could be a bean id, the class name of an object, or any application/module defined code
- Returns:
- String representing a component code
-
setComponentCode
Setter for the component code the message should be associated with- Parameters:
componentCode-
-
getKey
A key that uniquely identifies the message within the namespace and componentWithin the UIF, this is generally used to indicate the property path the message is associated with (for example: "control.label"). For validation messages this is generally a combination that identifies the type of validation message and the validation performed (for example: "error.account.missing")
- Returns:
- String message key
-
setKey
Setter for the message key- Parameters:
key-
-
getLocale
Locale code the message is represented for, used for supporting messages in different languages- Returns:
- message locale code
-
setLocale
Setter for the message locale code- Parameters:
locale-
-
getDescription
A description for the messageNot used by the framework, here for purposes of editing of messages and providing a description of the message to users
- Returns:
- String message description
-
setDescription
Setter for the message description- Parameters:
description-
-
getText
Text value for the messageThis holds the actual text for the message which is what will be displayed. Depending on how the message is being used it might contain parameters or other special syntax
- Returns:
- String text for the message
-
setText
Setter for the message text- Parameters:
text-
-
toString
Generate toString using message key fields- Overrides:
toStringin classorg.kuali.rice.krad.bo.DataObjectBase- Returns:
- String representing the message object
-