Package com.storedobject.core
Class LoginMessage
java.lang.Object
com.storedobject.core.StoredObject
com.storedobject.core.LoginMessage
- All Implemented Interfaces:
Displayable
,StringFiller
,HasId
-
Field Summary
Fields inherited from class com.storedobject.core.StoredObject
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoginMessage
alert
(Transaction transaction, String message, StoredObject person) static LoginMessage
alert
(Transaction transaction, String message, StoredObject person, int validityInDays) static LoginMessage
alert
(Transaction transaction, String message, StoredObject person, StoredObject generatedBy) static LoginMessage
alert
(Transaction transaction, String message, StoredObject person, StoredObject generatedBy, int validityInDays) static LoginMessage
alert
(Transaction transaction, String message, StoredObject person, Class<?> processorClass) static LoginMessage
alert
(Transaction transaction, String message, StoredObject person, Class<?> processorClass, int validityInDays) static LoginMessage
alert
(Transaction transaction, String message, StoredObject person, Class<?> processorClass, StoredObject generatedBy) static LoginMessage
alert
(Transaction transaction, String message, StoredObject person, Class<?> processorClass, StoredObject generatedBy, int validityInDays) static LoginMessage
alert
(Transaction transaction, String message, Iterable<? extends StoredObject> persons) static LoginMessage
alert
(Transaction transaction, String message, Iterable<? extends StoredObject> persons, int validityInDays) static LoginMessage
alert
(Transaction transaction, String message, Iterable<? extends StoredObject> persons, StoredObject generatedBy, int validityInDays) static LoginMessage
alert
(Transaction transaction, String message, Iterable<? extends StoredObject> persons, Class<?> processorClass) static LoginMessage
alert
(Transaction transaction, String message, Iterable<? extends StoredObject> persons, Class<?> processorClass, int validityInDays) static LoginMessage
alert
(Transaction transaction, String message, Iterable<? extends StoredObject> persons, Class<?> processorClass, StoredObject generatedBy) static LoginMessage
alert
(Transaction transaction, String message, Iterable<? extends StoredObject> persons, Class<?> processorClass, StoredObject generatedBy, int validityInDays) static void
escalate
(TransactionControl transactionControl, Iterable<? extends StoredObject> persons, int days) boolean
boolean
boolean
int
static String
getPriorityValue
(int value) static String[]
boolean
boolean
boolean
boolean
isReadBy
(PersonRole personRole) boolean
isReadBy
(SystemUser user) boolean
boolean
boolean
isSentBy
(PersonRole personRole) boolean
isSentBy
(SystemUser user) static String[]
links()
static ObjectIterator
<LoginMessage> listMine
(StoredObject generatedBy) boolean
boolean
markAsRead
(TransactionManager tm, boolean doNotDelete) void
setActive
(boolean active) void
setDisableLogin
(boolean disableLogin) void
setGeneratedBy
(TransactionManager tm, StoredObject generatedBy) void
setGeneratedBy
(Transaction transaction, StoredObject generatedBy) void
setLoginAlert
(boolean loginAlert) void
setMessage
(String message) void
setPriority
(int priority) void
setProcessorLogic
(TransactionManager tm, Class<?> processorClass) void
setProcessorLogic
(Transaction transaction, Class<?> processorClass) void
setShowEveryTime
(boolean showEveryTime) void
setValidFrom
(Timestamp validFrom) void
setValidTo
(Timestamp validTo) static boolean
showLoginMessages
(MessageViewer viewer) static void
showMessages
(ApplicationServer server, Id minId) void
This will be invoked by the system whenever the object is saved to the DB.void
This method will be invoked whenever an existing instance is deleted from the database.Methods inherited from class com.storedobject.core.StoredObject
addLink, addLink, addLink, addLink, addLink, addLink, addLink, addLink, checkCurrency, checkCurrency, checkForDuplicate, checkForDuplicate, checkTimeZone, checkTransaction, clearObjectLinks, contemporary, copy, copy, count, count, count, count, count, count, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, create, created, delete, delete, delete, deleted, directUpdate, equals, exists, exists, exists, exists, exists, existsFileData, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsMaster, existsMaster, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, family, family, family, fill, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAttachment, getAttachmentId, getChildren, getDeleted, getDeleted, getExistsCondition, getExistsCondition, getFileData, getFileData, getHistorical, getId, getKeyIndex, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getNotExistsCondition, getNotExistsCondition, getParent, getParent, getParent, getParentId, getParentId, getParentId, getRelated, getRelated, getTransaction, getTransactionId, getTransactionIP, getUnique, getUniqueCondition, hashCode, inserted, isModified, isVirtual, list, list, list, list, list, list, list, list, list, list, list, list, list, listFileData, listFileData, listHistory, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listTree, listTree, listTree, listTree, listViaQuery, listViaQuery, load, load, load, load, loaded, loading, makeNew, makeVirtual, migrate, moduleName, nextVersion, objectLink, objectLink, objectLink, objectLinks, objectLinks, old, person, previousVersion, previousVersion, query, query, query, query, query, query, query, query, query, query, query, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, reload, reload, reloaded, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeReverseLinks, removeReverseLinks, save, save, save, save, save, save, save, save, save, save, save, save, save, save, saved, saving, setMaster, setRawValue, setTransaction, stringify, tableName, timestamp, toCode, toDisplay, toString, transacting, undelete, undelete, undeleted, updated, user, userId, validate, validateChildAttach, validateChildDetach, validateChildUpdate, validateInsert, validateParentAttach, validateParentDetach, validateParentUpdate, validateUndelete, validateUpdate, valueEquals
-
Constructor Details
-
LoginMessage
public LoginMessage()
-
-
Method Details
-
columns
-
links
-
setMessage
-
getMessage
-
setActive
public void setActive(boolean active) -
getActive
public boolean getActive() -
setValidFrom
-
getValidFrom
-
setValidTo
-
getValidTo
-
setLoginAlert
public void setLoginAlert(boolean loginAlert) -
getLoginAlert
public boolean getLoginAlert() -
setDisableLogin
public void setDisableLogin(boolean disableLogin) -
getDisableLogin
public boolean getDisableLogin() -
setShowEveryTime
public void setShowEveryTime(boolean showEveryTime) -
getShowEveryTime
public boolean getShowEveryTime() -
setPriority
public void setPriority(int priority) -
getPriority
public int getPriority() -
getPriorityValues
-
getPriorityValue
-
getPriorityValue
-
validateData
Description copied from class:StoredObject
This will be invoked by the system whenever the object is saved to the DB. It will be invoked in all cases, while creating new objects and updating/deleting/un-deleting existing objects. If any exception is raised by this method, the process of saving to the DB will be abandoned.
Note: This method is mainly used to validate the data of all attributes of the object, and it may be used by others for validating the object. For example, front-end data-entry systems can use this method for validating the object.
- Overrides:
validateData
in classStoredObject
- Parameters:
tm
- Current transaction manager.- Throws:
Exception
- If data is invalid.
-
setProcessorLogic
- Throws:
Exception
-
setProcessorLogic
- Throws:
Exception
-
getProcessorLogic
-
setGeneratedBy
- Throws:
Exception
-
setGeneratedBy
- Throws:
Exception
-
getGeneratedBy
-
listGeneratedBy
-
listMine
-
isReadBy
-
isReadBy
-
isReadBy
-
isReadBy
-
isSentBy
-
isSentBy
-
isSentBy
-
isSentBy
-
showLoginMessages
-
showMessages
-
alert
public static LoginMessage alert(Transaction transaction, String message, StoredObject person) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, StoredObject person, StoredObject generatedBy) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, StoredObject person, Class<?> processorClass) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, StoredObject person, Class<?> processorClass, StoredObject generatedBy) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, Iterable<? extends StoredObject> persons) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, Iterable<? extends StoredObject> persons, Class<?> processorClass) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, Iterable<? extends StoredObject> persons, Class<?> processorClass, StoredObject generatedBy) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, StoredObject person, int validityInDays) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, StoredObject person, StoredObject generatedBy, int validityInDays) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, StoredObject person, Class<?> processorClass, int validityInDays) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, StoredObject person, Class<?> processorClass, StoredObject generatedBy, int validityInDays) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, Iterable<? extends StoredObject> persons, int validityInDays) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, Iterable<? extends StoredObject> persons, Class<?> processorClass, int validityInDays) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, Iterable<? extends StoredObject> persons, StoredObject generatedBy, int validityInDays) throws Exception - Throws:
Exception
-
alert
public static LoginMessage alert(Transaction transaction, String message, Iterable<? extends StoredObject> persons, Class<?> processorClass, StoredObject generatedBy, int validityInDays) throws Exception - Throws:
Exception
-
validateDelete
Description copied from class:StoredObject
This method will be invoked whenever an existing instance is deleted from the database. So, it will be called within an active transaction. Child classes can override this method to do validation when an existing instance is deleted from the database.Note: When overridden "super" should be called, otherwise, a "design error" will occur.
Also, see
StoredObject.validate()
.- Overrides:
validateDelete
in classStoredObject
- Throws:
Exception
- By raising an exception from this method the current transaction can be abandoned.
-
escalate
public LoginMessage escalate(TransactionControl transactionControl, Iterable<? extends StoredObject> persons, int days) -
markAsRead
-
markAsRead
-