g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IGridElementManager

All Superinterfaces:
IGridContainer, IGridElement, IGridModelNotifier
All Known Subinterfaces:
IConnectionManager, IDefaultGridElementManager, IGridJobManager, IServiceJobManager, IStorableElementManager, IVoManager

public interface IGridElementManager
extends IGridContainer, IGridModelNotifier

Base interface for all element managers. A manager is a virtual grid container that is a child of the IGridRoot element but is not accessible with the IGridContainer.getChildren(IProgressMonitor monitor) method. A manager can always manage only one type of grid elements. So there are dedicated managers for different grid element, e.g. IVirtualOrganization. A manager can therefore always be seen as a central repository for a special type of grid elements. The canManage(IGridElement) method therefore determines the type of elements that can be managed by a dedicated manager. To get a certain manager make use of the getManager-methods of IGridRoot. Note that dedicated managers are always singletons!


Method Summary
 boolean addElement(IGridElement element)
          Add the specified element to the list of managed elements.
 boolean canManage(IGridElement element)
          Determines if this manager is able to manage the specified grid element.
 boolean removeElement(IGridElement element)
          Remove the specified element from the list of managed elements.
 
Methods inherited from interface eu.geclipse.core.model.IGridContainer
canContain, contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, isLazy, refresh, setDirty
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 
Methods inherited from interface eu.geclipse.core.model.IGridModelNotifier
addGridModelListener, removeGridModelListener
 

Method Detail

canManage

boolean canManage(IGridElement element)
Determines if this manager is able to manage the specified grid element. A manager is always dedicated to one special type of grid elements so this method has only to return true for this special type and its subtypes.

Parameters:
element - The element that wants to be managed by this manager.
Returns:
True if the manager is able to manage the specified grid element.

addElement

boolean addElement(IGridElement element)
                   throws ProblemException
Add the specified element to the list of managed elements.

Parameters:
element - The element to be added.
Returns:
True if the element could be added successfully, false otherwise.
Throws:
ProblemException - If the element could not be added due to a problem, e.g. the element could not be managed by this manager.

removeElement

boolean removeElement(IGridElement element)
Remove the specified element from the list of managed elements.

Parameters:
element - The element to be removed.
Returns:
True if the element was contained in this container and could be successfully removed.

g-Eclipse
Release 1.0.0