public class ERCoreBusinessLogic extends ERXFrameworkPrincipal
Name | Description |
---|---|
er.corebusinesslogic.ERCoreBusinessLogic.ProblemEmailDomain | er.corebusinesslogic.ERCoreBusinessLogic.ProblemEmailDomain |
er.corebusinesslogic.ERCoreBusinessLogic.ProblemEmailRecipients | er.corebusinesslogic.ERCoreBusinessLogic.ProblemEmailRecipients |
er.corebusinesslogic.ERCoreBusinessLogic.ShouldMailExceptions | er.corebusinesslogic.ERCoreBusinessLogic.ShouldMailExceptions |
ERXFrameworkPrincipal.Observer
Modifier and Type | Field and Description |
---|---|
protected NSArray |
_emailsForProblemRecipients
caches the email addresses to send to in the case of problems
|
protected String |
_problemEmailDomain
caches the problem email address domain
|
static String |
ProblemEmailDomainPropertyKey
property key that holds the email domain of the generated from email
|
static String |
ProblemEmailRecipientsPropertyKey
property key that holds the emails of those who recieve problem emails
|
static Class[] |
REQUIRES |
protected static ERCoreBusinessLogic |
sharedInstance
holds the shared instance reference
|
initializedFrameworks, launchingFrameworks
Constructor and Description |
---|
ERCoreBusinessLogic() |
Modifier and Type | Method and Description |
---|---|
static com.webobjects.eocontrol.EOEnterpriseObject |
actor()
Gets the actor.
|
static com.webobjects.eocontrol.EOEnterpriseObject |
actor(com.webobjects.eocontrol.EOEditingContext ec)
Gets the actor as a local instance in the given context.
|
void |
addPreferenceRelationshipToActorEntity(String entityName) |
void |
addPreferenceRelationshipToActorEntity(String entityName,
String attributeNameToJoin)
Registers a run-time relationship called "preferences" on the actor
entity of your business logic.
|
void |
createTables(com.webobjects.eocontrol.EOEditingContext ec) |
void |
createTables(com.webobjects.eocontrol.EOEditingContext ec,
String modelName) |
NSArray |
emailsForProblemRecipients()
Gets the array of email addresses to send emails
about problems to.
|
String |
extraInfoString(NSDictionary extraInfo,
int indent) |
void |
finishInitialization()
Called when it is time to finish the
initialization of the framework.
|
void |
initializeSharedData()
Initializes the shared eof data.
|
static void |
invalidateStaticValueForKeyCache() |
String |
problemEmailDomain()
Gets the problem email domain.
|
void |
reportException(Throwable exception,
NSDictionary extraInfo)
Reports an exception.
|
static void |
setActor(com.webobjects.eocontrol.EOEnterpriseObject actor)
Sets the actor in the current thread storage.
|
void |
setEmailsForProblemRecipients(NSArray a)
Sets the emails for problem recipients.
|
void |
setProblemEmailDomain(String value)
Sets the problem email domain.
|
static ERCoreBusinessLogic |
sharedInstance()
Gets the shared instance of the ERCoreBusinessLogic.
|
boolean |
shouldMailReportedExceptions() |
static int |
staticStoredIntValueForKey(String key) |
static int |
staticStoredIntValueForKey(String key,
boolean noCache) |
static int |
staticStoredIntValueForKey(String key,
com.webobjects.eocontrol.EOEditingContext ec) |
static String |
staticStoredValueForKey(String key) |
static String |
staticStoredValueForKey(String key,
boolean noCache) |
static String |
staticStoredValueForKey(String key,
com.webobjects.eocontrol.EOEditingContext ec) |
static void |
takeStaticStoredValueForKey(String value,
String key) |
static void |
takeStaticStoredValueForKey(String value,
String key,
com.webobjects.eocontrol.EOEditingContext editingContext) |
didFinishInitialization, hasFrameworkInstalled, initialize, setUpFrameworkPrincipalClass, sharedInstance, toString
public static final String ProblemEmailDomainPropertyKey
public static final String ProblemEmailRecipientsPropertyKey
protected static ERCoreBusinessLogic sharedInstance
public static final Class[] REQUIRES
protected NSArray _emailsForProblemRecipients
protected String _problemEmailDomain
public static ERCoreBusinessLogic sharedInstance()
public static void setActor(com.webobjects.eocontrol.EOEnterpriseObject actor)
actor
- current user for this threadpublic static com.webobjects.eocontrol.EOEnterpriseObject actor(com.webobjects.eocontrol.EOEditingContext ec)
ec
- editing context to pull a local copy of the actor
intopublic static com.webobjects.eocontrol.EOEnterpriseObject actor()
public static int staticStoredIntValueForKey(String key)
public static int staticStoredIntValueForKey(String key, boolean noCache)
public static String staticStoredValueForKey(String key, com.webobjects.eocontrol.EOEditingContext ec)
public static int staticStoredIntValueForKey(String key, com.webobjects.eocontrol.EOEditingContext ec)
public static void takeStaticStoredValueForKey(String value, String key, com.webobjects.eocontrol.EOEditingContext editingContext)
public static void takeStaticStoredValueForKey(String value, String key)
public static void invalidateStaticValueForKeyCache()
public void finishInitialization()
finishInitialization
in class ERXFrameworkPrincipal
public void initializeSharedData()
public boolean shouldMailReportedExceptions()
public void addPreferenceRelationshipToActorEntity(String entityName)
public void addPreferenceRelationshipToActorEntity(String entityName, String attributeNameToJoin)
entityName
- String name for your actor entityattributeNameToJoin
- String attribute name on the actor
entity; used by the relationship and typically it's the
primary key.public NSArray emailsForProblemRecipients()
public void setEmailsForProblemRecipients(NSArray a)
a
- array of email addressespublic String problemEmailDomain()
public void setProblemEmailDomain(String value)
value
- to set problem domain topublic String extraInfoString(NSDictionary extraInfo, int indent)
public void reportException(Throwable exception, NSDictionary extraInfo)
exception
- to be reportedextraInfo
- dictionary of extra information about what was
happening when the exception was thrown.public void createTables(com.webobjects.eocontrol.EOEditingContext ec, String modelName) throws SQLException
SQLException
public void createTables(com.webobjects.eocontrol.EOEditingContext ec) throws SQLException
SQLException
Copyright © 2002 – 2020 Project Wonder.