com.centrasite.control
Class AbstractCommandExt

java.lang.Object
  extended by com.softwareag.cis.plugin.command.AbstractCommand
      extended by com.centrasite.control.AbstractCommandExt
All Implemented Interfaces:
com.softwareag.cis.plugin.command.Command, com.softwareag.cis.plugin.interfaces.Component
Direct Known Subclasses:
AbstractCutCopyFavoriteCommand, AbstractExtensionCommand, AbstractPromptCommand, ActionCategoryDeleteCommand, ActionCategoryDetailCommand, ActionTemplateDeleteCommand, ActionTemplateDetailCommand, ActionTemplateExportCommand, ActionVersionCommand, AddAssetCommand, AddBulkFavouriteCommand, AddCategory, AddClassificationCommand, AddConsumerApplicationCommand, AddReferencedResourceCommand, AddResourceCommand, AddToFavForTypesCommand, AddToPackageCommand, AddUserGroupAsConsumerCommand, AssetTypeAddNewAssetCommand, AssetTypeDeleteCommand, AssetTypeDetailCommand, AssetTypeExportCommand, AssociationReferenceObjectCommand, AssociationTypeDeleteCommand, AssociationTypeExportCommand, AttachSchemaCommand, AttachWsdlCommand, BrowseByColumnsCommand, ChangeLcmStateCommand, ChangeOrganizationCommand, ChangeOwnerCommand, ChangePasswordCommand, ChangeProvidingOrgCommand, ChildOrganizationTab.RemoveChildOrganizationCommand, ClassificationTab.RemoveClassificationCommand, CopyAssetCommand, CopyResourceURLCommand, CreateExternalLinkCommand, CreateFavoriteBrowserCommand, CreateFavoriteNodeCommand, CreateNewBulkVersionCommand, CreateNewVersionCommand, CreateRepositoryFileCommand, CreateVersionRepositoryFileCommand, DeleteAssociationCommand, DeleteCommand, DeleteExplicitProperties, DeleteFavoriteCommand, DeleteFavouriteAssociationCommand, DeleteFavouriteCommand, DeleteGroupActionCommand, DeleteResourceCommand, DeleteSavedSearchCommand, DeleteUserActionCommand, DeprecateRegistryEntryCommand, DisplayAssociationSourceCommand, DisplayAssociationTargetCommand, DisplayItemDetailCommand, Documentation, DownloadDocumentsCommand, EditAssetCommand, EditCategory, EditGroupActionCommand, EditRoleCommand, EditTaxonomy, EditUserActionCommand, EventTypeDeleteCommand, EventTypeDetailCommand, ExecuteOperationCommand, ExecuteReportCommand, ExecuteReportForRegistryObjectCommand, ExportFileCommand, ExportObjectsListCommand, ExportOrganizationCommand, ExportRegistryObjectsCommand, ExportRegistryObjectsListCommand, ExportTypesCommand, ExportUserCommand, GraphicalImpactAnalysisCommand, GroupDeleteCommand, GroupDetailCommand, ImportAssetCommand, ImportBPELCommand, ImportObjectCommand, InternalCommand, LCMBulkChangeStateCommand, LCMBulkDeleteCommand, LCMBulkPurgeDeleteCommand, LCMChangeStateCommand, LCMDeleteCommand, LCMDetailCommand, LCMExportCommand, LCMNotifyCommand, LCMPurgeDeleteCommand, LCMVersionCommand, LinkToReportCommand, LocaleSelectionCommand, MyNotificationsCommand, NewClassificationSchemeCommand, NewConceptCommand, NewInstanceCommand, NewTypeCommand, OpenApprovalHistoryPage, OpenBrowseCommand, OpenGroupsPage, OpenModelsPage, OpenPolicyLogPage, OpenRolesPage, OpenStagesPage, OpenTaxonomyPage, OpenUsersPage, OrgDeleteCommand, OrgDetailCommand, PasteFavoriteCommand, PinEditCommand, PolicyBulkDeleteCommand, PolicyChangeStateCommand, PolicyCopyCommand, PolicyCopyShortCutCommand, PolicyDeleteCommand, PolicyDetailCommand, PolicyExportCommand, PolicyNotifyCommand, PolicyVersionCommand, RefreshCommand, RegisterAsConsumerCommand, RemoveExternalLinkCommand, RemoveFromListCommand, RemoveListCommand, RepositoryObjectPermissionsCommand, RevertPendingStateCommand, RoleDeleteCommand, RTPolicyBulkDeleteCommand, RTPolicyChangeStateCommand, RTPolicyCopyShortCutCommand, RTPolicyDeleteCommand, RTPolicyDetailCommand, RTPolicyExportCommand, RTPolicyNotifyCommand, RTPolicyVersionCommand, RunNowCommand, ServiceBindingTab.AddServiceBindingCommand, ServiceBindingTab.RemoveServiceBindingCommand, ShowExternalLinkCommand, ShowFileContentCommand, ShowImpactAnalysisCommand, ShowImpactAnalysisCommand, ShowReferenceSourceObjectCommand, ShowReferenceTargetObjectCommand, ShowReportSourceCommand, ShowTraceCommand.TraceReport.ClearTraceCommand, ShowTraceCommand.TraceReport.ElapsedTimeCommand, ShowVersionsCommand, SpecificationLinksTab.AddSpecificationLinkCommand, SpecificationLinksTab.RemoveSpecificationLinkCommand, SysDefTypeAddNewAssetCommand, SysDefTypeDetailCommand, SysDefTypeExportCommand, TargetBulkDeleteCommand, TargetDeleteCommand, TargetDetailCommand, TargetTypeDeleteCommand, TargetTypeDetailCommand, ToolbarCommand, TypeBulkDeleteCommand, UpdateTypeCommand, UserActivateCommand, UserDeActivateCommand, UserDeleteCommand, UserDetailCommand, UserSynchronizeCommand

