|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.dem.managers.impl.AbstractMessageManager pt.digitalis.dif.dem.managers.impl.MessageManagerImpl
public class MessageManagerImpl
Manages the DEM messages, providing operations for access, pooling and persistence.
Field Summary |
---|
Fields inherited from class pt.digitalis.dif.dem.managers.impl.AbstractMessageManager |
---|
DEFAULT_MESSAGE_FILE_EXTENSION, MESSAGES_FOLDER, NUMBER_SIGN |
Constructor Summary | |
---|---|
MessageManagerImpl()
|
Method Summary | |
---|---|
MessageList |
collectEntityMessagesFromRepository(Class<?> clazz)
Collect entity messages from resource LanguageID, MessageID, theMessageObject |
MessageList |
collectEntityMessagesFromRepository(Entity type,
Object instance)
Collect entity messages from resource LanguageID, MessageID, theMessageObject |
MessageList |
collectEntityMessagesFromRepository(Entity type,
String id,
String className,
String parentID)
Collect entity messages from resource LanguageID, MessageID, theMessageObject |
MessageList |
collectEntityMessagesFromRepository(String messagePath)
Collect entity messages from resource LanguageID, MessageID, theMessageObject |
boolean |
isPersistent()
|
protected MessageList |
readMessageFile(String fileName,
String entityName)
Does the actual reading of the resource file |
Methods inherited from class pt.digitalis.dif.dem.managers.impl.AbstractMessageManager |
---|
addSupportedLanguage, getEntityID, getMessageList, getMessageList, getMessageList, getMessageList, getMessageList, getMessages, getMessages, getMessages, getMessages, getSupportedLanguages, invalidateMessages, isLanguageSupported, updateMessage, updateMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageManagerImpl()
Method Detail |
---|
public MessageList collectEntityMessagesFromRepository(Class<?> clazz)
IMessageManager
clazz
- the class to read the messages from
IMessageManager.collectEntityMessagesFromRepository(java.lang.Class)
public MessageList collectEntityMessagesFromRepository(Entity type, Object instance)
IMessageManager
type
- the type of the entity or null if it's not a DEM entityinstance
- the entity instance
IMessageManager.collectEntityMessagesFromRepository(pt.digitalis.dif.dem.Entity,
java.lang.Object)
public MessageList collectEntityMessagesFromRepository(Entity type, String id, String className, String parentID) throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException
IMessageManager
type
- the type of the entity or null if it's not a DEM entityid
- the entity idclassName
- the class nameparentID
- the entity's parent ID
pt.digitalis.utils.inspection.exception.ResourceNotFoundException
- if a needed resource for message collection can't be foundIMessageManager.collectEntityMessagesFromRepository(pt.digitalis.dif.dem.Entity,
java.lang.String, java.lang.String, java.lang.String)
public MessageList collectEntityMessagesFromRepository(String messagePath)
IMessageManager
messagePath
- the messagePath for the message file (without the ".messages.xx" suffix)
IMessageManager.collectEntityMessagesFromRepository(java.lang.String)
public boolean isPersistent()
IMessageManager.isPersistent()
protected MessageList readMessageFile(String fileName, String entityName)
fileName
- the name of the message resource file to readentityName
- the name of the entity to witch we are loading the messages
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |