Inherited by ERXDirectActionImage.

Public Member Functions | |
| NSArray | allObjectsForFormValues () |
| String | entityNameSeparator () |
| ERXDirectActionHyperlink (WOContext aContext) | |
| String | href () |
| EOEnterpriseObject | objectForFormValue () |
| NSArray | objectsForFormValues () |
| boolean | relative () |
| boolean | shouldEncryptObjectFormValues () |
Static Public Member Functions | |
| static String | applicationHostUrl () |
| static String | completeURLFromString (String s, WOContext c, String applicationName, boolean relative, String suffix) |
| static String | directActionHyperlink (WOContext context, boolean encryptEos, NSArray eos, String entityNameSeparator, NSDictionary encryptedDict, NSDictionary unencryptedDict, String appName, String daName, boolean relative, String suffix) |
Static Public Attributes | |
| static final String | ADAPTOR_PREFIX_MARKER = "**ADAPTOR_PREFIX**" |
| static final Logger | log = Logger.getLogger(ERXDirectActionHyperlink.class) |
| static final String | SUFFIX_MARKER = "**SUFFIX**" |
Static Private Attributes | |
| static String | _applicationHostUrl |
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
| ERXDirectActionHyperlink | ( | WOContext | aContext | ) |
Public constructor
| aContext | a context |
| NSArray allObjectsForFormValues | ( | ) |
Returns all of the objects to be encoded in the form values. Collects those bound to both 'objectsForFormValues' and 'objectForFormValue' into a single array.
| static String applicationHostUrl | ( | ) | [static] |
This returns the value stored in the system properties: ERApplicationHostURL if this isn't set then a runtime exception is thrown. This property should be of the form: http://mymachine.com
| static String completeURLFromString | ( | String | s, | |
| WOContext | c, | |||
| String | applicationName, | |||
| boolean | relative, | |||
| String | suffix | |||
| ) | [static] |
This method is useful for completing urls that are being generated in components that are going to be e-mailed to users. This method has the ability to substitute different application names which can be helpful if one application is generating the component, but the action of the url points to a different application on the same host.
| s | href string to be completed | |
| c | current context | |
| applicationName | to be substituted if ADAPTOR_PREFIX_MARKER is present | |
| relative | flag to indicate if the generated url should be relative or absolute in which case the applicationHostUrl will be used | |
| suffix | string to be substitued if the SUFFIX_MARKER string is present |
| static String directActionHyperlink | ( | WOContext | context, | |
| boolean | encryptEos, | |||
| NSArray | eos, | |||
| String | entityNameSeparator, | |||
| NSDictionary | encryptedDict, | |||
| NSDictionary | unencryptedDict, | |||
| String | appName, | |||
| String | daName, | |||
| boolean | relative, | |||
| String | suffix | |||
| ) | [static] |
| 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. This value default to the value defined in the system property er.extensions.ERXDirectActionHyperlink.EntityNameSeparator which defaults as well to the character '
_'.
| String href | ( | ) |
Generates an href for the given direct action based on all of the bindings. Currently it generates an absolute url starting with the key: ADAPTOR_PREFIX_MARKER. Before this href can be really useful it needs to be cleaned up.
| 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.
String _applicationHostUrl [static, private] |
Holds the application host url
final String ADAPTOR_PREFIX_MARKER = "**ADAPTOR_PREFIX**" [static] |
Key used to denote an adaptor prefix for a generated url string
final String SUFFIX_MARKER = "**SUFFIX**" [static] |
Key used to denote a suffix for a generated url string
1.5.8