|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkieker.webgui.web.beans.view.AnalysisEditorBean
@Component @Scope(value="view") public final class AnalysisEditorBean
This bean contains the necessary data behind an instance of the analysis editor. It provides various methods to manipulate the current project with respect to the
analysis components. The connection to the graph within the editor is done with AnalysisEditorGraphBean
.
The class is a Spring managed bean with view scope to make sure that one user (even in one session) can open multiple projects at a time without causing any
problems.
Constructor Summary | |
---|---|
AnalysisEditorBean()
Creates a new instance of this class. |
Method Summary | |
---|---|
void |
addFilter(FilterDecorator container)
This method adds a new filter to the current model, using the given container to create it. |
void |
addReader(ReaderDecorator container)
This method adds a new reader to the current model, using the given container to create it. |
void |
addRepository(RepositoryDecorator container)
This method adds a new repository to the current model, using the given container to create it. |
void |
componentDeletedEvent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent deletedComponent)
An event occurring when a component has been deleted. |
void |
componentSelectedEvent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent newSelectedComponent)
An event occurring when a component has been selected. |
void |
connectionAddedEvent(kieker.analysis.model.analysisMetaModel.MIOutputPort outputPort,
kieker.analysis.model.analysisMetaModel.MIInputPort targetPort)
An event occurring when a connection has been created. |
void |
connectionAddedEvent(kieker.analysis.model.analysisMetaModel.MIRepositoryConnector sourcePort,
kieker.analysis.model.analysisMetaModel.MIRepository target)
An event occurring when a connection has been created. |
void |
connectionDeletedEvent(kieker.analysis.model.analysisMetaModel.MIOutputPort sourcePort,
kieker.analysis.model.analysisMetaModel.MIInputPort targetPort)
An event occurring when a connection has been deleted. |
void |
connectionDeletedEvent(kieker.analysis.model.analysisMetaModel.MIRepositoryConnector sourcePort,
kieker.analysis.model.analysisMetaModel.MIRepository targetRepo)
An event occurring when a connection has been deleted. |
void |
deleteLibrary(String name)
Removes the library with the given name and reloads the available components. |
List<Object> |
getAdvancedPluginProperties()
This method delivers the properties of the currently selected plugin, but it adds also the name- and the class-properties as a string to the list. |
ComponentListContainer |
getAvailableComponents()
|
String |
getDescription(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent component,
String property)
Delivers a human readable description of the given property. The current implementation is not very fast, as it searches through all available components. |
List<String> |
getLibraries()
This method delivers the available libraries of this project. |
kieker.analysis.model.analysisMetaModel.MIProject |
getProject()
|
String |
getProjectName()
|
kieker.analysis.model.analysisMetaModel.MIAnalysisComponent |
getSelectedPlugin()
|
void |
gridColorListener(javax.faces.event.ValueChangeEvent event)
This method should be called if the grid color has been modified. |
void |
gridSizeListener(javax.faces.event.ValueChangeEvent event)
This method should be called if the grid size has been modified. |
void |
handleLibraryFileUpload(org.primefaces.event.FileUploadEvent event)
This method is the handler for the file upload. |
void |
initialize()
This method initializes the bean by using the current project name to load the project. |
void |
initializeGraph()
This method initializes the graph by delivering the necessary JavaScript commands to the client. |
boolean |
isGlobalConfigComponentSelected()
|
boolean |
isUnsavedModification()
|
void |
saveProject()
This method tries to save the current project and informs the user about success or fail. |
void |
setProjectName(String projectName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnalysisEditorBean()
Method Detail |
---|
public void initialize()
public void initializeGraph()
public void handleLibraryFileUpload(org.primefaces.event.FileUploadEvent event)
event
- The upload event.public void deleteLibrary(String name)
name
- The name of the library to be removed.public List<String> getLibraries()
public void saveProject()
public void addRepository(RepositoryDecorator container)
container
- The container which delivers the copy of the repository.public void addReader(ReaderDecorator container)
container
- The container which delivers the copy of the reader.public void addFilter(FilterDecorator container)
container
- The container which delivers the copy of the filter.public List<Object> getAdvancedPluginProperties()
public String getDescription(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent component, String property)
component
- The parent of the property.property
- The property name.
public void componentSelectedEvent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent newSelectedComponent)
IGraphListener
componentSelectedEvent
in interface IGraphListener
newSelectedComponent
- The selected component.public void componentDeletedEvent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent deletedComponent)
IGraphListener
componentDeletedEvent
in interface IGraphListener
deletedComponent
- The deleted component.public void connectionAddedEvent(kieker.analysis.model.analysisMetaModel.MIRepositoryConnector sourcePort, kieker.analysis.model.analysisMetaModel.MIRepository target)
IGraphListener
connectionAddedEvent
in interface IGraphListener
sourcePort
- The source port.target
- The target.public void connectionAddedEvent(kieker.analysis.model.analysisMetaModel.MIOutputPort outputPort, kieker.analysis.model.analysisMetaModel.MIInputPort targetPort)
IGraphListener
connectionAddedEvent
in interface IGraphListener
outputPort
- The source port.targetPort
- The target port.public void connectionDeletedEvent(kieker.analysis.model.analysisMetaModel.MIRepositoryConnector sourcePort, kieker.analysis.model.analysisMetaModel.MIRepository targetRepo)
IGraphListener
connectionDeletedEvent
in interface IGraphListener
sourcePort
- The source port.targetRepo
- The target.public void connectionDeletedEvent(kieker.analysis.model.analysisMetaModel.MIOutputPort sourcePort, kieker.analysis.model.analysisMetaModel.MIInputPort targetPort)
IGraphListener
connectionDeletedEvent
in interface IGraphListener
sourcePort
- The source port.targetPort
- The target port.public void gridColorListener(javax.faces.event.ValueChangeEvent event)
event
- The change event.public void gridSizeListener(javax.faces.event.ValueChangeEvent event)
event
- The change event.public boolean isUnsavedModification()
public boolean isGlobalConfigComponentSelected()
public kieker.analysis.model.analysisMetaModel.MIAnalysisComponent getSelectedPlugin()
public kieker.analysis.model.analysisMetaModel.MIProject getProject()
public void setProjectName(String projectName)
public String getProjectName()
public ComponentListContainer getAvailableComponents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |