|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.cis.plugin.command.AbstractCommand
com.centrasite.control.AbstractCommandExt
com.centrasite.control.commands.toolbar.ToolbarCommand
com.centrasite.control.registry.commands.AddAssociationCommand
public class AddAssociationCommand
Adds new incoming/outgoing Association between two registry objects.The association is kept by the item which is source.
Nested Class Summary | |
---|---|
static class |
AddAssociationCommand.AssociationInfo
|
Field Summary | |
---|---|
static java.lang.String |
INCOMING_ASSOCIATION
|
static java.lang.String |
OUTGOING_ASSOCIATION
|
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 | |
---|---|
AddAssociationCommand(java.util.Locale locale)
|
Method Summary | |
---|---|
void |
execute(ActionContext actionContext)
Oopens the "Add Association" popup |
void |
executeCommand(ActionContext actionContext,
RegistryObjectItem source,
java.util.Collection targetObjects,
java.lang.String associationType)
Creates Association between two Registry Objects |
AddAssociationCommand.AssociationInfo |
getAssociationInfo()
|
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.Association |
getCreatedAssociation()
|
java.util.Collection<javax.xml.registry.infomodel.Association> |
getCreatedAssociations()
|
java.lang.String |
getImageURL()
Obtain the image url for this command |
AddAssociationListener |
getListener()
|
java.lang.String |
getName()
Obtain the name for this command |
void |
onClickCancel(java.util.Collection roItems)
|
void |
onClickOk(ActionContext actionContext,
RegistryObjectItem source,
java.util.Collection targetObjects,
java.lang.String associationType)
Using the Add Association page multiple associations can be created in the case when the page is opened using the RelationShip attribute so targetObjects is a Collection of the multiple selected targets. |
void |
setAssociationInfo(AddAssociationCommand.AssociationInfo associationInfo)
|
void |
setListener(AddAssociationListener listener)
|
void |
setSelectedAssociations(java.util.Collection createdAssociations)
|
Methods inherited from class com.centrasite.control.AbstractCommandExt |
---|
execute, executeWrapped, getId, getLocale, getSubCommands, isEnabled, 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 |
Field Detail |
---|
public static final java.lang.String INCOMING_ASSOCIATION
public static final java.lang.String OUTGOING_ASSOCIATION
Constructor Detail |
---|
public AddAssociationCommand(java.util.Locale locale)
Method Detail |
---|
public javax.xml.registry.infomodel.Association getCreatedAssociation()
public AddAssociationCommand.AssociationInfo getAssociationInfo()
public void setAssociationInfo(AddAssociationCommand.AssociationInfo associationInfo)
associationInfo
- the associationInfo to setpublic AddAssociationListener getListener()
public void setListener(AddAssociationListener listener)
listener
- the listener to setpublic int getCategory()
AbstractCommandExt
getCategory
in interface com.softwareag.cis.plugin.command.Command
getCategory
in class AbstractCommandExt
public java.lang.String getName()
AbstractCommandExt
getName
in interface com.softwareag.cis.plugin.command.Command
getName
in class AbstractCommandExt
public java.lang.String getImageURL()
AbstractCommandExt
getImageURL
in interface com.softwareag.cis.plugin.command.Command
getImageURL
in class AbstractCommandExt
public void execute(ActionContext actionContext)
execute
in class AbstractCommandExt
actionContext
- the ActionContextpublic void executeCommand(ActionContext actionContext, RegistryObjectItem source, java.util.Collection targetObjects, java.lang.String associationType)
public void onClickCancel(java.util.Collection roItems)
onClickCancel
in interface AddAssociationListener
public void onClickOk(ActionContext actionContext, RegistryObjectItem source, java.util.Collection targetObjects, java.lang.String associationType)
AddAssociationListener
onClickOk
in interface AddAssociationListener
public java.util.Collection<javax.xml.registry.infomodel.Association> getCreatedAssociations()
public void setSelectedAssociations(java.util.Collection createdAssociations)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |