com.silverpeas.comment
Class CommentInstanciator

java.lang.Object
  extended by com.silverpeas.comment.CommentInstanciator
All Implemented Interfaces:
ComponentsInstanciatorIntf

public class CommentInstanciator
extends Object
implements ComponentsInstanciatorIntf

Author:
neysseri

Field Summary
 
Fields inherited from interface com.silverpeas.admin.components.ComponentsInstanciatorIntf
PROCESS_XML_FILE_NAME
 
Constructor Summary
CommentInstanciator()
           
 
Method Summary
 void create(Connection con, String spaceId, String componentId, String userId)
          Create a new instance of the component for a requested user and space.
 void delete(Connection con, String spaceId, String componentId, String userId)
          Delete the component instance created for the user on the requested space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentInstanciator

public CommentInstanciator()
Method Detail

create

public void create(Connection con,
                   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:
con - - 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 con,
                   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:
con - - 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.