Skip navigation links 
 
oracle.stellent.wcm.server.content.fs
Class FSProjectAdapter
java.lang.Object
   oracle.stellent.wcm.server.content.idc.IdcProjectAdapter
oracle.stellent.wcm.server.content.idc.IdcProjectAdapter
       oracle.stellent.wcm.server.content.fs.FSProjectAdapter
oracle.stellent.wcm.server.content.fs.FSProjectAdapter
- All Implemented Interfaces:
- ProjectAdapter
- 
public class FSProjectAdapter
 
- extends IdcProjectAdapter
Load the project files from the staging directory using the URL APIs.
 
 
  
 
| Field Summary | 
| static java.lang.String | APPLICATION_DIRECTORYlocation of the application files relative to the root
 | 
  
 
  
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
APPLICATION_DIRECTORY
public static final java.lang.String APPLICATION_DIRECTORY
- location of the application files relative to the root
FSProjectAdapter
public FSProjectAdapter(StagingConfiguration stagingConfig,
                        FileSystemLoader fsLoader)
FSProjectAdapter
public FSProjectAdapter(StagingConfiguration stagingConfig,
                        FileSystemLoader fsLoader,
                        IdcClientFactory idcFactory)
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:
- loadProjectin interface- ProjectAdapter
- Overrides:
- loadProjectin 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(ProjectFileManager projectManager,
                                java.lang.String siteID)
                         throws oracle.stellent.ridc.IdcClientException
- Determine if a new project is available
- 
- Specified by:
- isProjectUpdatedin interface- ProjectAdapter
- Overrides:
- isProjectUpdatedin 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 
 
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.