public class ERXDirectActionHyperlink extends ERXStatelessComponent
| Bindings | |
actionClass | direct action class to be used |
directActionName | direct action name |
entityNameSeparator | separator used when constructing 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 |
WOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
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
|
_dynamicBindings_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
ERXDirectActionHyperlink(WOContext aContext)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
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,
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(WOContext context,
boolean encryptEos,
NSArray eos,
java.lang.String entityNameSeparator,
NSDictionary encryptedDict,
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.
|
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. |
isStateless, reset, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBindingappendToResponse, invokeAction, resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings, takeValuesFromRequest_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript__valueForBinding, _associationWithName, _childTemplate, _cleanUpStatelessComponent, _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, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic static final java.lang.String ADAPTOR_PREFIX_MARKER
public static final java.lang.String SUFFIX_MARKER
public static final org.apache.log4j.Logger log
public ERXDirectActionHyperlink(WOContext aContext)
aContext - a contextpublic java.lang.String entityNameSeparator()
_'.
public boolean relative()
true.public boolean shouldEncryptObjectFormValues()
false.public NSArray objectsForFormValues()
public EOEnterpriseObject objectForFormValue()
public NSArray allObjectsForFormValues()
public java.lang.String href()
public static java.lang.String applicationHostUrl()
public static java.lang.String directActionHyperlink(WOContext context, boolean encryptEos, NSArray eos, java.lang.String entityNameSeparator, NSDictionary encryptedDict, 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,
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 presentCopyright © 2002 – 2022 Project Wonder.