|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.ontimize.db.TableEntity
com.ontimize.db.DefaultTableEntity
com.ontimize.util.notice.NoticeEntity
| Nested Class Summary |
| Nested classes inherited from class com.ontimize.db.TableEntity |
TableEntity.AttachmentReceiving, TableEntity.Receiving |
| Field Summary | |
protected java.lang.String |
entityDestinyName
|
static java.lang.String |
INTERNAL_NOTICE_PERIOD
|
static java.lang.String |
MAIL_CONF_PROPERTIES
|
static java.lang.String |
NOTICE_CONTENT
Notice entity column name which specifies the notice content |
static java.lang.String |
NOTICE_CREATE_DATE
Notice entity column name that specifies the notice generation date |
static java.lang.String |
NOTICE_DELETE_RECEIVE_NOTICE
This column sets the received notice as deleted |
static java.lang.String |
NOTICE_DELETE_SEND_NOTICE
This column sets the sent notices as deleted |
static java.lang.String |
NOTICE_DESTINY_KEY
Key name of the notice destiny entity. |
static java.lang.String |
NOTICE_ENTITY_DESTINY_TABLE_DB
|
static java.lang.String |
NOTICE_ENTITY_TABLE_DB
|
static java.lang.String |
NOTICE_FORCE_READ
Notice entity column name which indicates if this is a mandatory read notice |
static java.lang.String |
NOTICE_FROM_PARAMETER
Column name of the notices entity where is stored the name of the user that generates the notice |
static java.lang.String |
NOTICE_KEY
Notice entity key |
static java.lang.String |
NOTICE_MAILTO_PARAMETER
Destiny entity column name which the mail addresses the notices are send to are stored in |
static java.lang.String |
NOTICE_MESSAGE_COLUMN_NAME
|
static java.lang.String |
NOTICE_MESSAGE_TYPE_COLUMN_NAME
|
static java.lang.String |
NOTICE_OTHER_COLUMNS
|
static java.lang.String |
NOTICE_READ
Destiny entity column name which indicates if this notice has been read (this column is only used for internal notices) |
static java.lang.String |
NOTICE_READ_DATE
Destiny entity column name which indicates the notice read date |
static java.lang.String |
NOTICE_RESPONSE_REQUEST
Notices entity column name which indicates if this notice requests confirmation (0 = without response request) |
static java.lang.String |
NOTICE_SEND
Destiny entity column name which indicates if this notice has been sent, when notice is internal notice this columns indicates if destiny user has queried the notice. |
static java.lang.String |
NOTICE_SEND_DATE
Destiny entity column name which specifies the notice sent date |
static java.lang.String |
NOTICE_SEND_MAIL
Destiny entity column name which indicates if this notice must be send in a email (0 = internal notice, 1= email notice) |
static java.lang.String |
NOTICE_SUBJECT
Notice entity column name which specifies se notice subject |
static java.lang.String |
NOTICE_SYSTEM
Parameter that must exists in the reference locator (local and remote) to allow that all notices threads start. |
static java.lang.String |
NOTICE_TO_PARAMETER
Column name of the destiny entity where user name is stored |
static java.lang.String |
PROP_NOTICE_CLASS_MAIL
|
static java.lang.String |
PROP_NOTICE_CONFIG_DEFAULT_TEMPLATE
|
static java.lang.String |
PROP_NOTICE_CONFIG_MAIL
|
static java.lang.String |
PROP_NOTICE_CONFIG_REQUEST_TEMPLATE
|
static java.lang.String |
PROP_NOTICE_CONFIG_TEMPLATES
|
static java.lang.String |
PROP_NOTICE_ENTITY_DESTINY_NAME
|
static java.lang.String |
PROP_NOTICE_ENTITY_NAME
|
static java.lang.String |
SEND_MAIL_PERIOD
|
| Fields inherited from class com.ontimize.db.DefaultTableEntity |
props |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
NoticeEntity(EntityReferenceLocator locator,
DatabaseConnectionManager databaseManager,
int port,
java.lang.String props)
|
|
| Method Summary | |
void |
checkNoticeSent(java.lang.Object idNotice)
Marks a notices as sent and update the date sent |
void |
checkNoticeSent(java.lang.Object idNotice,
TableEntity entityTo,
int sessionId,
java.sql.Connection con)
Marks a notices as sent and update the date sent |
EntityResult |
getInternalNotices(int sessionId,
boolean unsend,
boolean unread,
boolean deleted)
Gets all the records for the user with the specified sessionId and set these messages as read and update the sent date |
EntityResult |
getInternalNotices(int sessionId,
boolean unsend,
boolean unread,
boolean deleted,
java.sql.Connection con)
|
EntityResult |
getNewMailNotice()
Get the information about e-mail notices that have not been already sent |
EntityResult |
getNewMailNotice(int sessionId,
java.sql.Connection con)
|
EntityResult |
getSentNotices(int sessionId,
java.lang.Boolean deleted)
|
EntityResult |
getSentNotices(int sessionId,
java.lang.Boolean deleted,
java.sql.Connection con)
|
protected void |
insertDestiny(java.util.Hashtable kv,
java.lang.Object noticeKey,
int sessionId,
java.sql.Connection con)
Insert all the destinations of the notice |
protected EntityResult |
joinInformation(EntityResult noticesData,
EntityResult destinationParams,
java.lang.String[] simpleParams,
java.lang.Object unionKey)
Completes the information of the notice data with the destination values. |
protected void |
readProperties(java.lang.String path)
Loads a Properties object located in path using
this.getClass().getClassLoader().getResource(path). |
protected void |
readPropertiesChanges(java.net.URL urlProp)
|
void |
removeReceivedNotices(int sessionId,
java.util.Vector noticeskeys)
|
void |
removeReceivedNotices(int sessionId,
java.util.Vector noticeskeys,
java.sql.Connection con)
Sets the specified notices for the specified user as removed. |
void |
removeSentNotices(int sessionId,
java.util.Vector noticesKeys)
Set the specified notices as deleted but does not remove them from the database |
void |
removeSentNotices(int sessionId,
java.util.Vector noticesKeys,
java.sql.Connection con)
|
void |
sentNotices(java.util.Hashtable kv,
int sessionId,
boolean request)
Inserts the notice in the notice table and insert all destinies in destiny notice table All message fields are inserted and a new field using the template for this notice type is created and also inserted in the notice table |
void |
sentNotices(java.util.Hashtable kv,
int sessionId,
boolean request,
java.sql.Connection con)
|
protected EntityResult |
setMessageAddress(EntityResult noticesData,
EntityResult destinyParams)
Sets a vector with the addresses to send a notice (mail or not) |
void |
setNoticesRead(int sessionId,
java.util.Vector readNotices)
Set all the specified notices as read |
void |
setNoticesRead(int sessionId,
java.util.Vector readNotices,
java.sql.Connection con)
|
| Methods inherited from class com.ontimize.db.DefaultTableEntity |
getExtendedAliasPropertiesName, getExtendedPropertiesName, loadAliasFile, readProperties, setName |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String entityDestinyName
public static java.lang.String NOTICE_SYSTEM
public static java.lang.String PROP_NOTICE_ENTITY_NAME
public static java.lang.String PROP_NOTICE_ENTITY_DESTINY_NAME
public static java.lang.String PROP_NOTICE_CONFIG_MAIL
public static java.lang.String PROP_NOTICE_CLASS_MAIL
public static java.lang.String PROP_NOTICE_CONFIG_TEMPLATES
public static java.lang.String PROP_NOTICE_CONFIG_DEFAULT_TEMPLATE
public static java.lang.String PROP_NOTICE_CONFIG_REQUEST_TEMPLATE
public static java.lang.String MAIL_CONF_PROPERTIES
public static java.lang.String INTERNAL_NOTICE_PERIOD
public static java.lang.String SEND_MAIL_PERIOD
public static java.lang.String NOTICE_ENTITY_TABLE_DB
public static java.lang.String NOTICE_ENTITY_DESTINY_TABLE_DB
public static java.lang.String NOTICE_MESSAGE_TYPE_COLUMN_NAME
public static java.lang.String NOTICE_OTHER_COLUMNS
public static java.lang.String NOTICE_KEY
public static java.lang.String NOTICE_DESTINY_KEY
public static java.lang.String NOTICE_TO_PARAMETER
public static java.lang.String NOTICE_FROM_PARAMETER
public static java.lang.String NOTICE_MAILTO_PARAMETER
public static java.lang.String NOTICE_RESPONSE_REQUEST
public static java.lang.String NOTICE_SEND_MAIL
public static java.lang.String NOTICE_READ
public static java.lang.String NOTICE_READ_DATE
public static java.lang.String NOTICE_SEND
public static java.lang.String NOTICE_CREATE_DATE
public static java.lang.String NOTICE_SEND_DATE
public static java.lang.String NOTICE_SUBJECT
public static java.lang.String NOTICE_CONTENT
public static java.lang.String NOTICE_FORCE_READ
public static java.lang.String NOTICE_DELETE_SEND_NOTICE
public static java.lang.String NOTICE_DELETE_RECEIVE_NOTICE
public static java.lang.String NOTICE_MESSAGE_COLUMN_NAME
| Constructor Detail |
public NoticeEntity(EntityReferenceLocator locator,
DatabaseConnectionManager databaseManager,
int port,
java.lang.String props)
throws java.lang.Exception
| Method Detail |
protected void readProperties(java.lang.String path)
throws java.lang.Exception
TableEntitypath using
this.getClass().getClassLoader().getResource(path).TableEntity.readProperties(Properties, URL)
readProperties in class TableEntitypath - path from which the properties will be loaded
java.lang.Exceptionprotected void readPropertiesChanges(java.net.URL urlProp)
public EntityResult getSentNotices(int sessionId,
java.lang.Boolean deleted,
java.sql.Connection con)
throws java.lang.Exception
sessionId - deleted -
java.lang.Exception
public EntityResult getSentNotices(int sessionId,
java.lang.Boolean deleted)
throws java.lang.Exception
sessionId - deleted -
java.lang.Exception
public void sentNotices(java.util.Hashtable kv,
int sessionId,
boolean request)
throws java.lang.Exception
kv - sessionId -
java.lang.Exception
public void sentNotices(java.util.Hashtable kv,
int sessionId,
boolean request,
java.sql.Connection con)
throws java.lang.Exception
java.lang.Exception
protected void insertDestiny(java.util.Hashtable kv,
java.lang.Object noticeKey,
int sessionId,
java.sql.Connection con)
throws java.lang.Exception
kv - notice information including the NOTICE TO parameternoticeKey - Key of the inserted noticesessionId - con -
java.lang.Exception
public EntityResult getInternalNotices(int sessionId,
boolean unsend,
boolean unread,
boolean deleted)
throws java.lang.Exception
sessionId - unsend - unread - deleted -
java.lang.Exception
public EntityResult getInternalNotices(int sessionId,
boolean unsend,
boolean unread,
boolean deleted,
java.sql.Connection con)
throws java.lang.Exception
java.lang.Exception
public void setNoticesRead(int sessionId,
java.util.Vector readNotices)
throws java.lang.Exception
sessionId - User identifierreadNotices - List with the keys of the notices to update
java.lang.Exception
public void setNoticesRead(int sessionId,
java.util.Vector readNotices,
java.sql.Connection con)
throws java.lang.Exception
java.lang.Exception
public EntityResult getNewMailNotice()
throws java.lang.Exception
java.lang.Exception
public EntityResult getNewMailNotice(int sessionId,
java.sql.Connection con)
throws java.lang.Exception
java.lang.Exception
public void checkNoticeSent(java.lang.Object idNotice,
TableEntity entityTo,
int sessionId,
java.sql.Connection con)
throws java.lang.Exception
idNotice - entityTo - sessionId - con -
java.lang.Exception
public void checkNoticeSent(java.lang.Object idNotice)
throws java.lang.Exception
idNotice -
java.lang.Exception
public void removeSentNotices(int sessionId,
java.util.Vector noticesKeys)
throws java.lang.Exception
sessionId - noticesKeys -
java.lang.Exception
public void removeSentNotices(int sessionId,
java.util.Vector noticesKeys,
java.sql.Connection con)
throws java.lang.Exception
java.lang.Exception
public void removeReceivedNotices(int sessionId,
java.util.Vector noticeskeys)
throws java.lang.Exception
java.lang.Exception
public void removeReceivedNotices(int sessionId,
java.util.Vector noticeskeys,
java.sql.Connection con)
throws java.lang.Exception
sessionId - noticeskeys - con -
java.lang.Exception
protected EntityResult joinInformation(EntityResult noticesData,
EntityResult destinationParams,
java.lang.String[] simpleParams,
java.lang.Object unionKey)
simpleParams list
and if this parameters already exist uses only the first occurrence.
noticesData - EntityReusult to completedestinationParams - New information to addsimpleParams - Keys of the parameters to add from the destinationParams to
noticeDataunionKey - Name of the key to math the both Objects
protected EntityResult setMessageAddress(EntityResult noticesData,
EntityResult destinyParams)
noticesData - destinyParams -
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||