public abstract class AbstractCommandExt
extends com.softwareag.cis.plugin.command.AbstractCommand

An abstract class describing a command which may be rendered in a menu or tool bar


Field Summary
 
Fields inherited from class com.softwareag.cis.plugin.command.AbstractCommand
rcs_id
 
Fields inherited from interface com.softwareag.cis.plugin.command.Command
CATEGORY_APPLICATION_HIGH_PRIO, CATEGORY_APPLICATION_LOW_PRIO, CATEGORY_COPY, CATEGORY_DELETE, CATEGORY_DOCUMENT, CATEGORY_EDIT, CATEGORY_EXECUTE, CATEGORY_FAVORITES, CATEGORY_IMPORT_EXPORT, CATEGORY_LCM, CATEGORY_LINK, CATEGORY_MIN, CATEGORY_MISC, CATEGORY_NEW, CATEGORY_OBJECT, CATEGORY_OPEN, CATEGORY_PREFERENCES, CATEGORY_SAVE, CATEGORY_SEARCH, CATEGORY_SHOW, CATEGORY_UPDATE, CATEGORY_UPDATE_EXT, CATEGORY_VIEW, COMMAND_ACTIVATE_DEACTIVATE, COMMAND_ADD_CATEGORY, COMMAND_ADD_COPY, COMMAND_ADD_DOCUMENT, COMMAND_ADD_FOLDER, COMMAND_ADD_TO_FAVORITES, COMMAND_ADD_TO_LIST, COMMAND_ADD_TYPE, COMMAND_ADD_VERSION, COMMAND_ATTACH_WS_POLICY, COMMAND_ATTACH_WSDL, COMMAND_CHANGE_LIFEC_STATE, COMMAND_CHANGE_PROVIDING_ORG, COMMAND_CHECK_CONN, COMMAND_COMPARE, COMMAND_COPY_SHORTCUT, COMMAND_DELETE, COMMAND_DOCUMENTATION, COMMAND_DOWNLOAD, COMMAND_DOWNLOAD_BPEL, COMMAND_DOWNLOAD_WSDL, COMMAND_DOWNLOAD_XMLSCHEMA, COMMAND_EDIT_DETAILS, COMMAND_EXPORT, COMMAND_EXPORT_CONTENTS, COMMAND_EXPORT_FAVORITE, COMMAND_GENERATE_REPORT, COMMAND_IMPACT_ANALYSIS, COMMAND_IMPORT_ASSET, COMMAND_LC_CREATE_NEW_VERS, COMMAND_NOTIFY_ME, COMMAND_PERMISSIONS, COMMAND_REGISTER_AS_CONSUMER, COMMAND_REGISTER_CONS, COMMAND_REMOVE_FROM_FAVORITES, COMMAND_RENAME, COMMAND_RENAME_LIST, COMMAND_SHOW_DETAILS, COMMAND_VIRTUALIZE
 
Constructor Summary
AbstractCommandExt()
           
 
Method Summary
abstract  void execute(ActionContext actionContext)
          Execute command for given ActionContext
 void execute(com.softwareag.cis.plugin.command.context.CommandContext context)
          Execute command within given context
 void executeWrapped(ActionContext actionContext)
          Execute command for given ActionContext
abstract  int getCategory()
          The value returned by this command may be used for command ordering and grouping (for example in a context menu)
 java.lang.String getId()
           
abstract  java.lang.String getImageURL()
          Obtain the image url for this command
 java.util.Locale getLocale()
          Obtain locale for this command
