com.centrasite.control.ext.util
Class AbstractItemEditorAdapter

java.lang.Object
  extended by com.softwareag.cis.server.Adapter
      extended by com.softwareag.cis.plugin.adapter.util.CommonAdapter
          extended by com.centrasite.control.adapters.BaseAdapter
              extended by com.centrasite.control.ext.util.AbstractItemEditorAdapter
All Implemented Interfaces:
com.centrasite.control.Constants, com.centrasite.control.discovery.DetailTabContext, ItemEditorAdapter, com.softwareag.cis.server.IAdapter, com.softwareag.cis.server.IServerLogConstants, com.softwareag.cis.util.IControlStatusConstants
Direct Known Subclasses:
DetailViewAdapter, SampleItemEditorAdapter

public class AbstractItemEditorAdapter
extends BaseAdapter
implements ItemEditorAdapter, com.centrasite.control.discovery.DetailTabContext


Nested Class Summary
 class AbstractItemEditorAdapter.PromptForLockWait
           
 class AbstractItemEditorAdapter.SaveItemCommand
           
 
Nested classes/interfaces inherited from class com.centrasite.control.adapters.BaseAdapter
BaseAdapter.CloseActivityCommand
 
Nested classes/interfaces inherited from class com.softwareag.cis.server.Adapter
com.softwareag.cis.server.Adapter.CISAddons, com.softwareag.cis.server.Adapter.FrameMessage, com.softwareag.cis.server.Adapter.ICISStyleAddon, com.softwareag.cis.server.Adapter.LivingPopupFunctions
 
Field Summary
 
Fields inherited from class com.softwareag.cis.server.Adapter
DT_BARS, DT_LINES, DT_POINTS, FIELD_BOTHIDANDTEXT, FIELD_ONLYID, FIELD_ONLYTEXT, MLMSG, MT_ERROR, MT_ERROR_MULTILINE, MT_SUCCESS, MT_SUCCESS_MULTILINE, MT_WARNING, MT_WARNING_MULTILINE, POP_POS_CLICK
 
Fields inherited from interface com.centrasite.control.ext.util.ItemEditorAdapter
rcs_id
 
Fields inherited from interface com.centrasite.control.discovery.DetailTabContext
rcs_id
 
