Uiinfrastructure API Docs  
 

RepostControl Members

RepostControl overview

Public Static Fields

HTMLINPUT_PASSTHRU_ARGS HTML Element: Pass thru arguments
HTMLINPUT_PASSTHRU_CONTROL The pass thru inputs need to be manually added in 508 mode if they are needed.
HTMLINPUT_POSTTOSELF Form element names
HTMLSUBMIT_508_POSTTOSELF HTML Element: 508 submit button
PAGE_STATUS_INVALID JF- Page status: Invalid
PAGE_STATUS_VALID JF- Page status: Valid
POSTTOSELF_ACTION_APPLY_CHANGES JF- Repost Action: Apply changes
POSTTOSELF_ACTION_CANCEL JF- Repost Action: Cancel
POSTTOSELF_ACTION_FINISH JF- Repost Action: Finish
POSTTOSELF_ACTION_GOTOPAGE JF- Repost Action: Change page
POSTTOSELF_ACTION_IN_PLACE_REFRESH RW- Repost Action: In place refresh
POSTTOSELF_ACTION_PASSTHRU JF- Repost Action: Pass thru
POSTTOSELF_ACTION_SIMPLEREPOST JF- Repost Action: Simple repost
POSTTOSELF_ACTION_UNDEFINED JF- Repost Action: Undefined
STR_MVC_CLASS_NAME Object Name for AS

Public Instance Constructors

RepostControl Constructor Initializes a new instance of the RepostControl class.

Public Instance Methods

CheckActionSecurityAndExecute This code is called by the AS Servlet each time there is a repost. First it saves the page and then performs any repost action. If the Redirect object returned is not null, the Servlet will go to the page specified by the Redirect. If the Redirect is null, the Servlet will get the current page from the AS and display it.
Create 
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetName Return the class name.
GetPageStatus Returns the current page status.
GetRepostAction Returns the current value of the repost action.
GetType (inherited from Object)Gets the Type of the current instance.
Init Inits the class with the associated model and activity space. If this method is overridden in a sub-class, this version of Init must be called as super.Init();
SetPageStatus Sets a new page status.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

m_asOwner JF- Associated Activity Space.
m_bInitialized has Init() been called properly?
m_htFormData Variables for the lifetime of the execute(). Just for convenience. (Contains all the form params from the request.)
m_model JF- Associated Model
m_nAction JF- Value of the repost action
m_nPageStatus JF- Server side validation. Current state. Note that if the state is set to invalid, all it does is it will not perform the changePage and finish actions. Also note that this framework does not provide any way to set the error/status message to display to the end user. Another framework is responsible for it. Finaly note that multiple save methods might return invalid on the same DP but we don't want to keep an array of status returned, we just need to know if invalid was returned at least once.
m_rRedirect JF- Redirect object. Used to redirect at the end of the Form.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
PerformAction Given the repost action mode, calls the associated method in the model.
PerformPassthruAction Sets the Pass thru arguments from the pass thru control into m_htFormData. And executes the Pass thru control.
SaveCurrentPage Get the current page name and call the save method on the model.
SetRedirect Sets the redirect member variable. (Used to redirect at the end of the Editor.)
SetRepostAction Get the repost action mode from the form data hashtable and set it in the member variable.

See Also

RepostControl Class | com.plumtree.uiinfrastructure.form Namespace