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 |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
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.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
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
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
Constructor and Description |
---|
ERXDirectActionHyperlink(com.webobjects.appserver.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,
com.webobjects.appserver.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(com.webobjects.appserver.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.
|
com.webobjects.eocontrol.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(com.webobjects.appserver.WOContext aContext)
aContext
- a contextpublic String entityNameSeparator()
_'.
public boolean relative()
true
.public boolean shouldEncryptObjectFormValues()
false
.public NSArray objectsForFormValues()
public com.webobjects.eocontrol.EOEnterpriseObject objectForFormValue()
public NSArray allObjectsForFormValues()
public String href()
public static String applicationHostUrl()
public static String directActionHyperlink(com.webobjects.appserver.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, com.webobjects.appserver.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 – 2020 Project Wonder.