Project Wonder 5.0

er.modern.directtoweb.assignments.defaults
Class ERMDDefaultConfigurationNameAssignment

java.lang.Object
  extended by com.webobjects.directtoweb.Assignment
      extended by er.directtoweb.assignments.ERDAssignment
          extended by er.directtoweb.assignments.defaults.ERDDefaultConfigurationNameAssignment
              extended by er.modern.directtoweb.assignments.defaults.ERMDDefaultConfigurationNameAssignment
All Implemented Interfaces:
com.webobjects.eocontrol.EOKeyValueArchiving, ERDComputingAssignmentInterface, java.io.Serializable

public class ERMDDefaultConfigurationNameAssignment
extends ERDDefaultConfigurationNameAssignment

This assignment calculates default page configuration names for the current entity in the context.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support
 
Field Summary
protected static com.webobjects.foundation.NSDictionary keys
           
 
Fields inherited from class er.directtoweb.assignments.defaults.ERDDefaultConfigurationNameAssignment
_DEPENDENT_KEYS
 
Fields inherited from class er.directtoweb.assignments.ERDAssignment
D2WContextClassArray, log
 
Fields inherited from class com.webobjects.directtoweb.Assignment
KeyPathKey, ValueKey
 
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
_CLASS
 
Constructor Summary
ERMDDefaultConfigurationNameAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
          Public constructor
ERMDDefaultConfigurationNameAssignment(java.lang.String key, java.lang.Object value)
          Public constructor
 
Method Summary
 java.lang.Object createEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded create page configuration based on the current entity name.
static java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
          Static constructor required by the EOKeyValueUnarchiver interface.
 com.webobjects.foundation.NSArray<java.lang.String> dependentKeys(java.lang.String keyPath)
          Implementation of the ERDComputingAssignmentInterface.
 java.lang.Object editRelationshipEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded create page configuration based on the current entity name.
 java.lang.String inlineConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded create page configuration based on the current entity name.
 java.lang.Object pickEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded create page configuration based on the current entity name.
 java.lang.Object queryEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded query page configuration based on the current entity name.
 java.lang.Object selectEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded create page configuration based on the current entity name.
 
Methods inherited from class er.directtoweb.assignments.defaults.ERDDefaultConfigurationNameAssignment
confirmConfigurationName, confirmDeleteConfigurationName, createConfigurationName, createTabConfigurationName, createWizardConfigurationName, editConfigurationName, editEmbeddedConfigurationName, editRelationshipConfigurationName, editTabConfigurationName, entityNameForContext, inspectConfigurationName, inspectEmbeddedConfigurationName, inspectTabConfigurationName, listConfigurationName, listEmbeddedConfigurationName, queryConfigurationName
 
Methods inherited from class er.directtoweb.assignments.ERDAssignment
booleanContextValueForKey, fire, keyForMethodLookup, localizedTemplateStringForKeyInContext, localizedValueForKeyInContext, localizedValueForKeyWithDefaultInContext, localizerForContext, logDeprecatedMessage
 
Methods inherited from class com.webobjects.directtoweb.Assignment
encodeWithKeyValueArchiver, keyPath, toString, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

keys

protected static final com.webobjects.foundation.NSDictionary keys
Constructor Detail

ERMDDefaultConfigurationNameAssignment

public ERMDDefaultConfigurationNameAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
Public constructor

Parameters:
u - key-value unarchiver used when unarchiving from rule files.

ERMDDefaultConfigurationNameAssignment

public ERMDDefaultConfigurationNameAssignment(java.lang.String key,
                                              java.lang.Object value)
Public constructor

Parameters:
key - context key
value - of the assignment
Method Detail

decodeWithKeyValueUnarchiver

public static java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
Static constructor required by the EOKeyValueUnarchiver interface. If this isn't implemented then the default behavior is to construct the first super class that does implement this method. Very lame.

Parameters:
eokeyvalueunarchiver - to be unarchived
Returns:
decoded assignment of this class

dependentKeys

public com.webobjects.foundation.NSArray<java.lang.String> dependentKeys(java.lang.String keyPath)
Implementation of the ERDComputingAssignmentInterface. This assignment depends upon the context keys: "entity.name" and "object.entityName". This array of keys is used when constructing the significant keys for the passed in keyPath.

Specified by:
dependentKeys in interface ERDComputingAssignmentInterface
Overrides:
dependentKeys in class ERDDefaultConfigurationNameAssignment
Parameters:
keyPath - to compute significant keys for.
Returns:
array of context keys this assignment depends upon.

queryEmbeddedConfigurationName

public java.lang.Object queryEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default embedded query page configuration based on the current entity name. Default format is 'EditEmbedded' + entity name.

Parameters:
c - current D2W context
Returns:
default edit page configuration name

createEmbeddedConfigurationName

public java.lang.Object createEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default embedded create page configuration based on the current entity name. Default format is 'CreateEmbedded' + entity name.

Overrides:
createEmbeddedConfigurationName in class ERDDefaultConfigurationNameAssignment
Parameters:
c - current D2W context
Returns:
default edit page configuration name

selectEmbeddedConfigurationName

public java.lang.Object selectEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default embedded create page configuration based on the current entity name. Default format is 'SelectEmbedded' + entity name.

Parameters:
c - current D2W context
Returns:
default edit page configuration name

pickEmbeddedConfigurationName

public java.lang.Object pickEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default embedded create page configuration based on the current entity name. Default format is 'PickEmbedded' + entity name.

Parameters:
c - current D2W context
Returns:
default edit page configuration name

editRelationshipEmbeddedConfigurationName

public java.lang.Object editRelationshipEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default embedded create page configuration based on the current entity name. Default format is 'EditRelationshipEmbedded' + entity name.

Overrides:
editRelationshipEmbeddedConfigurationName in class ERDDefaultConfigurationNameAssignment
Parameters:
c - current D2W context
Returns:
default edit page configuration name

inlineConfigurationName

public java.lang.String inlineConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default embedded create page configuration based on the current entity name. Default format is 'CreateEmbedded' + entity name.

Parameters:
c - current D2W context
Returns:
default edit page configuration name

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.