public class Recipient extends ExportablePersistentObject
Modifier and Type | Class and Description |
---|---|
static class |
Recipient.AgentType
Defines the various kinds of agents
|
filled, oid
emptyKeys
Constructor and Description |
---|
Recipient()
Create an empty recipient.
|
Recipient(Persistent templ,
short pos)
Create a recipient for a template.
|
Modifier and Type | Method and Description |
---|---|
Agent |
getAgent()
Return the agent.
|
java.lang.String |
getAgentString()
Return the agent-string, is used for types email, stepagent, or formfield.
|
Recipient.AgentType |
getAgentType()
Return the type of the agent.
|
OrgUnit |
getOrgUnit()
Return the organizational unit, used only if agent is a role.
|
short |
getPos()
Return the position of the recipient in the recipient list.
|
javax.mail.Message.RecipientType |
getRecType()
Get the recipient type (to, cc, bccc).
|
short |
getRecTypeShort()
Return the recipient type as numer. 0=To, 1=CC, 2=BCC
|
java.lang.String |
getTableName()
This method must return the table name of the database table in which
this persistent object is stored.
|
Persistent |
getTemplate()
Return the message template or tracker object this template belongs to.
|
void |
isValid()
The recipient is valid only if type is user or role and agent is not null OR if type is email,
stepagent, or formfield and agentString is not null OR type is owner.
|
Recipient |
setAgent(Agent a)
Set the recipient to a user or role.
|
Recipient |
setAgentString(java.lang.String email)
Set the recipient to an email.
|
Recipient |
setAgentType(Recipient.AgentType type)
Set the agent type.
|
Recipient |
setOrgUnit(OrgUnit ou)
Set the organizational unit.
|
Recipient |
setRecType(javax.mail.Message.RecipientType s)
Set the recipient type (to, cc, bccc).
|
Recipient |
setRecTypeShort(short s)
Get the recipient type from number.
|
Recipient |
setTemplate(MessageTemplate template)
Set the template the recipient belongs to.
|
beforeImport, exportFields, getAdditionalObjects, getRequiredObjects, getRequiredReferences
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, clone, dbFields, equals, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getValue, hashCode, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setOid, setStore, toListString
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getValue, isFilled, setFilled, setOid, setOid, setStore, toListString
public Recipient()
public Recipient(Persistent templ, short pos)
public java.lang.String getTableName()
Persistent
public Agent getAgent()
public OrgUnit getOrgUnit()
public java.lang.String getAgentString()
public Recipient.AgentType getAgentType()
public short getRecTypeShort()
public Persistent getTemplate()
public Recipient setAgentString(java.lang.String email)
public Recipient setOrgUnit(OrgUnit ou)
public Recipient setAgentType(Recipient.AgentType type)
public javax.mail.Message.RecipientType getRecType()
public Recipient setRecType(javax.mail.Message.RecipientType s)
public Recipient setRecTypeShort(short s)
getRecTypeShort()
for keys.public Recipient setTemplate(MessageTemplate template)
public short getPos()
public void isValid()
isValid
in interface Persistent
isValid
in class PersistentObject
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.