uk.ac.soton.itinnovation.grid.client.accesscontrol
Class AccessControlPlugin

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.accesscontrol.AccessControlPlugin
All Implemented Interfaces:
PluginHook, GridClientPluginProvider

public class AccessControlPlugin
extends Object
implements GridClientPluginProvider, PluginHook

Access Control plug-in for the GRIA client.


Field Summary
static String ADD_MATCH_RULE_METHOD
           
static String GET_MATCH_RULES_METHOD
           
static String REMOVE_MATCH_RULE_METHOD
           
 
Constructor Summary
AccessControlPlugin()
           
 
Method Summary
 void addFilters(ConversationBrowser browser)
           
 void addProperties(ResourcePropertiesPanel panel)
          Create a Panel to display a resource
 boolean doDoubleClick(ConversationBrowser browser, StorableInStateRepository object)
          Do a double click on a resource.
 boolean doDragDrop(ConversationBrowser browser, Object source, Object target)
          Object 'source' has been dragged on to 'target'.
 Icon getTreeIcon(ConversationBrowser browser, StorableInStateRepository item)
          Get an icon representing this resource
 void initPlugin()
          Initialise the plugin.
 void showPopupMenu(ConversationBrowser browser, JPopupMenu menu, Object[] items)
          Add extra menu items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_MATCH_RULES_METHOD

public static String GET_MATCH_RULES_METHOD

ADD_MATCH_RULE_METHOD

public static String ADD_MATCH_RULE_METHOD

REMOVE_MATCH_RULE_METHOD

public static String REMOVE_MATCH_RULE_METHOD
Constructor Detail

AccessControlPlugin

public AccessControlPlugin()
Method Detail

initPlugin

public void initPlugin()
Description copied from interface: GridClientPluginProvider
Initialise the plugin. At start-up, the Grid client calls this method on each plugin to initialise it.

The plugin should register itself with other components as appropriate.

Specified by:
initPlugin in interface GridClientPluginProvider
See Also:
RemoteServiceImpl.registerPortType(javax.xml.namespace.QName, Class), ImplementationFactory.registerImplementation(Class, Class), ConversationBrowser.addPlugin(uk.ac.soton.ecs.iam.grid.client.swing.PluginHook)

showPopupMenu

public void showPopupMenu(ConversationBrowser browser,
                          JPopupMenu menu,
                          Object[] items)
Description copied from interface: PluginHook
Add extra menu items. This is called when the user opens the popup menu. All selected items have the same class.

Specified by:
showPopupMenu in interface PluginHook
Parameters:
browser - the browser opening the menu
menu - the menu being created
items - the objects currently selected

getTreeIcon

public Icon getTreeIcon(ConversationBrowser browser,
                        StorableInStateRepository item)
Description copied from interface: PluginHook
Get an icon representing this resource

Specified by:
getTreeIcon in interface PluginHook
Returns:
the icon

doDoubleClick

public boolean doDoubleClick(ConversationBrowser browser,
                             StorableInStateRepository object)
Description copied from interface: PluginHook
Do a double click on a resource.

Specified by:
doDoubleClick in interface PluginHook
Returns:
true if the click was handled

addProperties

public void addProperties(ResourcePropertiesPanel panel)
Description copied from interface: PluginHook
Create a Panel to display a resource

Specified by:
addProperties in interface PluginHook

addFilters

public void addFilters(ConversationBrowser browser)

doDragDrop

public boolean doDragDrop(ConversationBrowser browser,
                          Object source,
                          Object target)
Description copied from interface: PluginHook
Object 'source' has been dragged on to 'target'. Source and target are often, but not always, of type StorableInStateRepository.

Specified by:
doDragDrop in interface PluginHook
source - the item being dropped, this may be another object in the repository, a URI, a local File, etc.
target - the item which source was dropped on
Returns:
true if the drag has been handled, or false to try other handlers


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.