Fields inherited from interface com.centrasite.control.Constants
ADD_APPLICATION_ADAPTER, ADD_APPLICATION_LAYOUT_PAGE, ADD_ASSOCIATION_ADAPTER, ADD_ASSOCIATION_PAGE_LAYOUT, ADD_BULK_VERSION_ADAPTER, ADD_CATEGORY_ADAPTER, ADD_CATEGORY_PAGE, ADD_CLASSIFICATION_ADAPTER, ADD_NEW_VERSION_ADAPTER, ADD_USERS_GROUPS_ADAPTER, ADD_USERS_GROUPS_LAYOUT_PAGE, ADV_SEARCH_ADAPTER, ADVANCED_EXPORT_OPTION_ADAPTER, ADVANCED_EXPORT_OPTION_PAGE, ADVANCED_IMPORT_OPTION_ADAPTER, ADVANCED_IMPORT_OPTION_PAGE, APPLICABLE_TO_OBJECT_TYPES_ADAPTER, APPLICABLE_TO_OBJECT_TYPES_LAYOUT_PAGE, ASSOCIATION_TAB_ADAPTER, ASSOCIATIONS_LAYOUT_PAGE, ASSOCIATIONS_TAB_ADAPTER, ASSOCIATIONS_TABLE_LAYOUT, AUDITABLE_TAB_ADAPTER, AUDITABLE_TABLE_LAYOUT, BROWSE_ADAPTER, BROWSE_BY_COLUMN_ADAPTER, BROWSE_BY_COLUMNS_PAGE_F, BROWSE_BY_PAGE_F, BROWSE_PAGE, CALLING_XPDL_ADAPTER, CENTRASITE_ADDEXTERNALCLASSIFICATIONSLOT_ICO, CENTRASITE_ADDSLOT_ICO, CENTRASITE_ALERT_ICO, CENTRASITE_ARROW_ICON, CENTRASITE_COMMUNITY_URL, CENTRASITE_DELETESLOT_ICO, CENTRASITE_DEV_COMMUNITY_URL, CENTRASITE_EMAIL_NOTIFCATION_ICO, CENTRASITE_FAV_ICO, CENTRASITE_FAVOURITE_ENTRY_ASSET_I_CONSUME_ICO, CENTRASITE_FAVOURITE_ENTRY_ASSET_I_PROVIDE_ICO, CENTRASITE_FAVOURITE_ENTRY_DEFAULT_TYPE_ICO, CENTRASITE_FAVOURITE_ENTRY_LIST_ICO, CENTRASITE_FAVOURITE_ENTRY_SAVED_SEARCH_ICO, CENTRASITE_FAVOURITE_ENTRY_SAVED_XQUERY_SEARCH_ICO, CENTRASITE_FAVOURITE_ENTRY_SMART_LIST_CLASSIFICATION_SCHEME_ICO, CENTRASITE_FAVOURITE_ENTRY_SMART_LIST_CONCEPT_ICO, CENTRASITE_FAVOURITE_ENTRY_SMART_LIST_ICO, CENTRASITE_FAVOURITE_LEFT_ICO, CENTRASITE_FAVOURITE_RIGHT_ICO, CENTRASITE_FILE_ICO, CENTRASITE_GROUP_ICO, CENTRASITE_HTML_ICO, CENTRASITE_MOVEDOWN_ICO, CENTRASITE_MOVEUP_ICO, CENTRASITE_NEW_ICO, CENTRASITE_ONLINE_DOCUMENTATION_URL, CENTRASITE_PDF_ICO, CENTRASITE_POWERPOINT_ICO, CENTRASITE_REG_ICO, CENTRASITE_REMOVE_ICO, CENTRASITE_REMOVESLOT_ICO, CENTRASITE_REP_ICO, CENTRASITE_REVERT_ICO, CENTRASITE_RTL_ARROW_ICON, CENTRASITE_SAVE_ICO, CENTRASITE_USER_ICO, CENTRASITE_USERROLE_ICO, CENTRASITE_WORD_ICO, CENTRASITE_XLS_ICO, CENTRASITE_XML_ICO, CHANGE_LCM_STATE_ADAPTER, CHANGE_ORG_ADAPTER, CHANGE_ORG_PAGE, CHANGE_OWNER_ADAPTER, CHANGE_OWNER_LOG, CHANGE_OWNER_LOG_ADAPTER, CHANGE_OWNER_PAGE, CHANGE_PASSWORD_ADAPTER, CHANGE_PASSWORD_PAGE_F, CHANGE_PROVIDING_ORG, CHANGE_PROVIDING_ORG_ADAPTER, CLASSIFICATIONS_TAB_ADAPTER, CLASSIFICATIONS_TAB_LAYOUT_PAGE, COLUMNS_PAGE_F, COMPUTED_PROFILE_TAB_ADAPTER, CONSUMERS_PAGE_LAYOUT, CONSUMERS_TAB_ADAPTER, COPY_ASSET, COPY_ASSET_ADAPTER, CREATE, CREATE_ASSET_ADAPTER, CREATE_EXTERNAL_CLASSIFICATION_ADAPTER, CREATE_EXTERNAL_CLASSIFICATION_PAGE_FULL, CREATE_FAVORITE_ADAPTER, CREATE_FAVORITE_PAGE_FULL, CREATE_ROLE_ADAPTER, CREATE_ROLE_PAGE_F, CREATE_TYPE_ADAPTER, CREATE_TYPE_WIZARD_PAGE_FULL, CUSTOM_PROFILE_TAB_ADAPTER, DISPLAY, DOCUMENT_URL_CONTENT, DOWNLOAD_DOCUMENTS_ADAPTER, DOWNLOAD_DOCUMENTS_CONFIRM_PAGE, EDIT, EDIT_ASSET_ADAPTER, EDIT_ASSET_LAYOUT_PAGE, EDIT_CATEGORY_ADAPTER, EDIT_CATEGORY_PAGE, EDIT_PERMISSIONS_ADAPTER, EDIT_PERMISSIONS_PAGE, EDIT_TAXONOMY_ADAPTER, EDIT_USER_INFO_ADAPTER, EDITION_ACTIVESOA, EDITION_COMMUNITY, EDITION_ENTERPRISE, EDITION_UNKNOWN, EP_ADD_IMPORT_EXTENSION, EP_ADD_REPORT_COLUMN, EP_ADD_ROW_TO_MY_NOTIFICATIONS, EP_ASSETTYPETOPIC_ID, EP_ASSOC_NAVIGATOR_NODE_DECORATOR, EP_ATTACH_DOC_COMMAND, EP_BROWSETOPIC_ID, EP_DETAIL_VIEW_TAB, EP_DOWNLOAD_DOC_COMMAND, EP_FAVORITE_ID, EP_GLOBAL_COMMAND, EP_ITEM_BULK_COMMAND, EP_ITEM_COMMAND, EP_ITEM_EDITOR, EP_ORGANIZATIONTOPIC_ID, EP_REG_OBJ_PROPERTY, EP_REPLACE_ITEM_COMMAND, EP_REPORTS_ID, EP_SEARCH_PREDICATE, EP_SEARCHTOPIC_ID, EP_SUBSCRIPTIONS_ID, EP_SUPPORTINGDOCUMENTSTOPIC_ID, EP_SUPPRESS_REG_OBJ_COMMAND, EP_SUPPRESS_REG_OBJ_PROPERTY, EP_SUPPRESS_REPORT_COLUMN, EP_TAXONOMIES_ID, EP_TOPIC_ITEMS, EP_TOPIC_ITEMS_PROP_TOPIC, EP_USERMANAGEMENTTOPIC_ID, EP_WELCOME_ID, EXPORT_ITEMS_POPUP_LOG_VIEW_PAGE_FULL, EXPORT_LOG_ADAPTER, EXPORT_ORG_REGISTRY_OBJECTS_ADAPTER, EXPORT_ORG_REGISTRY_OBJECTS_PAGE_F_POPUP, EXPORT_ORGANIZATION, EXPORT_ORGANIZATION_ADAPTER, EXPORT_OWNER, EXPORT_OWNER_ADAPTER, EXPORT_REGISTRY_OBJECTS_ADAPTER, EXPORT_REGISTRY_OBJECTS_PAGE_F, EXPORT_REGISTRY_OBJECTS_PAGE_F_POPUP, EXPORT_REGISTRY_OBJECTS_POPUP_ADAPTER, EXTERNAL_CLASSIFICATION_DIALOG_PAGE_FULL, EXTERNAL_LINK_ORGANIZATION_REPOSITORY_FOLDER, EXTERNAL_LINKS_ADAPTER, EXTERNAL_LINKS_PAGE, FGRID_ADAPTER, FILE_CONTENT_LAYOUT_PAGE, FILE_CONTENT_TAB_ADAPTER, FILTER_ROWS_PAGE_F, GENERAL_LAYOUT_PAGE, GENERAL_TAB_ADAPTER, HELP_TEXT_PROVIDER_POPUP, HOME_PAGE_ADAPTER, ICON_URL_PREFIX, IMPACT_ANALYSIS_CUSTOMIZE_DIALOG_ADAPTER, IMPORT, IMPORT_ASSET_ADAPTER, IMPORT_ASSET_PAGE_F_POPUP, IMPORT_ASSET_WIZARD, IMPORT_ASSET_WIZARD_PAGE_POPUP, IMPORT_BPEL_ADAPTER, IMPORT_BPEL_PAGE_F, IMPORT_LOG_ADAPTER, IMPORT_OBJECTS_ADAPTER, IMPORT_OBJECTS_PAGE_F, IMPORT_ORG_OBJECTS_ADAPTER, IMPORT_ORG_OBJECTS_PAGE_F, IMPORT_POLICY_ADAPTER, IMPORT_REGISTRY_OBJECTS_ADAPTER, IMPORT_REGISTRY_OBJECTS_PAGE_F, IMPORT_SCHEMA_ADAPTER, IMPORT_SCHEMA_PAGE_F, IMPORT_WEBSERVICE_ADAPTER, IMPORT_WEBSERVICE_PAGE_F, IMPORT_XML_SERVICE_ADAPTER, IMPORT_XML_SERVICE_PAGE_F, IMPORT_XML_SERVICE_WIZARD_ADAPTER, INIT_PARAM_CFGURL, INIT_PARAM_CFGURL_ID, INIT_PARAM_LIC, INIT_PARAM_LIC__COMMUNITY, INIT_PARAM_LIC_ID, INIT_PARAM_NEWWIN, INIT_PARAM_NEWWIN_ID, INIT_PARAM_REGURL, INIT_PARAM_REGURL_ID, INIT_PARAM_ROKEY, INIT_PARAM_ROKEY_ID, INIT_PARAM_ROPATH, INIT_PARAM_ROPATH_ID, INVISIBLE, INVOKED_FROM_CLASSIFICATIONATTRFILTERLINE, INVOKED_FROM_LCMFILTERLINE, ITEM_ADDED_AS_FAVORITE, ITEM_CREATED, ITEM_DELETED, ITEM_REMOVED_FROM_FAVORITES, ITEM_RENAMED, ITEM_UPDATED, KEY_COMMON_PAGE, KEY_FILE_EXTENSION_ZIP, KEY_ORG_SELECT_ASSET_OPTION, KEY_ORG_SELECT_USER_OPTION, KEY_ORG_USER_TAB, KEY_USER_ASSET_TAB, KEY_USER_PAGE, KEYWORD_SEARCH_ADAPTER, knownEditions, LOG_VIEW_ADAPTER, LOG_VIEW_PAGE_FULL, MINMAX_OCCURS_01, MINMAX_OCCURS_0UNBOUNDED, MINMAX_OCCURS_11, MINMAX_OCCURS_1UNBOUNDED, MULTI_VALUE_PAGE_REFERENCE, MY_ACCOUNT_PAGE, MY_APPLICATION, MY_CENTRASITE_PAGE, MY_PLUGIN_ID, NOT_REFERENCED, NOTIFICATIONS_TAB_ADAPTER, OBJECT_SPECIFIC_PROPERTIES_ADAPTER, OBJECT_SPECIFIC_PROPERTIES_PAGE, OBJECT_TYPE_CLASSIFICATION, OBJECT_TYPE_REPORT, OVERVIEW_LAYOUT_PAGE, OVERVIEW_TAB_ADAPTER, PAGE_URL_PREFIX, PAIR_INPUT_PAGE_FULL, PARAM_JAAS_XML_SERVER_URL, PARM_INM_CRR_URL, PARM_INM_GUES_ALLOW_SUMMARY_PROFILE_VISIBLE, PARM_INM_GUEST_ALLOW_HOMEPAGE_CHANGE, PARM_INM_GUEST_CAN_DOWNLOAD_DOCUMENTS, PARM_INM_GUEST_SHOW_COLUMN_CHOOSER, PARM_INM_IS_CUSTOM_ATTACH_DOCUMENTS, PARM_INM_REPORTING_ENGINE_AUTH, PARM_INM_WELCOME_PAGE_DEFAULT, PERMISSION_TABLE_LAYOUT_PAGE, PERMISSIONS_TAB_ADAPTER, PIN_EDIT_ADAPTER, PIN_EDIT_PAGE_LAYOUT, PROFILE_ASSOCIATIONS, PROFILE_AUDIT_LOG, PROFILE_CLASSIFICATIONS, PROFILE_CONSUMERS, PROFILE_DEPLOYMENT, PROFILE_EVENTS, PROFILE_EXTERNAL_LINKS, PROFILE_GENERAL, PROFILE_IMPACT_ANALYSIS, PROFILE_OBJECT_SECIFIC_PROPERTIES, PROFILE_PERFORMANCE, PROFILE_PERMISSION_LAYOUT_PAGE, PROFILE_PERMISSIONS, PROFILE_PERMISSIONS_TAB_ADAPTER, PROFILE_POLICIES, PROFILE_PROCESSING_STEPS, PROFILE_SUBSCRIPTIONS, PROFILE_SUMMARY, PROFILE_SUMMARY_XSD, PROFILE_TECHNICAL_DETAILS, PROFILE_VERSIONS, PROFILE_WSDL, PROMPT_SAVE_DISCARD_ADAPTER, REPOSITORY_OBJECT_FILE_SYSTEM_NAME_PROPERTY_NAME, REPOSITORY_OBJECT_USER_DEFINED_DESCRIPTION_PROPERTY_NAME, REPOSITORY_OBJECT_VERSION_TAB_ADAPTER, REPOSITORY_OBJECT_VERSION_TAB_LAYOUT, REPOSITORY_PERMISSIONS_LAYOUT_PAGE, SEARCH_ADAPTER, SEARCH_PAGE, SEARCH_SCREEN_PAGE_FULL, SECURITY_LAYOUT_PAGE, SECURITY_TAB_ADAPTER, SELECT_ASSOCIATION_TYPE_PAGE_FULL, SELECT_COLUMNS_PAGE_F, SELECT_EXTERNAL_CLASSIFICATION, SELECT_EXTERNAL_CLASSIFICATION_ADAPTER, SELECT_INTERNAL_CLASSIFICATION, SELECT_INTERNAL_CLASSIFICATION_ADAPTER, SELECT_ROLE_PAGE_FULL, SELECT_SERVICE_BINDING_ADAPTER, SELECT_SERVICE_BINDING_PAGE_FULL, SELECT_USERROLE_PAGE_FULL, SERVICE_BINDING_DIALOG_PAGE_FULL, SET_PERMISSINOS_POPUP, SINGLE_VALUE_PAGE_REFERENCE, SLOT_NAME_IS_PENDING_FOR_REDEPLOYMENT, STR_AUTHORIZATION, STR_BASIC, STR_COLON, STR_CONTENTTYP_UNDEFINED, STR_FORWARDSLASH, STR_PROTOCOL_GET, STR_UNDERSCORE, STR_UTF8, STR_WEBDAV_TYPE_URL, SUBSCRIPTION_ACTIVE, SUBSCRIPTION_INACTIVE, TABLE_DETAIL_TAB_ADAPTER, TABLE_LAYOUT_PAGE, TABLE_LAYOUT_PAGE_WITH_METHOD_LINKS, TECHNICAL_DETAILS_LAYOUT, TECHNICAL_DETAILS_TAB_ADAPTER, TYPE_SECURITY_LAYOUT_PAGE, TYPE_SECURITY_TAB_ADAPTER, URL_CONTENT_ADAPTER, USER_PREFERENCES_ADAPTER, USER_PREFERENCES_PAGE, VERSION_TABLE_LAYOUT_PAGE, VERSIONING_CHANGELOG_SLOT, VERSIONS_TAB_ADAPTER, VIEW_EXPORT_LOG_ADAPTER, VIEW_EXPORT_LOG_PAGE_FULL, VIEW_EXPORT_MESSAGE_ADAPTER, VIEW_EXPORT_MESSAGE_PAGE_FULL, VIEW_EXPORT_OBJECTS_LIST_ADPTER, VIEW_EXPORT_OBJECTS_LIST_PAGE, VIEW_IMPORT_LOG_ADAPTER, VIEW_IMPORT_LOG_PAGE_FULL, VIEW_IMPORT_MESSAGE_ADAPTER, VIEW_IMPORT_MESSAGE_PAGE_FULL, VIEW_IMPORT_OBJECTS_LIST_ADPTER, VIEW_IMPORT_OBJECTS_LIST_PAGE
 
