Uiinfrastructure API Docs  
 

AApprovalModel Members

AApprovalModel overview

Public Instance Constructors

icon AApprovalModel Constructor Initializes a new instance of the AApprovalModel class.

Public Instance Fields

iconisReadAccessAvailable (inherited from EditorModel) Setting to allow read access to all objects *
iconm_asOwner (inherited from EditorModel) Associated Activity Space

Public Instance Methods

iconAddColumnsHeaderForEachItem 
iconCancel (inherited from EditorModel) Implement some code to execute when the user clicks on "Cancel".
iconCheckEditorAccessAndStart (inherited from EditorModel) Implements some actions to perform on start. Use the Editor Type if needed.
iconCleanupAllData (inherited from EditorModel) 
iconCleanupTempData 
iconClearCacheOverloaded.  
iconCreate (inherited from EditorModel) This method is used by the ASManager to return new instances of managed objects.
iconDisplayDescriptionImmediatelyUnderTitle 
iconDisplayItemComment 
iconDisplayItemTypeHeaderAboveActionbar 
iconDisplayViewItems 
iconDoSortDate 
iconDoSortName 
iconDoSortSubmittedBy 
iconDoTaskAfterStore (inherited from EditorModel) That method contains the code that should be executed just after the object has been stored in the DB.
iconDoTaskBeforeStore (inherited from EditorModel) That method contains the code that should be executed just before the object is stored in the DB.
iconDoTaskOnChangePage (inherited from EditorModel) This method can be implemented by classes extending this one. It will be executed each time the user changes page on the left navigation menu.
iconDoTaskOnComeBackFromSubEditor (inherited from EditorModel) This method will be called when you come back to the main Editor from a sub Editor.
iconDoTaskOnStartEditor (inherited from EditorModel) That method contains the code that should be executed just after the object has been initialized when the new editor is started.
iconEquals (inherited from Object)Determines whether the specified Object is equal to the current Object.
iconFinish (inherited from EditorModel) Implement some code to execute when the user clicks on "Finish".
iconGetAccessToEditorPriviledges (inherited from EditorModel) Gets the Read Access to editors without Edit permissions in the portal
iconGetAddComment 
iconGetAllCachedItems 
iconGetAllowClearingOfApprovalRequests 
iconGetAllowClearingOfItem 
iconGetCloseOnDone (inherited from EditorModel) Returns the CloseOnDone flag.
iconGetCurrentPageIndex Call this method to obtain the index of the page being viewed for the given ApprovalItemType

iconGetCurrentRepostAction (inherited from EditorModel) Returns the current value of the repost action.
iconGetCurrentType Call this method to obtain the ApprovalItemType currently being viewed.

iconGetDefaultItemType Call this method to determine the default ApprovalItemType displayed by the view.

iconGetDeleteOnCancel (inherited from EditorModel) Returns the DeleteOnCancel flag. For sub Editors only: this flag will determine if the Editor should be deleted from the list of sub Editors on cancel.
iconGetDisableRadioSelection 
iconGetDisplayHeadersForItemTypesWithNoItems 
iconGetDisplayInstances Concrete subclasses must implement this method to return a boolean value indicating whether instance information is displayed for the specified type.

The DocumentApprovalModel class for example, returns true. This is because each document, being an item, consists of one or more copies existing in various portal folders, or INSTANCES. The ObjectApprovalModel, however, return false for this method.

iconGetDisplaySelectAllButton 
iconGetDisplayStatusColumn 
iconGetDisplayTypeHeader Concrete subclasses must implement this method to return a boolean indicating whether or not a header banner should be displayed for the specified type.

iconGetEditorType (inherited from EditorModel) Returns the Editor Type (see EditorStartControl for constant names).
iconGetEmptyTypeSectionSubTitle Concrete subclasses must implement this method to return a string that is displayed in sections containg no items awaiting approval.

