|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.appserver.WOElement com.webobjects.appserver.WOComponent er.extensions.ERXNonSynchronizingComponent er.extensions.ERXStatelessComponent er.extensions.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=aDictionary;][unencryptedBindingDictionary=aDictionary;]
Bindings | |
actionClass | direct action class to be used |
directActionName | direct action name |
entityNameSeparator | separator used when constructiong urls with encoded enterprise objects |
relative | generates relative or absolute url |
shouldEncryptObjectFormValues | boolean flag that tells if the primary keys
of the enterprise objects should be encrypted using blowfish |
objectForFormValue | an enterprise object to be encoded in the url |
objectsForFormValues | array of enterprise objects to be encoded in the url |
bindingDictionary | adds the key-value pairs to generated url as
form values, encrypting the values with blowfish. |
unencryptedBindingDictionary | adds the key-value pairs to generated url as
form values |
Nested Class Summary |
Nested classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent._EventLoggingEnabler, WOComponent.Event |
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary | |
static String |
ADAPTOR_PREFIX_MARKER
Key used to denote an adaptor prefix for a generated url string |
static ERXLogger |
log
logging support |
static String |
SUFFIX_MARKER
Key used to denote a suffix for a generated url string |
Fields inherited from class er.extensions.ERXNonSynchronizingComponent |
_dynamicBindings |
Fields inherited from class com.webobjects.appserver.WOComponent |
_Extension, _IsEventLoggingEnabled, _keyAssociations |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
_CLASS, NullValue |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSValidation |
_CLASS |
Constructor Summary | |
ERXDirectActionHyperlink(WOContext aContext)
Public constructor |
Method Summary | |
NSArray |
allObjectsForFormValues()
Returns all of the objects to be encoded in the form values. |
static String |
applicationHostUrl()
This returns the value stored in the system properties: ERApplicationHostURL if this isn't set then a runtime exception is thrown. |
static String |
completeURLFromString(String s,
WOContext c,
String applicationName,
boolean relative,
String suffix)
This method is useful for completing urls that are being generated in components that are going to be e-mailed to users. |
static String |
directActionHyperlink(WOContext context,
boolean encryptEos,
NSArray eos,
String entityNameSeparator,
NSDictionary encryptedDict,
NSDictionary unencryptedDict,
String appName,
String daName,
boolean relative,
String suffix)
|
String |
entityNameSeparator()
Cover method to return the binding: entityNameSeparator The entity name separator is used when constructing URLs with enterprise objects encoded in the url. |
String |
href()
Generates an href for the given direct action based on all of the bindings. |
EOEnterpriseObject |
objectForFormValue()
Cover method to return the binding: objectsForFormValue This is an enterprise object to be encoded as form values. |
NSArray |
objectsForFormValues()
Cover method to return the binding: objectsForFormValues This is an array of objects to be encoded as form values. |
boolean |
relative()
Cover method to return the boolean value of the binding: relative Defaults to true . |
boolean |
shouldEncryptObjectFormValues()
Cover method to return the boolean value of the binding: shouldEncryptObjectFormValues Defaults to false . |
Methods inherited from class er.extensions.ERXStatelessComponent |
isStateless, reset, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBinding |
Methods inherited from class er.extensions.ERXNonSynchronizingComponent |
booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, dynamicBindings, intValueForBinding, localizer, objectValueForBinding, objectValueForBinding, stringValueForBinding, stringValueForBinding, synchronizesVariablesWithBindings |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ADAPTOR_PREFIX_MARKER
public static final String SUFFIX_MARKER
public static final ERXLogger log
Constructor Detail |
public ERXDirectActionHyperlink(WOContext aContext)
aContext
- a contextMethod Detail |
public String entityNameSeparator()
_'.
public boolean relative()
true
.
public boolean shouldEncryptObjectFormValues()
false
.
public NSArray objectsForFormValues()
public EOEnterpriseObject objectForFormValue()
public NSArray allObjectsForFormValues()
public String href()
public static String applicationHostUrl()
public static String directActionHyperlink(WOContext context, boolean encryptEos, NSArray eos, String entityNameSeparator, NSDictionary encryptedDict, NSDictionary unencryptedDict, String appName, String daName, boolean relative, String suffix)
public static String completeURLFromString(String s, WOContext c, String applicationName, boolean relative, String suffix)
s
- href string to be completedc
- current contextapplicationName
- to be substituted if ADAPTOR_PREFIX_MARKER
is presentrelative
- flag to indicate if the generated url should be
relative or absolute in which case the applicationHostUrl
will be usedsuffix
- string to be substitued if the SUFFIX_MARKER string
is present
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |