org.exoplatform.application.gadget.jcr
Class SourceStorageImpl

java.lang.Object
  extended by org.exoplatform.application.gadget.jcr.SourceStorageImpl
All Implemented Interfaces:
SourceStorage

public class SourceStorageImpl
extends java.lang.Object
implements SourceStorage

Created by The eXo Platform SAS Author : Pham Thanh Tung thanhtungty@gmail.com Aug 6, 2008


Constructor Summary
SourceStorageImpl(org.exoplatform.container.xml.InitParams params, org.exoplatform.services.jcr.RepositoryService service)
           
 
Method Summary
 Source getSource(java.lang.String sourcePath)
          Return Source object which is retrieved from db
 java.lang.String getSourceURI(java.lang.String sourcePath)
          Return uri to source
 void removeSource(java.lang.String sourcePath)
          delete source node from db
 void saveSource(java.lang.String dirPath, Source source)
          create or update a Source node in db
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceStorageImpl

public SourceStorageImpl(org.exoplatform.container.xml.InitParams params,
                         org.exoplatform.services.jcr.RepositoryService service)
                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getSource

public Source getSource(java.lang.String sourcePath)
                 throws java.lang.Exception
Description copied from interface: SourceStorage
Return Source object which is retrieved from db

Specified by:
getSource in interface SourceStorage
Throws:
java.lang.Exception

saveSource

public void saveSource(java.lang.String dirPath,
                       Source source)
                throws java.lang.Exception
Description copied from interface: SourceStorage
create or update a Source node in db

Specified by:
saveSource in interface SourceStorage
Parameters:
dirPath - - if not null, path to node will be created in db
source - - Source object that will be saved
Throws:
java.lang.Exception

removeSource

public void removeSource(java.lang.String sourcePath)
                  throws java.lang.Exception
Description copied from interface: SourceStorage
delete source node from db

Specified by:
removeSource in interface SourceStorage
Parameters:
sourcePath - - path to node
Throws:
java.lang.Exception

getSourceURI

public java.lang.String getSourceURI(java.lang.String sourcePath)
Description copied from interface: SourceStorage
Return uri to source

Specified by:
getSourceURI in interface SourceStorage


Copyright © 2011 eXo Platform SAS. All Rights Reserved.