|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.extensions.eof.ERXEOEncodingUtilities
public class ERXEOEncodingUtilities
Properties | |
er.extensions.ERXEOEncodingUtilities.EntityNameSeparator | er.extensions.ERXEOEncodingUtilities.EntityNameSeparator |
er.extensions.ERXEOEncodingUtilities.SpecifySeparatorInURL | er.extensions.ERXEOEncodingUtilities.SpecifySeparatorInURL |
Field Summary | |
---|---|
protected static com.webobjects.foundation.NSMutableDictionary |
_encodedEntityNames
This dictionary contains the encoded entity names used in the defaultGroup |
static java.lang.String |
EncodedEntityNameKey
Key used in EOModeler to specify the encoded (or abbreviated) entity named used when encoding an enterprise-object is an url. |
static org.apache.log4j.Logger |
log
logging support |
Constructor Summary | |
---|---|
ERXEOEncodingUtilities()
|
Method Summary | |
---|---|
static com.webobjects.foundation.NSArray |
decodeEnterpriseObjectsFromFormValues(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.foundation.NSDictionary values)
Decodes all of the objects for a given set of form values in the given editing context. |
static com.webobjects.foundation.NSDictionary |
dictionaryOfFormValuesForEnterpriseObjects(com.webobjects.foundation.NSArray eos,
java.lang.String separator,
boolean encrypt)
Constructs the form values dictionary by first calling the method encodeEnterpriseObjectsPrimaryKeyForUrl
and then using the results of that to construct the dictionary. |
protected static com.webobjects.foundation.NSDictionary |
encodedEntityNames()
This method constructs a dictionary with encoded entity names as keys and entity names as values. |
static java.lang.String |
encodeEnterpriseObjectPrimaryKeyForUrl(com.webobjects.eocontrol.EOEnterpriseObject eo,
java.lang.String seperator,
boolean encrypt)
Simple cover method that calls the method:
encodeEnterpriseObjectsPrimaryKeyForUrl with
an array containing the single object passed in. |
static java.lang.String |
encodeEnterpriseObjectsPrimaryKeyForUrl(com.webobjects.foundation.NSArray eos,
java.lang.String separator,
boolean encrypt)
Encodes an array of enterprise objects for use in a url. |
static com.webobjects.eocontrol.EOEnterpriseObject |
enterpriseObjectForEntityNamedFromFormValues(com.webobjects.eocontrol.EOEditingContext ec,
java.lang.String entityName,
com.webobjects.foundation.NSDictionary formValues)
Returns the enterprise object fetched with decoded formValues from
entityName . |
static com.webobjects.foundation.NSArray |
enterpriseObjectsForEntityNamedFromFormValues(com.webobjects.eocontrol.EOEditingContext ec,
java.lang.String entityName,
com.webobjects.foundation.NSDictionary formValues)
Returns the enterprise objects fetched with decoded formValues from
entityName . |
static com.webobjects.foundation.NSArray |
enterpriseObjectsFromFormValues(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.foundation.NSDictionary formValues)
Deprecated. use decodeEnterpriseObjectsFromFormValues instead |
static java.lang.String |
entityNameDecode(java.lang.String encodedName)
Decodes the encoded entity name. |
static java.lang.String |
entityNameEncode(com.webobjects.eocontrol.EOEnterpriseObject eo)
This method encodes the entity name of the enterprise object by searching in the default model group whether it can find the key EncodedEntityNameKey in the user info dictionary. |
static java.lang.String |
entityNameSeparator()
|
static com.webobjects.foundation.NSDictionary |
groupedEnterpriseObjectsFromFormValues(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.foundation.NSDictionary formValues)
Returns enterprise objects grouped by entity name. |
static void |
init()
Class initialization |
static boolean |
isSpecifySeparatorInURL()
|
static void |
setEntityNameSeparator(java.lang.String entityNameSeparator)
|
static void |
setSpecifySeparatorInURL(boolean specifySeparatorInURL)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger log
public static final java.lang.String EncodedEntityNameKey
protected static com.webobjects.foundation.NSMutableDictionary _encodedEntityNames
Constructor Detail |
---|
public ERXEOEncodingUtilities()
Method Detail |
---|
public static void init()
public static void setSpecifySeparatorInURL(boolean specifySeparatorInURL)
public static boolean isSpecifySeparatorInURL()
public static void setEntityNameSeparator(java.lang.String entityNameSeparator)
public static java.lang.String entityNameSeparator()
public static com.webobjects.foundation.NSArray enterpriseObjectsFromFormValues(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.foundation.NSDictionary formValues)
decodeEnterpriseObjectsFromFormValues
instead
public static com.webobjects.foundation.NSDictionary groupedEnterpriseObjectsFromFormValues(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.foundation.NSDictionary formValues)
encodeEnterpriseObjectsPrimaryKeyForUrl
- Parameters:
ec
- the editing context to fetch the objects fromformValues
- dictionary where the values are an
encoded representation of the primary key values in either
cleartext or encrypted format.
- Returns:
- enterprise objects grouped by entity name
public static com.webobjects.eocontrol.EOEnterpriseObject enterpriseObjectForEntityNamedFromFormValues(com.webobjects.eocontrol.EOEditingContext ec, java.lang.String entityName, com.webobjects.foundation.NSDictionary formValues)
formValues
from
entityName
.
ec
- the editing context to fetch the object fromentityName
- the entity to fetch the object fromformValues
- dictionary where the values are an
encoded representation of the primary key values in either
cleartext or encrypted format.
public static com.webobjects.foundation.NSArray enterpriseObjectsForEntityNamedFromFormValues(com.webobjects.eocontrol.EOEditingContext ec, java.lang.String entityName, com.webobjects.foundation.NSDictionary formValues)
formValues
from
entityName
.
ec
- the editing context to fetch the objects fromentityName
- the entity to fetch the objects fromformValues
- dictionary where the values are an
encoded representation of the primary key values in either
cleartext or encrypted format.
public static java.lang.String entityNameEncode(com.webobjects.eocontrol.EOEnterpriseObject eo)
eo
- the enterprise object
protected static final com.webobjects.foundation.NSDictionary encodedEntityNames()
public static java.lang.String entityNameDecode(java.lang.String encodedName)
encodedName
- the encode name.
public static com.webobjects.foundation.NSDictionary dictionaryOfFormValuesForEnterpriseObjects(com.webobjects.foundation.NSArray eos, java.lang.String separator, boolean encrypt)
encodeEnterpriseObjectsPrimaryKeyForUrl
and then using the results of that to construct the dictionary.
eos
- array of enterprise objects to be encoded in the urlseparator
- to be used to separate entity namesencrypt
- flag to determine if the primary key
of the objects should be encrypted.
public static java.lang.String encodeEnterpriseObjectPrimaryKeyForUrl(com.webobjects.eocontrol.EOEnterpriseObject eo, java.lang.String seperator, boolean encrypt)
encodeEnterpriseObjectsPrimaryKeyForUrl
with
an array containing the single object passed in.
eo
- enterprise object to encode in a url.seperator
- to be used for the entity name.encrypt
- flag to determine if the primary key
of the object should be encrypted.
public static java.lang.String encodeEnterpriseObjectsPrimaryKeyForUrl(com.webobjects.foundation.NSArray eos, java.lang.String separator, boolean encrypt)
1.1
and 1.2
are the primary key values. Key values
follow alphabetical order for their attribute names, just like
ERXEOControlUtilities.primaryKeyArrayForObject
.
Note: At the moment the attribute value separator cannot be changed.
eos
- array of enterprise objects to be encoded in the urlseparator
- to be used between the entity name and a sequence numberencrypt
- indicates if the primary keys of the objects should be encrypted
public static com.webobjects.foundation.NSArray decodeEnterpriseObjectsFromFormValues(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.foundation.NSDictionary values)
encodeEnterpriseObjectsPrimaryKeyForUrl
.
ec
- editingcontext to fetch the objects fromvalues
- form value dictionary where the values are an
encoded representation of the primary key values in either
cleartext or encrypted format.
|
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 |