Fields inherited from interface com.softwareag.cis.server.IServerLogConstants
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
 
Fields inherited from interface com.softwareag.cis.util.IControlStatusConstants
CS_DISPLAY, CS_EDIT, CS_ERROR, CS_ERROR_DISPLAY, CS_ERROR_NO_FOCUS, CS_FOCUS, CS_INVISIBLE
 
Constructor Summary
AbstractItemEditorAdapter()
           
 
Method Summary
 void close()
           
 boolean executeIfAllowedToLooseFocus(com.centrasite.control.AbstractCommandExt cmd)
          Execute command if this BaseAdapter may loose focus.
 java.util.List getCommands()
          Get list of commands available for the current editor
 com.centrasite.control.discovery.DetailTabContext getDetailTabContext()
          Get the DetailTabContext for registration of modified items
 int getDisplayModeSaveButton()
           
 java.lang.String getImageURL()
           
 com.centrasite.control.Item getItem()
           
 com.centrasite.control.extpt.ItemEditor getItemEditor()
           
 java.util.Collection getModifiedItems()
           
 boolean getShowNextButton()
           
 boolean getShowSaveButton()
          Enables the Save button only if the item is modified and not read-only.
 java.lang.String getTitle()
          Obtain title for title bar and activity bar
 ToolbarExt getToolbar()
           
 boolean isNewRegistryObject()
          Check if Registry item is new instance or an existing instance to be updated
 boolean isReadOnly()
           
 void onCancel()
          Executes the CloseActivityCommand command.
 void onNext()
           
 void onSave()
          Executes the save command.
 void onShowActions()
          Shows context menu with all item commands.
 void processPendingRefresh()
           
 void reactOnRefreshPageRequest()
          Method is called if the gloabl refresh button in the header is selected
 void reactOnRefreshPageRequestGlobal()
          Method is called on click onto the global rfresh button
 int referencesItem(com.centrasite.control.Item otherItem, int change)
          Overrides BaseAdapter.referencesItem(Item)
 void refresh()
          Enforce refreshing content of the editor.
 void registerModifiedItem(com.centrasite.control.Item item)
           
 void revertChanges()
           
 void setItem(com.centrasite.control.Item item)
          Set the item this editor is used for
 void setItemEditor(com.centrasite.control.extpt.ItemEditor itemEditor)
          Set the ItemEditor
 void setModified()
          Set modification status to true
 
