Class ProMResourceManager
java.lang.Object
org.processmining.contexts.uitopia.hub.UpdateSignaller
org.processmining.contexts.uitopia.hub.ProMResourceManager
- All Implemented Interfaces:
EventListener
,org.deckfour.uitopia.api.event.Listenable<org.deckfour.uitopia.api.event.UpdateListener>
,org.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
,ConnectionObjectListener
,PluginLifeCycleEventListener
,ProvidedObjectLifeCycleListener
public class ProMResourceManager
extends UpdateSignaller
implements org.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>, ProvidedObjectLifeCycleListener, PluginLifeCycleEventListener, ConnectionObjectListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.processmining.framework.plugin.events.ConnectionObjectListener
ConnectionObjectListener.ListenerList
Nested classes/interfaces inherited from interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
PluginLifeCycleEventListener.List
Nested classes/interfaces inherited from interface org.processmining.framework.plugin.events.ProvidedObjectLifeCycleListener
ProvidedObjectLifeCycleListener.ListenerList
-
Method Summary
Modifier and TypeMethodDescriptionvoid
<R extends ProMResource<?>>
RaddResource
(ProvidedObjectID id, R res) org.deckfour.uitopia.api.model.ResourceType
void
This method signals the creation of a connection with the given ID.void
This method signals the deletion of a connection with the given ID.void
This method signals that the connection with the given ID was updated.boolean
exportResource
(org.deckfour.uitopia.api.model.Resource resource) List<ProMResource<?>>
List<ProMResource<?>>
getAllResources
(org.deckfour.uitopia.api.model.ResourceFilter filter) List<org.deckfour.uitopia.api.model.ResourceType>
List<ProMResource<?>>
getChildrenOf
(org.deckfour.uitopia.api.model.Resource parent) List<ProMResource<?>>
getChildrenOf
(org.deckfour.uitopia.api.model.Resource parent, org.deckfour.uitopia.api.model.ResourceFilter filter) getExportFilters
(org.deckfour.uitopia.api.model.Resource resource) List<ProMResource<?>>
List<ProMResource<?>>
getFavoriteResources
(org.deckfour.uitopia.api.model.ResourceFilter filter) List<ProMResource<?>>
List<ProMResource<?>>
getImportedResources
(org.deckfour.uitopia.api.model.ResourceFilter filter) List<ProMResource<?>>
getParentsOf
(org.deckfour.uitopia.api.model.Resource child) List<ProMResource<?>>
getParentsOf
(org.deckfour.uitopia.api.model.Resource child, org.deckfour.uitopia.api.model.ResourceFilter filter) ProMResource<?>
org.deckfour.uitopia.api.model.ResourceType
getResourceTypeFor
(Class<?> type) List<org.deckfour.uitopia.api.model.ResourceType>
getResourceTypes
(List<? extends org.deckfour.uitopia.api.model.Resource> res) boolean
Start the import dialog for a resource.boolean
importResource
(PluginParameterBinding binding, File... files) Can be called from the EDT or any other thread.boolean
importResources
(File... files) Can be called from the EDT or any other thread.static ProMResourceManager
initialize
(UIContext context) boolean
isResourceType
(Class<?> type) void
pluginCancelled
(PluginContext context) This method is invoked on a context, if it is cancelledvoid
pluginCompleted
(PluginContext pluginContext) This method is invoked on a context, if it is completedvoid
pluginCreated
(PluginContext context) This method is invoked on a parent context, if a child context of that parent is created.void
pluginDeleted
(PluginContext context) This method is invoked on a context, if it's deleted from its parentvoid
pluginFutureCreated
(PluginContext context) This method is invoked on a context, if it's future was set.void
pluginResumed
(PluginContext context) This method is invoked on a context, if it is resumedvoid
pluginStarted
(PluginContext context) This method is invoked on a context, if it is startedvoid
pluginSuspended
(PluginContext context) This method is invoked on a context, if it is suspendedvoid
pluginTerminatedWithError
(PluginContext context, Throwable t) This method is invoked on a context, if it throws an exceptionvoid
providedObjectCreated
(ProvidedObjectID objectID, PluginContext context) void
void
void
void
Methods inherited from class org.processmining.contexts.uitopia.hub.UpdateSignaller
addListener, getListeners, removeAllListeners, removeListener, signalUpdate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deckfour.uitopia.api.event.Listenable
addListener, getListeners, removeAllListeners, removeListener
-
Method Details
-
addType
-
initialize
-
getExportFilters
- Specified by:
getExportFilters
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
exportResource
- Specified by:
exportResource
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
- Throws:
IOException
-
getAllResources
- Specified by:
getAllResources
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getAllResources
- Specified by:
getAllResources
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getAllSupportedResourceTypes
- Specified by:
getAllSupportedResourceTypes
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getChildrenOf
- Specified by:
getChildrenOf
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getChildrenOf
public List<ProMResource<?>> getChildrenOf(org.deckfour.uitopia.api.model.Resource parent, org.deckfour.uitopia.api.model.ResourceFilter filter) - Specified by:
getChildrenOf
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getFavoriteResources
- Specified by:
getFavoriteResources
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getFavoriteResources
public List<ProMResource<?>> getFavoriteResources(org.deckfour.uitopia.api.model.ResourceFilter filter) - Specified by:
getFavoriteResources
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getImportedResources
- Specified by:
getImportedResources
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getImportedResources
public List<ProMResource<?>> getImportedResources(org.deckfour.uitopia.api.model.ResourceFilter filter) - Specified by:
getImportedResources
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getParentsOf
- Specified by:
getParentsOf
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
getParentsOf
public List<ProMResource<?>> getParentsOf(org.deckfour.uitopia.api.model.Resource child, org.deckfour.uitopia.api.model.ResourceFilter filter) - Specified by:
getParentsOf
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
importResource
public boolean importResource()Start the import dialog for a resource. Can be called from the EDT or any other thread. Makes sure that the dialog-part of the actual import is run in the EDT.- Specified by:
importResource
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
importResources
Can be called from the EDT or any other thread.- Specified by:
importResources
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
importResource
Can be called from the EDT or any other thread. Makes sure that the dialog-par tof the actual import is run in the EDT. -
getResourceTypeFor
-
isResourceType
-
getResourceTypes
public List<org.deckfour.uitopia.api.model.ResourceType> getResourceTypes(List<? extends org.deckfour.uitopia.api.model.Resource> res) - Specified by:
getResourceTypes
in interfaceorg.deckfour.uitopia.api.hub.ResourceManager<ProMResource<?>>
-
providedObjectCreated
- Specified by:
providedObjectCreated
in interfaceProvidedObjectLifeCycleListener
-
providedObjectDeleted
- Specified by:
providedObjectDeleted
in interfaceProvidedObjectLifeCycleListener
-
providedObjectFutureReady
- Specified by:
providedObjectFutureReady
in interfaceProvidedObjectLifeCycleListener
-
providedObjectNameChanged
- Specified by:
providedObjectNameChanged
in interfaceProvidedObjectLifeCycleListener
-
providedObjectObjectChanged
- Specified by:
providedObjectObjectChanged
in interfaceProvidedObjectLifeCycleListener
-
addResource
-
getResourceForInstance
-
pluginCancelled
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a context, if it is cancelled- Specified by:
pluginCancelled
in interfacePluginLifeCycleEventListener
- Parameters:
context
- the context
-
pluginCompleted
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a context, if it is completed- Specified by:
pluginCompleted
in interfacePluginLifeCycleEventListener
- Parameters:
pluginContext
- the context
-
pluginCreated
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a parent context, if a child context of that parent is created.- Specified by:
pluginCreated
in interfacePluginLifeCycleEventListener
- Parameters:
context
- the new Child context
-
pluginDeleted
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a context, if it's deleted from its parent- Specified by:
pluginDeleted
in interfacePluginLifeCycleEventListener
- Parameters:
context
- the context
-
pluginFutureCreated
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a context, if it's future was set.- Specified by:
pluginFutureCreated
in interfacePluginLifeCycleEventListener
- Parameters:
context
- the context
-
pluginResumed
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a context, if it is resumed- Specified by:
pluginResumed
in interfacePluginLifeCycleEventListener
- Parameters:
context
- the context
-
pluginStarted
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a context, if it is started- Specified by:
pluginStarted
in interfacePluginLifeCycleEventListener
- Parameters:
context
- the context
-
pluginSuspended
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a context, if it is suspended- Specified by:
pluginSuspended
in interfacePluginLifeCycleEventListener
- Parameters:
context
- the context
-
pluginTerminatedWithError
Description copied from interface:PluginLifeCycleEventListener
This method is invoked on a context, if it throws an exception- Specified by:
pluginTerminatedWithError
in interfacePluginLifeCycleEventListener
- Parameters:
context
- the context
-
addedImportPlugins
public void addedImportPlugins() -
connectionCreated
Description copied from interface:ConnectionObjectListener
This method signals the creation of a connection with the given ID. For access to the actual connection, the connectionManager should be used.- Specified by:
connectionCreated
in interfaceConnectionObjectListener
-
connectionDeleted
Description copied from interface:ConnectionObjectListener
This method signals the deletion of a connection with the given ID. For access to the actual connection, the connectionManager should be used.- Specified by:
connectionDeleted
in interfaceConnectionObjectListener
-
connectionUpdated
Description copied from interface:ConnectionObjectListener
This method signals that the connection with the given ID was updated. For access to the actual connection, the connectionManager should be used. Be aware, that the actual pointers to the objects connected by the Connection with the given ID are not changed. Furthermore, it is wise not to update connections too often.- Specified by:
connectionUpdated
in interfaceConnectionObjectListener
-