com.centrasite.control.registry.commands
Class AddExternalLinkCommand

java.lang.Object
  extended by com.softwareag.cis.plugin.command.AbstractCommand
      extended by com.centrasite.control.AbstractCommandExt
          extended by com.centrasite.control.AbstractPromptCommand
              extended by com.centrasite.control.registry.commands.AddExternalLinkCommand
All Implemented Interfaces:
PairInputListener, com.softwareag.cis.plugin.command.Command, com.softwareag.cis.plugin.interfaces.Component

public class AddExternalLinkCommand
extends AbstractPromptCommand
implements PairInputListener


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
AddExternalLinkCommand(java.util.Locale locale)
           
AddExternalLinkCommand(java.util.Locale locale, java.lang.String title)
           
AddExternalLinkCommand(RegistryObjectItem parentItem, java.util.Locale locale)
           
 
Method Summary
 void execute(ActionContext actionContext)
          Execute command for using specified context.
 void executeCommand(ActionContext actionContext, java.lang.String value)
          Execute the command
 void executeCommand(ActionContext actionContext, java.lang.String value1, java.lang.String value2)
           
 void executeCommand(ActionContext actionContext, java.lang.String name, java.lang.String description, java.lang.String uri)
          Initializing ExternalLink and add it to the registry
 int getCategory()
          The value returned by this command may be used for command ordering and grouping (for example in a context menu)
 javax.xml.registry.infomodel.ExternalLink getCreatedExternalLink()
           
 java.lang.String getImageURL()
          Obtain the image url for this command
 java.lang.String getLabel()
          Get label.
 PairInputListener getListener()
           
 java.lang.String getName()
          Obtain the name for this command
 java.lang.String getPromptValue(ActionContext actionContext)
          Get prompt value.
 java.lang.String getTitle()
          Get label.
 boolean isEnabled(ActionContext actionContext)
          Override isEnabled() - result depends on contents of clipboard
 void onClickCancel()
           
 boolean onClickOK(java.util.Collection values)
           
 void setInitialUrl(java.lang.String initialUrl)
           
 void setListener(PairInputListener listener)
           
 
Methods inherited from class com.centrasite.control.AbstractCommandExt
execute, executeWrapped, getId, getLocale, getSubCommands, isEnabled, isImplemented, isSameGroup, isToBeVisualized, setLocale
 
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

AddExternalLinkCommand

public AddExternalLinkCommand(java.util.Locale locale)

AddExternalLinkCommand

public AddExternalLinkCommand(RegistryObjectItem parentItem,
                              java.util.Locale locale)

AddExternalLinkCommand

public AddExternalLinkCommand(java.util.Locale locale,
                              java.lang.String title)
Method Detail

getListener

public PairInputListener getListener()
Returns:
the listener

setListener

public void setListener(PairInputListener listener)
Parameters:
listener - the listener to set

getCreatedExternalLink

public javax.xml.registry.infomodel.ExternalLink getCreatedExternalLink()
Returns:
the createdExternalLink

setInitialUrl

public void setInitialUrl(java.lang.String initialUrl)

onClickOK

public boolean onClickOK(java.util.Collection values)
Specified by:
onClickOK in interface PairInputListener

onClickCancel

public void onClickCancel()
Specified by:
onClickCancel in interface PairInputListener

getCategory

public int getCategory()
Description copied from class: AbstractCommandExt
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 AbstractCommandExt
Returns:
one of the CATEGORY_* values

getName

public java.lang.String getName()
Description copied from class: AbstractCommandExt
Obtain the name for this command

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

getImageURL

public java.lang.String getImageURL()
Description copied from class: AbstractCommandExt
Obtain the image url for this command

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

getPromptValue

public java.lang.String getPromptValue(ActionContext actionContext)
Get prompt value.

Overrides:
getPromptValue in class AbstractPromptCommand
Parameters:
actionContext - The item
Returns:
Initial value to prompt for.

execute

public void execute(ActionContext actionContext)
Execute command for using specified context.

Overrides:
execute in class AbstractPromptCommand
Parameters:
actionContext - the ActionContext

getLabel

public java.lang.String getLabel()
Description copied from class: AbstractPromptCommand
Get label.

Specified by:
getLabel in class AbstractPromptCommand
Returns:
Label to display.

getTitle

public java.lang.String getTitle()
Description copied from class: AbstractPromptCommand
Get label.

Specified by:
getTitle in class AbstractPromptCommand
Returns:
Label to display.

executeCommand

public void executeCommand(ActionContext actionContext,
                           java.lang.String value)
Description copied from class: AbstractPromptCommand
Execute the command

Specified by:
executeCommand in class AbstractPromptCommand
Parameters:
actionContext - The action context
value - Resulting value after prompting

executeCommand

public void executeCommand(ActionContext actionContext,
                           java.lang.String value1,
                           java.lang.String value2)
Specified by:
executeCommand in class AbstractPromptCommand

executeCommand

public void executeCommand(ActionContext actionContext,
                           java.lang.String name,
                           java.lang.String description,
                           java.lang.String uri)
Initializing ExternalLink and add it to the registry


isEnabled

public boolean isEnabled(ActionContext actionContext)
Override isEnabled() - result depends on contents of clipboard

Overrides:
isEnabled in class AbstractCommandExt
Returns:
true if enabled