Methods inherited from class com.centrasite.control.adapters.BaseAdapter
activate, endProcess, endProcess, executeIfAllowedToLooseFocus, getAccessManager, getActionContext, getCentraSiteUser, getConnector, getConnector, getDisplayManager, getHelpTextProvider, getInvocationActionContext, getNextReqAttributeItem, getPersitanceLocale, getVisibleTitle, getWithClose, getWorkplaceAdapter, hasBeenActivated, isForDeletion, isRefreshRequired, prepareReload, reactOnDataCollectionEnd, reactOnDataCollectionStart, reactOnDataTransferEnd, reactOnDataTransferStart, setActionContext, setForDeletion, setInvocationActionContext, setRefreshRequired, setVisibleTitle, setWithClose, toString
 
Methods inherited from class com.softwareag.cis.plugin.adapter.util.CommonAdapter
addRecentlyProcessedAdapter, closePage, destroy, executeDeferred, executeDeferred, executeEndProcess, executeNow, findKnownAdapters, findRelatedMenuExtensionId, getAdapter, getAdapterForSubSession, getApplicationContext, getBaseAdapter, getCurrentAdapters, getLocale, getLocale, getPreviousAdapter, handleErrorDuringGetPhase, handleErrorDuringInitPhase, handleErrorDuringInvokePhase, handleErrorDuringSetPhase, handleRefreshRequest, isAlive, isClosed, isDeadAdapter, passivate, refreshTargetIfNeeded, registerActivity, removeKnownAdapter, switchToPage, unregisterActivity
 
