public interface GraphicElementManager
Modifier and Type | Method and Description |
---|---|
void |
addFileToResource(String name,
File file,
GraphicElement element,
String descriptorFileName)
Add a file inside given element
|
void |
createOrUpdate(GraphicElement element)
Create or update existing element
|
void |
delete(GraphicElement element)
Delete existing element
|
GraphicElement |
getAvailableElement(String id)
Get an element visible for a given context.
|
GraphicElement[] |
getAvailableElements()
Get the elements visible for a given context.
|
GraphicElement[] |
getAvailableElements(String workspaceId,
Long sectionId,
Long panelId)
Get the elements visible for a given context.
|
GraphicElement |
getDefaultElement()
Returns the default element, that is, the one whose id is 'default' and context info is null.
|
GraphicElement |
getElement(String id,
String workspaceId,
Long sectionId,
Long panelId)
Returns an element by its id and context.
|
GraphicElement |
getElementByDbid(String dbid)
Get an element by dbid.
|
GraphicElement[] |
getElements()
Returns all elements installed in the system
|
GraphicElement[] |
getElements(String workspaceId)
Return all elements belonging to given workspace
|
GraphicElement[] |
getElements(String workspaceId,
Long sectionId)
Return all elements belonging to given workspace and section
|
GraphicElement[] |
getElements(String workspaceId,
Long sectionId,
Long panelId)
Return all elements belonging to given workspace, section, and panel
|
GraphicElementScopeDescriptor |
getElementScopeDescriptor()
Determine the scope for the element handled by this manager.
|
String |
getElementsDir()
Return the base directory for elements, once deployed.
|
GraphicElement[] |
getManageableElements()
Get the elements manageable for a given context.
|
GraphicElement[] |
getManageableElements(String workspaceId,
Long sectionId,
Long panelId)
Get the elements manageable for a given context.
|
boolean |
isBaseElement(GraphicElement element)
Determines if given element is a base element.
|
GraphicElement[] getElements()
GraphicElement[] getElements(String workspaceId)
workspaceId
- Set to null to indicate elements that apply to all workspaces.GraphicElement[] getElements(String workspaceId, Long sectionId)
workspaceId
- Set to null to indicate elements that apply to all workspaces.sectionId
- Set to null to indicate elements that apply to all sections.GraphicElement[] getElements(String workspaceId, Long sectionId, Long panelId)
workspaceId
- Set to null to indicate elements that apply to all workspaces.sectionId
- Set to null to indicate elements that apply to all sections.panelId
- Set to null to indicate elements that apply to all panel instances.GraphicElement[] getAvailableElements()
GraphicElement[] getAvailableElements(String workspaceId, Long sectionId, Long panelId)
GraphicElement[] getManageableElements()
GraphicElement[] getManageableElements(String workspaceId, Long sectionId, Long panelId)
GraphicElement getAvailableElement(String id)
id
- Desired element idGraphicElement getElementByDbid(String dbid)
GraphicElement getElement(String id, String workspaceId, Long sectionId, Long panelId)
GraphicElement getDefaultElement()
boolean isBaseElement(GraphicElement element)
String getElementsDir()
void createOrUpdate(GraphicElement element) throws Exception
Exception
void delete(GraphicElement element)
GraphicElementScopeDescriptor getElementScopeDescriptor()
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.