Project Wonder 5.0

er.directtoweb.assignments.defaults
Class ERDDefaultConfigurationNameAssignment

java.lang.Object
  extended by com.webobjects.directtoweb.Assignment
      extended by er.directtoweb.assignments.ERDAssignment
          extended by er.directtoweb.assignments.defaults.ERDDefaultConfigurationNameAssignment
All Implemented Interfaces:
EOKeyValueArchiving, ERDComputingAssignmentInterface, Serializable
Direct Known Subclasses:
ERDConfigurationAssignment, ERDDefaultAjaxConfigurationNameAssignment, ERDTabConfigurationAssignment, ERMDDefaultConfigurationNameAssignment

public class ERDDefaultConfigurationNameAssignment
extends ERDAssignment

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
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
 
Field Summary
static NSArray _DEPENDENT_KEYS
          holds the array of keys this assignment depends upon
 
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
ERDDefaultConfigurationNameAssignment(EOKeyValueUnarchiver u)
          Public constructor
ERDDefaultConfigurationNameAssignment(String key, Object value)
          Public constructor
 
Method Summary
 Object confirmConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default confirm page configuration based on the current entity name.
 Object confirmDeleteConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default confirm delete page configuration based on the current entity name.
 Object createConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default create page configuration based on the current entity name.
 Object createEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded create page configuration based on the current entity name.
 Object createTabConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default create tab page configuration based on the current entity name.
 Object createWizardConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default create tab page configuration based on the current entity name.
static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
          Static constructor required by the EOKeyValueUnarchiver interface.
 NSArray dependentKeys(String keyPath)
          Implementation of the ERDComputingAssignmentInterface.
 Object editConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default edit page configuration based on the current entity name.
 Object editEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded edit page configuration based on the current entity name.
 Object editRelationshipConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default edit relationship page configuration based on the current entity name.
 Object editRelationshipEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default embedded edit relationship page configuration based on the current entity name.
 Object editTabConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default edit tab page configuration based on the current entity name.
protected  String entityNameForContext(com.webobjects.directtoweb.D2WContext c)
          Calculates the entity name for a given context.
 Object inspectConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default inspect page configuration based on the current entity name.
 Object inspectEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default inspect page configuration based on the current entity name.
 Object inspectTabConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default inspect tab page configuration based on the current entity name.
 Object listConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default list page configuration based on the current entity name.
 Object listEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default list page configuration based on the current entity name.
 Object queryConfigurationName(com.webobjects.directtoweb.D2WContext c)
          Generates a default query page configuration based on the current entity name.
 
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

_DEPENDENT_KEYS

public static final NSArray _DEPENDENT_KEYS
holds the array of keys this assignment depends upon

Constructor Detail

ERDDefaultConfigurationNameAssignment

public ERDDefaultConfigurationNameAssignment(EOKeyValueUnarchiver u)
Public constructor

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

ERDDefaultConfigurationNameAssignment

public ERDDefaultConfigurationNameAssignment(String key,
                                             Object value)
Public constructor

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

decodeWithKeyValueUnarchiver

public static Object decodeWithKeyValueUnarchiver(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 NSArray dependentKeys(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.

Parameters:
keyPath - to compute significant keys for.
Returns:
array of context keys this assignment depends upon.

entityNameForContext

protected String entityNameForContext(com.webobjects.directtoweb.D2WContext c)
Calculates the entity name for a given context. If the property is a relationship (meaning that destinationEntity is set) then this entity is used

Parameters:
c - a D2W context
Returns:
the current entity name for that context.

confirmConfigurationName

public Object confirmConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default confirm page configuration based on the current entity name. Default format is 'Confirm' + entity name.

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

confirmDeleteConfigurationName

public Object confirmDeleteConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default confirm delete page configuration based on the current entity name. Default format is 'ConfirmDelete' + entity name.

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

createConfigurationName

public Object createConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default create page configuration based on the current entity name. Default format is 'Create' + entity name.

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

createEmbeddedConfigurationName

public 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.

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

editConfigurationName

public Object editConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default edit page configuration based on the current entity name. Default format is 'Edit' + entity name.

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

editRelationshipConfigurationName

public Object editRelationshipConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default edit relationship page configuration based on the current entity name. Default format is 'EditRelationship' + entity name.

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

editEmbeddedConfigurationName

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

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

editRelationshipEmbeddedConfigurationName

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

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

inspectConfigurationName

public Object inspectConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default inspect page configuration based on the current entity name. Default format is 'Inspect' + entity name.

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

inspectEmbeddedConfigurationName

public Object inspectEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default inspect page configuration based on the current entity name. Default format is 'InspectEmbedded' + entity name.

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

listConfigurationName

public Object listConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default list page configuration based on the current entity name. Default format is 'List' + entity name.

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

listEmbeddedConfigurationName

public Object listEmbeddedConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default list page configuration based on the current entity name. Default format is 'ListEmbedded' + entity name.

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

queryConfigurationName

public Object queryConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default query page configuration based on the current entity name. Default format is 'Query' + entity name.

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

inspectTabConfigurationName

public Object inspectTabConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default inspect tab page configuration based on the current entity name. Default format is 'InspectTab' + entity name.

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

editTabConfigurationName

public Object editTabConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default edit tab page configuration based on the current entity name. Default format is 'EditTab' + entity name.

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

createTabConfigurationName

public Object createTabConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default create tab page configuration based on the current entity name. Default format is 'CreateTab' + entity name.

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

createWizardConfigurationName

public Object createWizardConfigurationName(com.webobjects.directtoweb.D2WContext c)
Generates a default create tab page configuration based on the current entity name. Default format is 'Create' + entity name + 'Wizard'.

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

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.