ERDDefaultActionAssignment Class Reference

Inherits er::directtoweb::assignments::ERDAssignment.

Inherited by ERMDDefaultActionAssignment.

Collaboration diagram for ERDDefaultActionAssignment:

Collaboration graph
[legend]

List of all members.

Public Member Functions

NSDictionary defaultActions (D2WContext c)
NSArray defaultLeftActions (D2WContext c)
NSArray defaultRightActions (D2WContext c)
NSArray dependentKeys (String keyPath)
 ERDDefaultActionAssignment (String key, Object value)
 ERDDefaultActionAssignment (EOKeyValueUnarchiver u)

Static Public Member Functions

static Object decodeWithKeyValueUnarchiver (EOKeyValueUnarchiver eokeyvalueunarchiver)

Static Public Attributes

static final NSArray _DEPENDENT_KEYS = new NSArray(new String[] {"isEntityPrintable", "readOnly", "isEntityInspectable", "isEntityEditable", "isEntityDeletable"})


Detailed Description

This assignment calculates default actions for the current page

Constructor & Destructor Documentation

ERDDefaultActionAssignment ( EOKeyValueUnarchiver  u  ) 

Public constructor

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

ERDDefaultActionAssignment ( String  key,
Object  value 
)

Public constructor

Parameters:
key context key
value of the assignment


Member Function Documentation

static Object decodeWithKeyValueUnarchiver ( EOKeyValueUnarchiver  eokeyvalueunarchiver  )  [static]

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

Reimplemented in ERMDDefaultActionAssignment.

NSDictionary defaultActions ( D2WContext  c  ) 

Calculates the actions names for a given context.

Parameters:
c a D2W context
Returns:
the array of array of action names for that context.

NSArray defaultLeftActions ( D2WContext  c  ) 

Calculates the default left actions names for a given context. The array is set according to whether the entity is editable, inspectable and printable.

Parameters:
c a D2W context
Returns:
array of action names for that context.

Reimplemented in ERMDDefaultActionAssignment.

NSArray defaultRightActions ( D2WContext  c  ) 

Calculates the default right actions names for a given context. The array is set according to whether the entity is deletable.

Parameters:
c a D2W context
Returns:
array of action names for that context.

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.

Implements ERDComputingAssignmentInterface.


Member Data Documentation

final NSArray _DEPENDENT_KEYS = new NSArray(new String[] {"isEntityPrintable", "readOnly", "isEntityInspectable", "isEntityEditable", "isEntityDeletable"}) [static]

holds the array of keys this assignment depends upon


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:50 2012 for Project Wonder by  doxygen 1.5.8