Methods inherited from class com.softwareag.cis.server.Adapter
addAccessPathExtension, addAdapterListener, addPagePopupCommand, appendHTMLToPageName, applyFilterDataCollection, checkIfAdapterExists, checkIfAdapterExists, checkIfAdapterExists, checkIfAdapterExists, checkIfInDevelopmentMode, checkIsPopupClosing, checkIsPopupOpening, closePagePopup, closeTitleBarPopup, closeWindow, deserialize, findAccessPathExtensions, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapterForPage, findAdapterForPage, findAdapterId, findAdapterListener, findAdditionalAdaptersInRepsonse, findCISSessionContext, findCurrentlyProcessedAdapter, findCurrentlyProcessedMethod, findCurrentlyRequestedAdapter, findFilterDataCollection, findFunctionsLivingPopup, findHelpId, findHttpServletRequest, findHttpServletResponse, findInitParam, findInitParamMap, findInteractionObjectInfo, findPageApplication, findPageContextRoot, findPageFileName, findPagePixelHeight, findPagePixelWidth, findPageURL, findRepeatIndex, findSAMLArtifact, findServletContext, findSessionContext, findSessionId, findSubSessionContext, findSubsessionId, findValueRequestProperty, forcePageReload, getCISAddons, getCISContextMenuItems, getCISFIELDTextIdMode, getCISObjects1, getCloseWindow, getDateDisplay, getDecimalSeparator, getDisplayType, getFdiw, getForcePageReload, getFrameMessages, getIntPopupsEnabled, getIsDisplayTypeSWT, getLanguage, getMessageLongText, getMessageShortText, getMessageType, getNextPage, getNextPageId, getNextPagePopupCommands, getNextPopup, getNextPopupFeatures, getNextPopupId, getNextPopupMenuFeatures, getNextPopupModal, getNextPopupOnCloseMethod, getNextPopupOnCloseProperty, getNextPopupOnClosePropertyV, getNextPopupSessionId, getNextPopupSubsessionId, getNextPopupTitle, getPageName, getPagePopupCommands, getRefreshParent, getStyle, getTimeDisplay, getTimeZoneOffset, getXMLDataMode, includeAdapterInResponse, includeAdapterInResponse, includeAdapterInResponse, includeAdapterInResponse, init, invokeMethodInTarget, isRunningInPopup, isSubPageRefresh, markSubPageAdapterForDestroy, markThisAdapterForDestroy, openCISPageInNewWindow, openCISPageInTarget, openCISPageInTarget, openCISPageInTarget, openIdValueCombo, openIdValueComboOrPopup, openIdValueHelp, openModelessPopup, openModelessPopup, openModelessPopup, openPageAndRestartSession, openPageInNewWindow, openPageInTarget, openPagePopup, openPagePopup, openPopup, openPopup, openPopupInDiv, openPopupInNewSubSession, outputMessage, outputMessage, outputMessage, processAsDefault, reactOnDataCollectionEndInternal, reactOnHelpRequestForHelpId, reactOnInvokePhaseEnd, reactOnInvokePhaseStart, reactOnMFWorkplaceActivityRestart, reactOnMFWorkplaceActivityStart, reactOnPopupClosedByUser, reactOnPopupMenuClosedByUser, reactOnRequestProcessingStart, reactonStatusBarHelpRequest, refreshParent, refreshScreenOccuranceOfAdapter, refreshScreenOccuranceOfAdapter, refreshScreenOccuranceOfAdapter, refreshTarget, removeAdapterListener, replaceLiteral, replaceLiteral, replaceLiteral, replaceLiteral, replaceLiteralFromProject, replaceLiteralFromProject, replaceLiteralFromProject, replaceLiteralFromProject, repointFocusInScreen, repointFocusInScreen, repointFocusInScreen, serialize, setAdapterName, setApplication, setCISubPageRefresh, setCurrentlyProcessedAdapter, setCurrentlyRequestedAdapter, setDateDisplay, setDecimalSeparator, setDisplayType, setInteractionAdapterId, setInteractionProcess, setIntPopupsEnabled, setIsPopup, setLanguage, setPageFileName, setPageInitParam, setPageInitParamMap, setPageName, setPagePixelHeight, setPagePixelWidth, setPageURL, setParam1, setParam2, setPopupFeatures, setPopupFeatures, setPopupMenuFeatures, setPopupOnCloseMethod, setPopupTitle, setRepeatIndex, setStyle, setTimeDisplay, setTimeZoneOffset, setTraceCheckValue, setXMLDataMode, showPopupMenu, showPopupMenu, sizeTarget, switchScreenOccuranceOfSubsession, switchToPage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.centrasite.control.ext.util.ItemEditorAdapter
outputMessage
 
