Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


oracle.stellent.wcm.server.content.spi.fs
Class FSProjectAdapter

java.lang.Object
  extended by oracle.stellent.wcm.server.content.spi.idc.IdcProjectAdapter
      extended by oracle.stellent.wcm.server.content.spi.fs.FSProjectAdapter

All Implemented Interfaces:
ProjectAdapter

public class FSProjectAdapter
extends IdcProjectAdapter

Load the project files from the staging directory using the URL APIs.


Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.stellent.wcm.server.content.spi.ProjectAdapter
ProjectAdapter.ProjectStream

 

Field Summary
static java.lang.String APPLICATION_DIRECTORY
          location of the application files relative to the root

 

Constructor Summary
FSProjectAdapter(StagingConfiguration stagingConfig, FileSystemLoader fsLoader)
           
FSProjectAdapter(StagingConfiguration stagingConfig, FileSystemLoader fsLoader, IdcClientFactory idcFactory)
           

 

Method Summary
 void flushProject(java.lang.String siteID)
          Flush any cached project
 FileSystemLoader getFsLoader()
           
 java.lang.String getProjectLocation(java.lang.String siteID)
          A friendly string showing the project location, usually in URL format
protected  java.lang.String getProjectPath(java.lang.String siteID)
          Get the relative location for the given site ID
 StagingConfiguration getStagingConfig()
           
protected  void initialize(StagingConfiguration stagingConfig, FileSystemLoader fsLoader)
           
 boolean isConnected()
           
 boolean isProjectUpdated(ProjectManager projectManager, java.lang.String siteID)
          Determine if a new project is available
 ProjectAdapter.ProjectStream loadProject(java.lang.String siteID)
          Load the project

 

Methods inherited from class oracle.stellent.wcm.server.content.spi.idc.IdcProjectAdapter
getIdcClient, getIdcFactory, getSiteStudioApi

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

APPLICATION_DIRECTORY

public static final java.lang.String APPLICATION_DIRECTORY
location of the application files relative to the root

Constructor Detail

FSProjectAdapter

public FSProjectAdapter(StagingConfiguration stagingConfig,
                        FileSystemLoader fsLoader)

FSProjectAdapter

public FSProjectAdapter(StagingConfiguration stagingConfig,
                        FileSystemLoader fsLoader,
                        IdcClientFactory idcFactory)

Method Detail

isConnected

public boolean isConnected()

getStagingConfig

public StagingConfiguration getStagingConfig()

getFsLoader

public FileSystemLoader getFsLoader()

initialize

protected void initialize(StagingConfiguration stagingConfig,
                          FileSystemLoader fsLoader)

loadProject

public ProjectAdapter.ProjectStream loadProject(java.lang.String siteID)
                                         throws oracle.stellent.ridc.IdcClientException,
                                                java.io.IOException
Load the project
Specified by:
loadProject in interface ProjectAdapter
Overrides:
loadProject in class IdcProjectAdapter
Parameters:
siteID - the site ID
Returns:
the inputstream for the project file
Throws:
oracle.stellent.ridc.IdcClientException
java.io.IOException

getProjectLocation

public java.lang.String getProjectLocation(java.lang.String siteID)
A friendly string showing the project location, usually in URL format
Parameters:
siteID - the site ID
Returns:
a string for the location

isProjectUpdated

public boolean isProjectUpdated(ProjectManager projectManager,
                                java.lang.String siteID)
                         throws oracle.stellent.ridc.IdcClientException
Determine if a new project is available
Specified by:
isProjectUpdated in interface ProjectAdapter
Overrides:
isProjectUpdated in class IdcProjectAdapter
Parameters:
siteID - the site ID
projectManager - ProjectService that actually holds the project and tokens
Returns:
true if a new project is available
Throws:
oracle.stellent.ridc.IdcClientException

flushProject

public void flushProject(java.lang.String siteID)
                  throws java.io.IOException
Flush any cached project
Parameters:
siteID - the site ID
Throws:
java.io.IOException

getProjectPath

protected java.lang.String getProjectPath(java.lang.String siteID)
Get the relative location for the given site ID
Parameters:
siteID - the site ID
Returns:
the relative location

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.