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

Constructor Detail

ERDDefaultConfigurationNameAssignment

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

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

ERDDefaultConfigurationNameAssignment

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

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

entityNameForContext

protected java.lang.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 java.lang.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 java.lang.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 java.lang.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 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.

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

editConfigurationName

public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.