Methods inherited from interface com.softwareag.cis.server.IAdapter
activate, deserialize, destroy, findAccessPathExtensions, findAdditionalAdaptersInRepsonse, findFilterDataCollection, findPageApplication, findPageFileName, getForcePageReload, getLanguage, getNextPage, getNextPageId, getNextPopup, getNextPopupId, getXMLDataMode, handleErrorDuringGetPhase, handleErrorDuringInitPhase, handleErrorDuringInvokePhase, handleErrorDuringSetPhase, init, passivate, processAsDefault, reactOnDataCollectionEnd, reactOnDataCollectionStart, reactOnDataTransferEnd, reactOnDataTransferStart, reactOnInvokePhaseEnd, reactOnInvokePhaseStart, reactOnMFWorkplaceActivityRestart, reactOnMFWorkplaceActivityStart, reactOnRequestProcessingStart, serialize, setAdapterName, setApplication, setCurrentlyProcessedAdapter, setCurrentlyRequestedAdapter, setInteractionAdapterId, setInteractionProcess, setIsPopup, setPageFileName, setPageInitParamMap, setPageName, setPageURL
 

Constructor Detail

AbstractItemEditorAdapter

public AbstractItemEditorAdapter()
Method Detail

setItem

public void setItem(com.centrasite.control.Item item)
Description copied from interface: ItemEditorAdapter
Set the item this editor is used for

