org.ocopomo.wizards
Class ContentCache

java.lang.Object
  extended by org.ocopomo.utils.XmlFileStorage
      extended by org.ocopomo.wizards.ContentCache

public class ContentCache
extends XmlFileStorage


Constructor Summary
ContentCache(org.eclipse.core.resources.IProject project, AlfrescoSettings aSettings, Credentials cred)
           
 
Method Summary
 void cacheDocument(java.lang.String id, java.lang.String version)
           
 void deleteOldStructure()
           
 Credentials getCredentials()
           
 org.eclipse.core.resources.IFile getFile(java.lang.String fileName)
           
 org.eclipse.core.resources.IFile getFileById(java.lang.String id, java.lang.String version)
           
 org.eclipse.core.resources.IFile getFileById(java.lang.String id, java.lang.String version, java.lang.String ext)
           
 TreeObject getObjectById(java.lang.String id)
           
 TreeParent getTree()
           
 void signOut(org.eclipse.swt.widgets.Shell shell)
           
 void storeStream(java.lang.String fileName, java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentCache

public ContentCache(org.eclipse.core.resources.IProject project,
                    AlfrescoSettings aSettings,
                    Credentials cred)
Method Detail

getCredentials

public Credentials getCredentials()

getTree

public TreeParent getTree()

getObjectById

public TreeObject getObjectById(java.lang.String id)

cacheDocument

public void cacheDocument(java.lang.String id,
                          java.lang.String version)

storeStream

public void storeStream(java.lang.String fileName,
                        java.io.InputStream is)

deleteOldStructure

public void deleteOldStructure()

getFileById

public org.eclipse.core.resources.IFile getFileById(java.lang.String id,
                                                    java.lang.String version,
                                                    java.lang.String ext)

getFileById

public org.eclipse.core.resources.IFile getFileById(java.lang.String id,
                                                    java.lang.String version)
                                             throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getFile

public org.eclipse.core.resources.IFile getFile(java.lang.String fileName)

signOut

public void signOut(org.eclipse.swt.widgets.Shell shell)