g-Eclipse
Release 1.0.0

eu.geclipse.core.model.impl
Class GenericVirtualOrganization

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
          extended by eu.geclipse.core.model.impl.AbstractGridContainer
              extended by eu.geclipse.core.model.impl.AbstractVirtualOrganization
                  extended by eu.geclipse.core.model.impl.GenericVirtualOrganization
All Implemented Interfaces:
IGridContainer, IGridElement, IStorableElement, IVirtualOrganization

public class GenericVirtualOrganization
extends AbstractVirtualOrganization

This is the g-Eclipse default implementation for the IVirtualOrganization interface. It is used whenever no middleware dependent VO is available. This be the case if the user has not installed a middleware feature that comes with an own VO implementation.


Method Summary
 boolean canContain(IGridElement element)
          Determines if this may contain the specified element.
 boolean equals(java.lang.Object o)
           
 java.lang.String getId()
          Returns a unique identifier for the type of this VO.
 java.lang.String getName()
          Get the name of this element.
 java.lang.String getTypeName()
          Returns a user-friendly string denoting the type of this VO.
 java.lang.String getWizardId()
          Returns the ID of the wizard which should be used to edit VOs of this type.
 int hashCode()
           
 boolean isLazy()
          Determines if this container is using a lazy loading mechanism to manage its children.
 void save()
          Write the properties of this element.
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractVirtualOrganization
dispose, getApplicationManager, getAvailableResources, getComputing, getFileStore, getInfoService, getJobSubmissionServices, getParent, getPath, getResource, getServices, getStorage, getSupportedCategories, isLocal, load, refreshResources
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridContainer
contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement
getAdapter, getProject, isHidden, isVirtual
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.core.model.IGridContainer
contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
getProject, isHidden, isVirtual
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
getProject, isHidden, isVirtual
 

Method Detail

canContain

public boolean canContain(IGridElement element)
Description copied from interface: IGridContainer
Determines if this may contain the specified element. This method works type specific, i.e. a container may or may not contain elements of a specified type.

Specified by:
canContain in interface IGridContainer
Overrides:
canContain in class AbstractVirtualOrganization
Parameters:
element - The element that may be contained in this container.
Returns:
If this container may contain the specified element.

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

getTypeName

public java.lang.String getTypeName()
Description copied from interface: IVirtualOrganization
Returns a user-friendly string denoting the type of this VO. This string has to be a singleton for each implementation. So each object of a specific implementation has to return the same type name.

Returns:
An implementation-specific type name.
See Also:
IVirtualOrganization.getId()

isLazy

public boolean isLazy()
Description copied from interface: IGridContainer
Determines if this container is using a lazy loading mechanism to manage its children. In that case the children are not loaded when the container is constructed but when the IGridContainer.getChildren(IProgressMonitor monitor) methode is called the first time. On subsequent calls of IGridContainer.getChildren(IProgressMonitor monitor) the formerly loaded children are returned unless the IGridContainer.setDirty() method was called. In that case a call to IGridContainer.getChildren(IProgressMonitor monitor) will cause a reload of this containers children. Lazy containers always have to return true if they are asked if they contain any children with IGridContainer.hasChildren().

Returns:
True if this container uses lazy loading.

getName

public java.lang.String getName()
Description copied from interface: IGridElement
Get the name of this element. The names of all children of a container have to be unique within this container. If this element is not virtual the name is the name of the corresponding resource.

Returns:
The name of this element.

save

public void save()
          throws ProblemException
Description copied from interface: IStorableElement
Write the properties of this element. The element itself has to know where to save itself.

Specified by:
save in interface IStorableElement
Overrides:
save in class AbstractVirtualOrganization
Throws:
ProblemException - If an error occurs while saving this element. This is mainly due to IOExceptions.

getWizardId

public java.lang.String getWizardId()
Description copied from interface: IVirtualOrganization
Returns the ID of the wizard which should be used to edit VOs of this type.

Returns:
ID of the wizard to edit the VO.

getId

public java.lang.String getId()
Description copied from interface: IVirtualOrganization
Returns a unique identifier for the type of this VO.

Returns:
The name of the class implementing this interface.
See Also:
IVirtualOrganization.getTypeName()

g-Eclipse
Release 1.0.0