Specified by:
setItem in interface ItemEditorAdapter

getItem

public com.centrasite.control.Item getItem()

setItemEditor

public void setItemEditor(com.centrasite.control.extpt.ItemEditor itemEditor)
Set the ItemEditor

Specified by:
setItemEditor in interface ItemEditorAdapter
Parameters:
itemEditor - the ItemEditor

getItemEditor

public com.centrasite.control.extpt.ItemEditor getItemEditor()

getTitle

public java.lang.String getTitle()
Obtain title for title bar and activity bar


getImageURL

public java.lang.String getImageURL()

referencesItem

public int referencesItem(com.centrasite.control.Item otherItem,
                          int change)
Overrides BaseAdapter.referencesItem(Item)

Overrides:
referencesItem in class BaseAdapter
Parameters:
otherItem - item to check
change - one of the constants ITEM_CREATED, ITEM_DELETED, ...
Returns:
NOT_REFERENCED, SINGLE_VALUE_PAGE_REFERENCE or MULTI_VALUE_PAGE_REFERENCE

getToolbar

public ToolbarExt getToolbar()

getCommands

public java.util.List getCommands()
Get list of commands available for the current editor

Returns:
the list of commands

onShowActions

public void onShowActions()
Shows context menu with all item commands.


onNext

public void onNext()

