|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.ERXComponent
er.extensions.components.ERXNonSynchronizingComponent
er.extensions.components.ERXStatelessComponent
er.extensions.components.ERXDirectActionHyperlink
public class 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/interfaces inherited from class com.webobjects.appserver.WOComponent |
---|
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException |
Field Summary | |
---|---|
static java.lang.String |
ADAPTOR_PREFIX_MARKER
Key used to denote an adaptor prefix for a generated url string |
static org.apache.log4j.Logger |
log
logging support |
static java.lang.String |
SUFFIX_MARKER
Key used to denote a suffix for a generated url string |
Fields inherited from class er.extensions.components.ERXComponent |
---|
_dynamicBindings |
Fields inherited from class com.webobjects.appserver.WOComponent |
---|
_Extension, _IsEventLoggingEnabled, _keyAssociations |
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.NSKeyValueCoding |
---|
NullValue |
Fields inherited from interface com.webobjects.foundation.NSValidation |
---|
_CLASS |
Constructor Summary | |
---|---|
ERXDirectActionHyperlink(com.webobjects.appserver.WOContext aContext)
Public constructor |
Method Summary | |
---|---|
com.webobjects.foundation.NSArray |
allObjectsForFormValues()
Returns all of the objects to be encoded in the form values. |
static java.lang.String |
applicationHostUrl()
This returns the value stored in the system properties: ERApplicationHostURL if this isn't set then a runtime exception is thrown. |
static java.lang.String |
completeURLFromString(java.lang.String s,
com.webobjects.appserver.WOContext c,
java.lang.String applicationName,
boolean relative,
java.lang.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 java.lang.String |
directActionHyperlink(com.webobjects.appserver.WOContext context,
boolean encryptEos,
com.webobjects.foundation.NSArray eos,
java.lang.String entityNameSeparator,
com.webobjects.foundation.NSDictionary encryptedDict,
com.webobjects.foundation.NSDictionary unencryptedDict,
java.lang.String appName,
java.lang.String daName,
boolean relative,
java.lang.String suffix)
|
java.lang.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. |
java.lang.String |
href()
Generates an href for the given direct action based on all of the bindings. |
com.webobjects.eocontrol.EOEnterpriseObject |
objectForFormValue()
Cover method to return the binding: objectsForFormValue This is an enterprise object to be encoded as form values. |
com.webobjects.foundation.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.components.ERXStatelessComponent |
---|
isStateless, reset, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBinding |
Methods inherited from class er.extensions.components.ERXNonSynchronizingComponent |
---|
appendToResponse, invokeAction, resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings, takeValuesFromRequest |
Methods inherited from class com.webobjects.appserver.WOComponent |
---|
_associationWithName, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ADAPTOR_PREFIX_MARKER
public static final java.lang.String SUFFIX_MARKER
public static final org.apache.log4j.Logger log
Constructor Detail |
---|
public ERXDirectActionHyperlink(com.webobjects.appserver.WOContext aContext)
aContext
- a contextMethod Detail |
---|
public java.lang.String entityNameSeparator()
_'.
public boolean relative()
true
.
public boolean shouldEncryptObjectFormValues()
false
.
public com.webobjects.foundation.NSArray objectsForFormValues()
public com.webobjects.eocontrol.EOEnterpriseObject objectForFormValue()
public com.webobjects.foundation.NSArray allObjectsForFormValues()
public java.lang.String href()
public static java.lang.String applicationHostUrl()
public static java.lang.String directActionHyperlink(com.webobjects.appserver.WOContext context, boolean encryptEos, com.webobjects.foundation.NSArray eos, java.lang.String entityNameSeparator, com.webobjects.foundation.NSDictionary encryptedDict, com.webobjects.foundation.NSDictionary unencryptedDict, java.lang.String appName, java.lang.String daName, boolean relative, java.lang.String suffix)
public static java.lang.String completeURLFromString(java.lang.String s, com.webobjects.appserver.WOContext c, java.lang.String applicationName, boolean relative, java.lang.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: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |