org.exoplatform.application.gadget
Interface SourceStorage

All Known Implementing Classes:
SourceStorageImpl

public interface SourceStorage

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


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
 

Method Detail

getSource

Source getSource(java.lang.String sourcePath)
                 throws java.lang.Exception
Return Source object which is retrieved from db

Parameters:
sourcePath -
Throws:
java.lang.Exception

saveSource

void saveSource(java.lang.String dirPath,
                Source source)
                throws java.lang.Exception
create or update a Source node in db

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

void removeSource(java.lang.String sourcePath)
                  throws java.lang.Exception
delete source node from db

Parameters:
sourcePath - - path to node
Throws:
java.lang.Exception

getSourceURI

java.lang.String getSourceURI(java.lang.String sourcePath)
Return uri to source

Parameters:
sourcePath -


Copyright © 2012 eXo Platform SAS. All Rights Reserved.