abstract  java.lang.String getName()
          Obtain the name for this command
 java.util.List getSubCommands()
          If this method returns a non-empty collection, this command will be rendered with respective commands in a sub-menu.
 boolean isEnabled(ActionContext actionContext)
          Is this command enabled?
 boolean isEnabled(com.softwareag.cis.plugin.command.context.CommandContext context)
          Is this command enabled?
 boolean isImplemented()
          This method is provided for commands which are not yet implemented but are to be shown (for example in the context menu).
 boolean isSameGroup(AbstractCommandExt other)
          Check whether this command belongs to same group as other
 boolean isToBeVisualized(com.softwareag.cis.plugin.command.context.CommandContext commandContext)
          Deprecated. use AbstractCommand.isVisible()
 void setLocale(java.util.Locale locale)
          Set locale for this command
 
Methods inherited from class com.softwareag.cis.plugin.command.AbstractCommand
execute, executeWrapped, getComparator, getSelectable, isEnabled, isSameGroup, isVisible, setEnabled, setSelectable, setVisible, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCommandExt

public AbstractCommandExt()
Method Detail

getName

public abstract java.lang.String getName()
Obtain the name for this command

Specified by:
getName in interface com.softwareag.cis.plugin.command.Command
Specified by:
getName in class com.softwareag.cis.plugin.command.AbstractCommand

getImageURL

public abstract java.lang.String getImageURL()
Obtain the image url for this command

Specified by:
getImageURL in interface com.softwareag.cis.plugin.command.Command
Specified by:
getImageURL in class com.softwareag.cis.plugin.command.AbstractCommand

getCategory

public abstract int getCategory()
The value returned by this command may be used for command ordering and grouping (for example in a context menu)

Specified by:
getCategory in interface com.softwareag.cis.plugin.command.Command
Specified by:
getCategory in class com.softwareag.cis.plugin.command.AbstractCommand
Returns:
one of the CATEGORY_* values

execute

public abstract void execute(ActionContext actionContext)
Execute command for given ActionContext

Parameters:
actionContext - the ActionContext

getId

public java.lang.String getId()
Specified by:
getId in interface com.softwareag.cis.plugin.interfaces.Component
Overrides:
getId in class com.softwareag.cis.plugin.command.AbstractCommand

isSameGroup

public boolean isSameGroup(AbstractCommandExt other)
Check whether this command belongs to same group as other

Returns:
true if same group, false otherwise

getSubCommands

public java.util.List getSubCommands()
If this method returns a non-empty collection, this command will be rendered with respective commands in a sub-menu. When used in a tool bar a little pop-up menu will show up containing the sub-commands.

Specified by:
getSubCommands in interface com.softwareag.cis.plugin.command.Command
Overrides:
getSubCommands in class com.softwareag.cis.plugin.command.AbstractCommand

setLocale

public void setLocale(java.util.Locale locale)
Set locale for this command

Specified by:
setLocale in interface com.softwareag.cis.plugin.command.Command
Overrides:
setLocale in class com.softwareag.cis.plugin.command.AbstractCommand

getLocale

public java.util.Locale getLocale()
Obtain locale for this command

Specified by:
getLocale in interface com.softwareag.cis.plugin.command.Command
Overrides:
getLocale in class com.softwareag.cis.plugin.command.AbstractCommand
Returns:
the locale used for this command

isEnabled

public boolean isEnabled(com.softwareag.cis.plugin.command.context.CommandContext context)
Is this command enabled? Default behavior is to return isEnabled(). Could be overridden to make decision based on provided context.

Specified by:
isEnabled in interface com.softwareag.cis.plugin.command.Command
Overrides:
isEnabled in class com.softwareag.cis.plugin.command.AbstractCommand
Returns:
true if enabled

isEnabled

public boolean isEnabled(ActionContext actionContext)
Is this command enabled? Default behavior is to return isEnabled(). Could be overridden to make decision based on provided context.

Returns:
true if enabled

isToBeVisualized

public boolean isToBeVisualized(com.softwareag.cis.plugin.command.context.CommandContext commandContext)
Deprecated. use AbstractCommand.isVisible()

Test whether this command is to be visualized in the current context

Specified by:
isToBeVisualized in interface com.softwareag.cis.plugin.command.Command
Overrides:
isToBeVisualized in class com.softwareag.cis.plugin.command.AbstractCommand
Parameters:
commandContext - context used for command invocation
Returns:
true if to be visualized, otherwise false

isImplemented

public boolean isImplemented()
This method is provided for commands which are not yet implemented but are to be shown (for example in the context menu).

Returns:
True if implemented, otherwise false.

execute

public final void execute(com.softwareag.cis.plugin.command.context.CommandContext context)
Execute command within given context

Specified by:
execute in interface com.softwareag.cis.plugin.command.Command
Specified by:
execute in class com.softwareag.cis.plugin.command.AbstractCommand

executeWrapped

public final void executeWrapped(ActionContext actionContext)
Execute command for given ActionContext