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 EOEnterpriseObject |
actor()
Gets the actor.
|
static EOEnterpriseObject |
actor(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(EOEditingContext ec) |
void |
createTables(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(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,
EOEditingContext ec) |
static String |
staticStoredValueForKey(String key) |
static String |
staticStoredValueForKey(String key,
boolean noCache) |
static String |
staticStoredValueForKey(String key,
EOEditingContext ec) |
static void |
takeStaticStoredValueForKey(String value,
String key) |
static void |
takeStaticStoredValueForKey(String value,
String key,
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(EOEnterpriseObject actor)
actor
- current user for this threadpublic static EOEnterpriseObject actor(EOEditingContext ec)
ec
- editing context to pull a local copy of the actor
intopublic static EOEnterpriseObject actor()
public static int staticStoredIntValueForKey(String key)
public static int staticStoredIntValueForKey(String key, boolean noCache)
public static String staticStoredValueForKey(String key, EOEditingContext ec)
public static int staticStoredIntValueForKey(String key, EOEditingContext ec)
public static void takeStaticStoredValueForKey(String value, String key, 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(EOEditingContext ec, String modelName) throws SQLException
SQLException
public void createTables(EOEditingContext ec) throws SQLException
SQLException
Copyright © 2002 – 2024 Project Wonder.