public class ResourceGallery extends GraphicElement implements Comparable, Cloneable
Modifier and Type | Field and Description |
---|---|
static Properties |
DEFAULT_PROPERTIES |
static String |
DESCRIPTOR_FILENAME |
dbid, description, id, JSPS_PREFIX, JSPS_SUFFIX, panelId, resources, sectionId, workspaceId
Constructor and Description |
---|
ResourceGallery() |
ResourceGallery(String id,
File zipFile) |
Modifier and Type | Method and Description |
---|---|
Object |
elementClone()
Clone this object.
|
protected String |
getBaseDir()
Subdirectory inside getMappingDir() where this element stores files.
|
String |
getCategoryName()
Get the category name representing this type of element
|
protected String |
getDescriptorFileName()
Name of the file that contains the descriptor (i.e. skin.properties...)
|
GraphicElementManager |
getInstanceManager()
Manager that handles this type of resource.
|
static GraphicElementManager |
getManager()
The manager that handles this type of resource.
|
protected String |
getMappingDir()
Directory where the elements of this type deployment files should be placed (starting in /www/htdocs/
also serves as starting point for urls.
|
static GraphicElementPreview |
getPreviewInstance(File f,
String workspaceId,
Long sectionId,
Long panelId,
String id)
Get an instance to a previewer for this item.
|
boolean |
onDelete(org.hibernate.Session s) |
boolean |
onSave(org.hibernate.Session s) |
void |
setZipFile(byte[] zfile)
Zipped file content
|
String |
toString() |
acceptVisit, checkDeployment, clearDeploymentFiles, clone, compareTo, deploy, deployFiles, equals, getDbid, getDeploymentDirName, getDescription, getId, getLastModified, getLocaleManager, getPanelId, getPrefixForResourcePath, getRelativeResourceName, getResource, getResourceName, getResources, getSectionId, getSuffixForResourcePath, getTmpZipFile, getWorkspaceId, getZipFile, onLoad, onUpdate, setDbid, setDescription, setDescription, setId, setLastModified, setPanelId, setSectionId, setWorkspaceId, setZipFile, unzip
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
public static final String DESCRIPTOR_FILENAME
public static final Properties DEFAULT_PROPERTIES
public String getCategoryName()
GraphicElement
getCategoryName
in class GraphicElement
protected String getDescriptorFileName()
getDescriptorFileName
in class GraphicElement
protected String getMappingDir()
getMappingDir
in class GraphicElement
protected String getBaseDir()
getBaseDir
in class GraphicElement
public GraphicElementManager getInstanceManager()
getInstanceManager
in class GraphicElement
public static GraphicElementManager getManager()
public static GraphicElementPreview getPreviewInstance(File f, String workspaceId, Long sectionId, Long panelId, String id)
public Object elementClone()
GraphicElement
elementClone
in class GraphicElement
public void setZipFile(byte[] zfile) throws Exception
GraphicElement
setZipFile
in class GraphicElement
zfile
- Zipped file contentException
public boolean onDelete(org.hibernate.Session s) throws org.hibernate.CallbackException
onDelete
in interface org.hibernate.classic.Lifecycle
onDelete
in class GraphicElement
org.hibernate.CallbackException
public boolean onSave(org.hibernate.Session s) throws org.hibernate.CallbackException
onSave
in interface org.hibernate.classic.Lifecycle
onSave
in class GraphicElement
org.hibernate.CallbackException
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.