|
|||||||||
| Home >> All >> er >> [ corebusinesslogic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
er.corebusinesslogic
Class ERCoreBusinessLogic

java.lang.Objecter.extensions.ERXFrameworkPrincipal
er.corebusinesslogic.ERCoreBusinessLogic
- public class ERCoreBusinessLogic
- extends er.extensions.ERXFrameworkPrincipal
| Field Summary | |
protected NSArray |
_emailsForProblemRecipients
caches the email addresses to send to in the case of problems |
protected java.lang.String |
_problemEmailDomain
caches the problem email address domain |
static er.extensions.ERXLogger |
log
logging support |
static java.lang.String |
ProblemEmailDomainPropertyKey
property key that holds the email domain of the generated from email |
static java.lang.String |
ProblemEmailRecipientsPropertyKey
property key that holds the emails of those who recieve problem emails |
protected static ERCoreBusinessLogic |
sharedInstance
holds the shared instance reference |
| Fields inherited from class er.extensions.ERXFrameworkPrincipal |
|
| Constructor Summary | |
ERCoreBusinessLogic()
|
|
| Method Summary | |
static EOEnterpriseObject |
actor()
Gets the actor. |
static EOEnterpriseObject |
actor(EOEditingContext ec)
Gets the actor as a local instance in the given context. |
void |
addPreferenceRelationshipToActorEntity(java.lang.String entityName,
java.lang.String attributeNameToJoin)
Registers a run-time relationship called "preferences" on the actor entity of your business logic. |
NSArray |
emailsForProblemRecipients()
Gets the array of email addresses to send emails about problems to. |
void |
finishInitialization()
Called when it is time to finish the initialization of the framework. |
void |
initializeSharedData()
Initializes the shared eof data. |
static void |
invalidateStaticValueForKeyCache()
|
java.lang.String |
problemEmailDomain()
Gets the problem email domain. |
void |
reportException(java.lang.Throwable exception,
NSDictionary extraInfo)
Reports an exception. |
static void |
setActor(EOEnterpriseObject actor)
Sets the actor in the current thread storage. |
void |
setEmailsForProblemRecipients(NSArray a)
Sets the emails for problem recipients. |
void |
setProblemEmailDomain(java.lang.String value)
Sets the problem email domain. |
static ERCoreBusinessLogic |
sharedInstance()
Gets the shared instance of the ERCoreBusinessLogic. |
static int |
staticStoredIntValueForKey(java.lang.String key)
|
static int |
staticStoredIntValueForKey(java.lang.String key,
EOEditingContext ec)
|
static java.lang.String |
staticStoredValueForKey(java.lang.String key)
|
static java.lang.String |
staticStoredValueForKey(java.lang.String key,
EOEditingContext ec)
|
static void |
takeStaticStoredValueForKey(java.lang.String value,
java.lang.String key,
EOEditingContext editingContext)
|
| Methods inherited from class er.extensions.ERXFrameworkPrincipal |
finishInitialization, log, setUpFrameworkPrincipalClass, sharedInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
public static final er.extensions.ERXLogger log
- logging support
ProblemEmailDomainPropertyKey
public static final java.lang.String ProblemEmailDomainPropertyKey
- property key that holds the email domain of the generated from email
- See Also:
- Constant Field Values
ProblemEmailRecipientsPropertyKey
public static final java.lang.String ProblemEmailRecipientsPropertyKey
- property key that holds the emails of those who recieve problem emails
- See Also:
- Constant Field Values
sharedInstance
protected static ERCoreBusinessLogic sharedInstance
- holds the shared instance reference
_emailsForProblemRecipients
protected NSArray _emailsForProblemRecipients
- caches the email addresses to send to in the case of problems
_problemEmailDomain
protected java.lang.String _problemEmailDomain
- caches the problem email address domain
| Constructor Detail |
ERCoreBusinessLogic
public ERCoreBusinessLogic()
| Method Detail |
sharedInstance
public static ERCoreBusinessLogic sharedInstance()
- Gets the shared instance of the ERCoreBusinessLogic.
setActor
public static void setActor(EOEnterpriseObject actor)
- Sets the actor in the current thread storage.
actor
public static EOEnterpriseObject actor(EOEditingContext ec)
- Gets the actor as a local instance in the given context.
actor
public static EOEnterpriseObject actor()
- Gets the actor.
staticStoredValueForKey
public static java.lang.String staticStoredValueForKey(java.lang.String key)
staticStoredIntValueForKey
public static int staticStoredIntValueForKey(java.lang.String key)
staticStoredValueForKey
public static java.lang.String staticStoredValueForKey(java.lang.String key, EOEditingContext ec)
staticStoredIntValueForKey
public static int staticStoredIntValueForKey(java.lang.String key, EOEditingContext ec)
takeStaticStoredValueForKey
public static void takeStaticStoredValueForKey(java.lang.String value, java.lang.String key, EOEditingContext editingContext)
invalidateStaticValueForKeyCache
public static void invalidateStaticValueForKeyCache()
finishInitialization
public void finishInitialization()
- Called when it is time to finish the
initialization of the framework.
initializeSharedData
public void initializeSharedData()
- Initializes the shared eof data.
addPreferenceRelationshipToActorEntity
public void addPreferenceRelationshipToActorEntity(java.lang.String entityName, java.lang.String attributeNameToJoin)
- Registers a run-time relationship called "preferences" on the actor
entity of your business logic. The framework needs preferences
relationship to access user preferences for a specific actor.
Call this method when you initialize your business logic layer.
(Check BTBusinessLogic class as an example.)
emailsForProblemRecipients
public NSArray emailsForProblemRecipients()
- Gets the array of email addresses to send emails
about problems to.
setEmailsForProblemRecipients
public void setEmailsForProblemRecipients(NSArray a)
- Sets the emails for problem recipients. Should
be an array of email addresses to report exceptions
to in production applications.
problemEmailDomain
public java.lang.String problemEmailDomain()
- Gets the problem email domain. This is used for constructing the
from address when reporting an exception. Should be of the form:
foo.com.
setProblemEmailDomain
public void setProblemEmailDomain(java.lang.String value)
- Sets the problem email domain.
reportException
public void reportException(java.lang.Throwable exception, NSDictionary extraInfo)
- Reports an exception. If caching is enabled then the exception
will also be emailed to the problem mail recipients.
|
|||||||||
| Home >> All >> er >> [ corebusinesslogic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC