com.silverpeas.thumbnail
Class ThumbnailInstanciator

java.lang.Object
  extended by com.stratelia.webactiv.beans.admin.SQLRequest
      extended by com.silverpeas.thumbnail.ThumbnailInstanciator
All Implemented Interfaces:
ComponentsInstanciatorIntf

public class ThumbnailInstanciator
extends SQLRequest
implements ComponentsInstanciatorIntf


Field Summary
 
Fields inherited from interface com.silverpeas.admin.components.ComponentsInstanciatorIntf
PROCESS_XML_FILE_NAME
 
Constructor Summary
ThumbnailInstanciator()
           
ThumbnailInstanciator(String fullPathName)
           
 
Method Summary
 void create(Connection connection, String spaceId, String componentId, String userId)
          Create a new instance of the component for a requested user and space.
 void delete(Connection connection, String spaceId, String componentId, String userId)
          Delete the component instance created for the user on the requested space.
 
Methods inherited from class com.stratelia.webactiv.beans.admin.SQLRequest
getCreateQuery, getDeleteQuery, getInsertQuery, getUpdateQuery, setCreateQueries, setDeleteQueries, setInsertQueries, setUpdateQueries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailInstanciator

public ThumbnailInstanciator()

ThumbnailInstanciator

public ThumbnailInstanciator(String fullPathName)
Method Detail

create

public void create(Connection connection,
                   String spaceId,
                   String componentId,
                   String userId)
            throws InstanciationException
Description copied from interface: ComponentsInstanciatorIntf
Create a new instance of the component for a requested user and space.

Specified by:
create in interface ComponentsInstanciatorIntf
Parameters:
connection - - Connection to the database used to save the create information.
spaceId - - Identity of the space where the component will be instancied.
componentId - - Identity of the component to instanciate.
userId - - Identity of the user who want the component
Throws:
InstanciationException

delete

public void delete(Connection connection,
                   String spaceId,
                   String componentId,
                   String userId)
            throws InstanciationException
Description copied from interface: ComponentsInstanciatorIntf
Delete the component instance created for the user on the requested space.

Specified by:
delete in interface ComponentsInstanciatorIntf
Parameters:
connection - - Connection to the database where the create information will be destroyed.
spaceId - - Identity of the space where the instanced component will be deleted.
componentId - - Identity of the instanced component
userId - - Identity of the user who have instantiate the component.
Throws:
InstanciationException


Copyright © 2016 Silverpeas. All Rights Reserved.