Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

er.bugtracker.* (59)er.calendar.* (3)er.changenotification.* (4)
er.corebusinesslogic.* (21)er.directtoweb.* (209)er.extensions.* (161)
er.grouping.* (19)er.javamail.* (23)er.neutral.* (12)
er.reporting.* (31)er.testrunner.* (7)er.wopaypal.* (13)
er.workerchannel.* (11)er.wrox.* (3)

Package Samples:

er.bugtracker
er.javamail.mailer
er.directtoweb.look.ugly
er.wrox.wo
er.wrox
er.calendar
er.changenotification
er.corebusinesslogic
er.directtoweb
er.extensions
er.testrunner
er.javamail
er.neutral
er.workerchannel
er.reporting.examples
er.grouping.examples
er.grouping
er.reporting
er.wopaypal

Classes:

ERXBrowserFactory: All WebObjects applications have exactly one ERXBrowserFactory instance. Its primary role is to manage ERXBrowser objects. It provides facility to parse "user-agent" HTTP header and to create an appropriate browser object. It also maintains the browser pool to store shared ERXBrowser objects. Since ERXBrowser object is immutable, it can be safely shared between sessions and ERXBrowserFactory tries to have only one instance of ERXBrowser for each kind of web browsers. The primary method called by ERXSession and ERXDirectAction is browserMatchingRequest 55 which takes a WORequest as the parameter ...
ERXConfigurationManager: Configuration Manager handles rapid turnaround for system configuration as well as swizzling of the EOModel connection dictionaries. Placing configuration parameters You can provide the system configuration by the following ways: Note: This is the standard way for WebObjects 5.x applications. Properties file under the Resources group of the application and framework project. It's a java.util.Properties file and Project Wonder's standard project templates include it. (The templates won't be available on some platforms at this moment.) WebObjects.properties under the user home directory; same format ...
ERXBasicBrowser: ERXBasicBrowser is a concrete subclass of ERXBrowser that defines browser object. A browser object represents the web browser that the current request-response cycle is dealing with. It holds the information retrieved from HTTP request's "user-agent" header, and such information includes web browser's name, version, Mozilla compatible version and platform (OS). Also, a browser object can answer boolean questions such as isIE() 55 , isOmniWeb() 55 , isVersion5() 55 and isMozilla40Compatible() 55 , and even more specific questions like isIFrameSupported() 55 and willRenderNestedTablesFast() 55 . ...
ERCNNotificationCoordinator: ERCNNotificationCoordinator is the primary controller of the change notification for enterprise objects. It manages the single connection to the JMS server, and creates ERCNPublisher and ERCNSubscriber objects and registers them as the observers to handle change notifications. When the application finishes launching, it checks properties and initializes the framework. It can also perform necessary clean-up operations when the application is about to terminate. The framework works transparently and you will not have to call any methods on the framework. Just add this framework to application project ...
ERXBrowser: ERXBrowser is an abstract class that defines browser object. A browser object represents the web browser that the current request-response loop is dealing with. It holds the information retrieved from HTTP request's "user-agent" header, and such information includes web browser's name, version, Mozilla compatible version and platform (OS). Also, a browser object can answer boolean questions such as isIE , isOmniWeb , isVersion5 and isMozilla40Compatible . ERXBrowser is immutable and shared by different sessions and direct actions. The shared instances are managed by ERXBrowserFactory which is also ...
ERPublishCalendarPage: ERPublishCalendarPage is a WebObjects component for dynamically generated iCalendar documents. The response created by ERPublishCalendarPage is an iCalendar document (.ics) containing the events added to ERPublishCalendarPage by the application (see addEvent 55 ). An iCalendar-aware application, such as Apple's iCal, can subscribe to such a calendar, provided that the page has a fixed URL (either is the "Main" page, or a direct action serves the page). Events added to a ERPublishCalendarPage is objects of any class that implements the ERCalendarEvent interface . Existing classes (for example EOCustomObject ...
ERXLocalizer: KVC access to localization. Monitors a set of files in all frameworks and returns a string given a key for a language. In the current state, it's more a stub for things to come. These types of keys are acceptable in the monitored files: "this is a test" = "some test"; "unittest.key.path.as.string" = "some test"; "unittest" = {"key" = { "path" = { "as" = {"dict"="some test";};};};}; Note that if you only call for "unittest", you'll get a dictionary. So you can localize more complex objects than strings. If you set the base class of your session to ERXSession, you can then use this code in your components: ...
ERXTable: Enhanced table component that adds the ability to have the table layed out in a vertical orientation and adds the ability to specify an array of header images that appear in the header cells of the table. Corrects a bug intorduced in WO 5.1 where OutOfBounds exceptions are thrown. Note that this component subclasses WOTable from this framework, not the WOTable in com.webobjects.woextensions. The reason for this is that all of the instance variables are private in JavaWOExtensions WOTable. Synopsis: list= anArray ;item= aSettableObject ;[col= aSettableNumber ;][index= aSettableNumber ;][row= aSettableNumber ...
ERCalendarEvent: ERCalendarEvent is an interface for events used by the ERPublishCalendarPage component . ERPublishCalendarPage can use objects of any class that implements this interface. Existing classes (for example EOCustomObject subclasses), that correspond to calendar events, can easily be modified to implement this interface and thus be added directly to ERPublishCalendarPage . If existing classes does not directly correspond to calendar events, create events from business data (or some algorithm) using either the included ERSimpleEvent class , a subclass of ERSimpleEvent , or any other class implementing ...
ERDObjectSaveDelegate: Simple com.webobjects.directtoweb.NextPageDelegate implementation that saves the editing context of an enterprise object before returning the next page. This can be particularly handy for example if you want a user to confirm an action before the editing context is committed, for example: Assume that you have a User object that has been editinged in a peer context and now you want the user to confirm that they really should save the changes to the editing context, you could have this method: public WOComponent confirmSave() { ConfirmPageInterface cpi = (ConfirmPageInterface)D2W.factory().pageForConfigurationNamed("ConfirmSaveUserChanges", ...
ERXPatternLayout: The ERXPatternLayout adds some additional (and needed) layout options. The first is by specifing an '@' character a full backtrace will be logged as part of the log event. The second is by specifing an '$' char the current application name of the WOApplication will be logged as part of the log event. Finally by specifing an '#' char the current port number on which the primary adaptor listens to will be logged as part of the log event. WebObjects Applicaion Info Patterns Example: %W{n[i:p s]} -- MyApp[9300:2001 28] n: application name i: pid (process ID, provided through Java system property "com.webobjects.pid") ...
ERCNSubscriber: ERCNSubscriber handles change notifications from other application instances via JMS server, and applies the changes to the local EOF stack managed by the default EOObjectStoreCoordinator. There must be exactly one instance of the ERCNSubscriber on the application. Its onChange method is called by JMS's own single thread which manages asynchronous receiving mechanism, and therefore, it runs concurrently with other worker threads and will not interfere request-response cycles. Note that the subscriber will not receive notifications from itself, but from other application instances. This is accomplished ...
ERXEntityClassDescription: The main purpose of the ERXClassDescription class is to throw ERXValidationException s instead of the usual NSValidation.ValidationException objects. See the ERXValidationException and ERXValidationFactory class for more information about localized and templatized validation exceptions. This class is configured to register itself as the class description by calling the method registerDescription . This method is called when the principal class of this framework is loaded. This happens really early so you shouldn't have to worry about this at all. If you wish to provide your own class description ...
EOGenericRecordClazz: WARNING: this is alpha and untested! Use subclasses of EOGenericRecordClazz as inner classes in your EO subclasses to work around the missing class object inheritance of java. They must be named XXX.XXXClazz to work! Every subclass of this class will get their own "ClazzObject" instance, so it's OK to store things which might be different in superclasses. That is, the "User"'s implementation can override the "Person"'s and because Person.clazz() will get it's own instance, it will do only "Person" things. The methods from EOUtilities are mirrored here so you don't have to import EOAccess in your ...
ERXNSPrintWriterLogger: ERXNSPrintWriterLogger is an alternative of NSLog.PrintStreamLogger but accepts character oriented java.io.PrintWriter instead of byte oriented java.io.PrintStream so that the character encoding for logging can be explicitly set. Usage: // Create a PrintWriter with Japanese "SJIS" encoding. OutputStreamWriter sjisOutWriter = new OutputStreamWriter(new FileOutputStream("app.log"), "SJIS"); PrintWriter sjisPrintWriter = new PrintWriter(sjisOutWriter, true); // Create a logger then set it to NSLog. NSLog.Logger logger = new ERXNSPrintWriterLogger(sjisPrintWriter); NSLog.setDebug(logger); NSLog.setOut(logger); ...
ERXFixedLengthString: This stateless component is useful for displaying a string of a fixed length. For example imagine you have the string: 'The brown dog jumped' and for a given table cell you only want to display at most 10 characters of the string, then using this component you could bind the given string to the 'value' binding, 10 to the 'length' binding and the string '...' to the 'suffixWhenTrimmed' binding. When rendering this would display: The brown ... This component can also be used to pad whitespace onto the end of strings that are shorter than the given length. Synopsis: value= aString ;length= aNumber ...
ERXGenericRecord: This class contains a bunch of extensions to the regular com.webobjects.eocontrol.EOGenericRecord class. Of notable interest it contains built in support for generating primary keys via the ERXGeneratesPrimaryKeyInterface , support for an augmented transaction methods like willUpdate and didDelete and a bunch of handy utility methods like committedSnapshotValueForKey . At the moment it is required that those wishing to take advantage of templatized and localized validation exceptions need to subclass this class. Hopefully in the future we can get rid of this requirement.
ERXUnitAwareDecimalFormat: ERXUnitAwareDecimalFormat extends java.text.DecimalFormat to add an automatic unit conversion feature for the given unit. Convenient to display friendly values for file size, elaps time, etc. Examples: import java.text.NumberFormat; import er.extensions.ERXUnitAwareDecimalFormat double smallValue = 123.0d; double largeValue = 1234567890.0d; NumberFormat formatter = new ERXUnitAwareDecimalFormat(ERXUnitAwareDecimalFormat.BYTE); formatter.setMaximumFractionDigits(2); // Will display "123 bytes" System.out.println(formatter.format(smallValue)); // Will display "1.15 GB" System.out.println(formatter ...
ERCMailMessageAppender: Basic log4j Mail Message Appender Used for logging log events to a database that will eventually be emailed out. Logs events using ERCMailDelivery . Manditory Fields: TOAddresses - coma seperated list of email addresses to send the log event message to. FromAddress - Who the message is from, if left blank then DomainName is a manditory field. Optional Fields: BCCAddresses - coma separated list of email address to bcc on the email CCAddresses - coma separated list of email address to cc on the email ReplyTo - reply to address DomainName - When generating a from email address, used for the bit after ...
ERXDirectActionHyperlink: This component can be used for two things: 1) Generating direct action urls for use in components that are being e-mailed to people. 2) Support for encoding enterprise objects in the form values of generated urls. At the moment this component still contains some custy code that needs to be cleaned up before it can really be used, like adding the .wo and .api files ;0. Synopsis: [actionClass= anActionClass ];directActionName= aDirectActionName ;[entityNameSeparator= aSeparator ;] [relative= aBoolean ;][shouldEncryptObjectFormValues= aBoolean ;][objectsForFormValues= anArray ;] [bindingDictionary= ...
ERDDelayedObjectCreationAssignment: Assignment used to create objects on the fly. This assignment can be used in two different manner. The first is by just specifing the class name as a string, ie "foo.bar.MyClass". This will create an instance of the MyClass object. The second form allows one to specify the object to be created in a dictionary format: { className = "foo.bar.MyClass"; arguments = ( { className = "com.webobjects.appserver.WOSession"; contextKey = "session"; }, { className = "java.lang.String"; contextKey = "propertyKey"; }); } This will create an object of type MyClass using the constructor: MyClass(WOSession session, ...
ERXDefaultEditingContextDelegate: Default editing context delegate. This delegate augments the regular transaction process by adding the calling of willInsert, willUpdate or willDelete on enterprise objects that are of type ERXGenericRecord after saveChanges is called on the editing context, but before validateForSave is called on the object. These methods can give the object a last chance to modify itself before validation occurs. The second enhancement is a built in flushing of caches on subclasses of ERXGenericRecords when objects have changes merged in or are invalidated. Being able to maintain caches on enterprise objects ...
ERMailDelivery: This is the main class for sending mail with the JavaMail API. You typically don't create instances of this class since it is abstract. You should create instances of its subclasses that fitted with specifical use cases. Here is an example of its usage. ERMailDeliveryHTML mail = new ERMailDeliveryHTML (); mail.setWOComponentContent (mailPage); try { mail.newMail (); mail.setFromAddress (emailFrom); mail.setReplyToAddress (emailReplyTo); mail.setSubject (emailSubject); mail.setToAddresses (new NSArray (toEmailAddresses)); // Send the mail mail.sendMail (); } catch (Exception e) { // do something ...
ERCNPublisher: ERCNPublisher sends change notifications to other application instances via JMS server. It observes changes in the default EOObjectStoreCoordinator and creates an ERCNSnapshot object when EOEditingContext saveChanges is performed. There must be exactly one instance of the ERCNPublisher on the application and registered to the NSNotificationCenter, but its publishChange method will be executed by application's multiple worker threads concurrently. Since JMS session object is limited for serial use (single threaded use), ERCNPublisher prepares a session object per thread so that each worker threads ...
ERXFetchSpecificationBatchIterator: The goal of the fetch specification batch iterator is to have the ability to iterate through a fetch specification that might fetch one million enterprise objects. Fetching all of the objects into a singel editing context is prohibitive in the amount of memory needed and in the time taken to process all of the rows. The iterator allows one to iterate through the fetched objects only hydrating those objects need in small bite size pieces. The iterator also allows you to swap out editing contexts between calls to nextBatch , which will allow the garbage collector to collect the old editing context ...

Home | Contact Us | Privacy Policy | Terms of Service