iconGetEnableApplyButton (inherited from EditorModel) Returns true if the apply button should be displayed.
iconGetEnableCancelButton (inherited from EditorModel) Returns true if the current user is able to cancel the Editor.
iconGetHashCode (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.
iconGetHideLeftNav (inherited from EditorModel) Returns the DeleteOnCancel flag. For sub Editors only: this flag will determine if the Editor should be deleted from the list of sub Editors on cancel.
iconGetHighItemIndexForCurrentPage Call this method to obtain the index of the last item on the current page for a specific ApprovalItemType.

iconGetHighItemIndexForGivenPage 
iconGetIsEditorReadOnly (inherited from EditorModel) Returns true if the current user only has read access to this Editor. (can be true in Edit mode only)
iconGetItemDescriptor Call this method to obtain a specific AItemDescriptor object.

If this ItemDescriptor is not in the internal cache, the server will not be contacted.
iconGetItemDescriptors Call this method to obtain an enumeration of AItemDescriptor objects.

Included AItemDescriptor objects will be those object existing on the currently viewed page of item descriptors.

iconGetItemID 
iconGetLowItemIndexForCurrentPage Call this method to obtain the index of the first item on the current page for a specific ApprovalItemType.

iconGetLowItemIndexForGivenPage 
iconGetName Concrete subclasses must implement this method to return the name of the model.

iconGetNoItemsDescription 
iconGetNumPagesAvailable 
iconGetPageSize Get the size of a page. This is the maximum number of items awaiting approval displayed.
iconGetRedirectAfterFinish (inherited from EditorModel) Returns the Redirect object (this is were we need to go at the end of the Editor). By default this is going to the previous AS (the one that opened this one). But Editors can override that method if they need to redirect somewhere else.
iconGetSubTitle Concrete subclasses must implement this method to return the subtitle. This string is displayed in a banner at the top of the view.
iconGetSupportedItemTypes Concrete subclasses must implement this method to return an XPArrayList of those ItemTypes that are supporeted by the model.

iconGetTitle Concrete subclasses must implement this method to return the title. This string is displayed in a banner at the top of the view.
iconGetType (inherited from Object)Gets the Type of the current instance.
iconGetTypeCount Call this method to obtain the count of items awaiting approval of the specified type.

iconGetUserHasAccessToEditor (inherited from EditorModel) Returns true if the current user has access to this Editor. (If false the user will be redirected.)
iconGotoPage 
iconInit (inherited from EditorModel) Inits the Model with the Activity Space.
iconInternalGetItemDescriptors Concrete subclasses must implement this method to return an XPArrayList of AItemDescriptor objects.

iconInternalGetTypeCount Concrete subclasses must implement this method to return the count of specified ApprovalItemType. This is the total number of object of the specified type, visible to the current user, awaiting approval.

iconIsDateSortable 
iconIsDescriptionEditable 
iconIsNameSortable 
iconIsNextPageAvailable Call this method to determine if there is another page of items of a given type.
iconIsPageAvailable 
iconIsPreviousPageAvailable Call this method to determine if there is a previous page of items of a given type.
iconIsSubmittedBySortable 
iconIsTitleEditable 
iconNextPage Call this method to move the view to the next page of items of the specified type. If there is no next page available, calling this method will do nothing.
iconPreviousPage Call this method to move the view to the previous page of items of the specified type. If there is no previous page available, calling this method will do nothing.
iconSavePage (inherited from EditorModel) Calls the right save function according to the page name passed in argument.
iconSetAddComment 
iconSetCloseOnDone (inherited from EditorModel) To tell the framework to close the window on finish or cancel.
iconSetCurrentPageIndex Call this method to set the index of the page being viewed of the given ApprovalItemType.

If the index passed is not within the valid range, then GetLowItemIndexForCurrentPage() and GetHighItemIndexForCurrentPage() will return correct values for either the first or last valid page.

iconSetCurrentType Call this method to set the type currently being viewed. Only one type of item may be viewed at a given time. This is intended to reduce stress on the portal server.

iconSetDeleteOnCancel (inherited from EditorModel) Sets the DeleteOnCancel flag. For sub Editors only: this flag will determine if the Editor should be deleted from the list of sub Editors on cancel.
iconSetDoSortDate 
iconSetDoSortName 
iconSetDoSortSubmittedBy 
iconSetEditorType (inherited from EditorModel) Sets the Editor Type. (see EditorStartControl for constant names)
iconSetEnableApplyButton (inherited from EditorModel) Enables or disables the apply button next to the finish button.
iconSetHideLeftNav (inherited from EditorModel) Sets the m_bHideLeftNav flag. If this flag is set to true, the left navigation will not be displayed.
iconSetItemID 
iconSetNoItemsDescription 
iconSetPageHighIndex set the size of a page. This is the maximum number of items awaiting approval displayed.
iconSetPageLowIndex set the low item index of a page. This is the index of the first item to be displayed on a page.
iconSetPageStatus (inherited from EditorModel) Sets a new Page status.
iconSetUserHasAccessToEditor (inherited from EditorModel) Sets a new value for the m_bUserHasAccessToEditor flag.
iconToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

iconm_bCloseOnDone (inherited from EditorModel) JF- If this is true, the framework will close the window on finish and cancel.
iconm_bDeleteOnCancel (inherited from EditorModel) JF- This is for sub editors. The first time we access the Editor, if the user clicks on cancel, we want to delete it from the sub Editor list.
iconm_bEnableApplyButton (inherited from EditorModel) JF- The Apply button next to the finish button is optional
iconm_bEnableCancelButton (inherited from EditorModel) JF- If the user should be able to cancel the editor.
iconm_bHideLeftNav (inherited from EditorModel) JF- This is to hide the left navigation
iconm_bIsEditorReadOnly (inherited from EditorModel) JF- If the user only has read access to the Editor.
iconm_bUserHasAccessToEditor (inherited from EditorModel) JF- Is true if the current user has access to this Editor.
iconm_nEditorType (inherited from EditorModel) JF- This is the Editor type. Constants for that variable are in EditorStartControl. This is mainly to know if it's create or edit mode.

Protected Instance Methods

iconFinalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
iconMemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

AApprovalModel Class | com.plumtree.uiinfrastructure.approval Namespace