getShowNextButton

public boolean getShowNextButton()

onSave

public void onSave()
Executes the save command.


getShowSaveButton

public boolean getShowSaveButton()
Enables the Save button only if the item is modified and not read-only.

Returns:
boolean

getDisplayModeSaveButton

public int getDisplayModeSaveButton()
Returns:
the displayModeSaveButton

onCancel

public void onCancel()
Executes the CloseActivityCommand command.


isReadOnly

public boolean isReadOnly()

revertChanges

public void revertChanges()

isNewRegistryObject

public final boolean isNewRegistryObject()
Check if Registry item is new instance or an existing instance to be updated


executeIfAllowedToLooseFocus

public final boolean executeIfAllowedToLooseFocus(com.centrasite.control.AbstractCommandExt cmd)
Execute command if this BaseAdapter may loose focus.

Specified by:
executeIfAllowedToLooseFocus in interface com.centrasite.control.discovery.DetailTabContext
Overrides:
executeIfAllowedToLooseFocus in class BaseAdapter
Parameters:
cmd - the command to be executed
Returns:
false e.g. if editing for current item is pending.

setModified

public void setModified()
Set modification status to true

Specified by:
setModified in interface com.centrasite.control.discovery.DetailTabContext

getDetailTabContext

public com.centrasite.control.discovery.DetailTabContext getDetailTabContext()
Get the DetailTabContext for registration of modified items


registerModifiedItem

public void registerModifiedItem(com.centrasite.control.Item item)
Specified by:
registerModifiedItem in interface com.centrasite.control.discovery.DetailTabContext

getModifiedItems

public java.util.Collection getModifiedItems()
Specified by:
getModifiedItems in interface com.centrasite.control.discovery.DetailTabContext

refresh

public void refresh()
Enforce refreshing content of the editor. Subclasses overriding this method should also call super.refresh().


reactOnRefreshPageRequest

public void reactOnRefreshPageRequest()
Method is called if the gloabl refresh button in the header is selected

Overrides:
reactOnRefreshPageRequest in class BaseAdapter

reactOnRefreshPageRequestGlobal

public void reactOnRefreshPageRequestGlobal()
Description copied from class: BaseAdapter
Method is called on click onto the global rfresh button

Overrides:
reactOnRefreshPageRequestGlobal in class BaseAdapter

processPendingRefresh

public void processPendingRefresh()
Overrides:
processPendingRefresh in class BaseAdapter

close

public void close()
Overrides:
close in class com.softwareag.cis.plugin.adapter.util.CommonAdapter