public class ERXDirectActionHyperlink extends ERXStatelessComponent
Name | Description |
---|---|
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.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._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.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
static String |
ADAPTOR_PREFIX_MARKER
Key used to denote an adaptor prefix for a generated url string
|
static String |
SUFFIX_MARKER
Key used to denote a suffix for a generated url string
|
_dynamicBindings
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_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 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 . |
isStateless, reset
appendToResponse, 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, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
public static final String ADAPTOR_PREFIX_MARKER
public static final String SUFFIX_MARKER
public ERXDirectActionHyperlink(WOContext aContext)
aContext
- a contextpublic 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 presentCopyright © 2002 – 2024 Project Wonder.