1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective;
import org.eclipse.wst.ws.internal.explorer.platform.datamodel.*;
import org.eclipse.wst.ws.internal.explorer.platform.perspective.*;
import org.eclipse.wst.ws.internal.explorer.platform.uddi.actions.*;
import org.eclipse.wst.ws.internal.explorer.platform.uddi.datamodel.*;
public class BusinessNode extends UDDINavigatorNode
{
private DetailsTool detailsTool_;
private BusPublishServiceTool publishServiceTool_;
private ManagePublisherAssertionsTool managePublisherAssertionsTool_;
private ManageReferencedServicesTool manageReferencedServicesTool_;
private UnpublishTool unpublishTool_;
public BusinessNode(TreeElement element,NodeManager nodeManager,int nodeDepth)
{
super(element,nodeManager,nodeDepth,"uddi/images/business_highlighted.gif");
}
protected final void initTools()
{
Controller controller = nodeManager_.getController();
UDDIPerspective uddiPerspective = controller.getUDDIPerspective();
detailsTool_ = new BusinessDetailsTool(toolManager_,uddiPerspective.getMessage("ALT_BUSINESS_DETAILS"));
new GetServicesTool(toolManager_,uddiPerspective.getMessage("ALT_GET_SERVICES"),BusinessGetServicesAction.getActionLink(nodeId_));
publishServiceTool_ = new BusPublishServiceTool(toolManager_,uddiPerspective.getMessage("ALT_PUBLISH_SERVICE"));
manageReferencedServicesTool_ = new ManageReferencedServicesTool(toolManager_,uddiPerspective.getMessage("ALT_MANAGE_REFERENCED_SERVICES"));
managePublisherAssertionsTool_ = new ManagePublisherAssertionsTool(toolManager_,uddiPerspective.getMessage("ALT_MANAGE_PUBLISHER_ASSERTIONS"));
new AddToFavoritesTool(toolManager_, uddiPerspective.getMessage("ALT_ADD_TO_FAVORITES"));
unpublishTool_ = new UnpublishTool(toolManager_,"uddi/images/unpublish_bus_enabled.gif","uddi/images/unpublish_bus_highlighted.gif",uddiPerspective.getMessage("ALT_UNPUBLISH_BUSINESS"));
}
public void addAuthenticationProperties(RegistryElement regElement)
{
detailsTool_.addAuthenticationProperties(regElement);
publishServiceTool_.addAuthenticationProperties(regElement);
manageReferencedServicesTool_.addAuthenticationProperties(regElement);
managePublisherAssertionsTool_.addAuthenticationProperties(regElement);
unpublishTool_.addAuthenticationProperties(regElement);
}
}
|