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.site
Class ProjectManager

java.lang.Object
  extended by oracle.stellent.wcm.server.site.ProjectManager


public class ProjectManager
extends java.lang.Object

Project service keeps track of project XML files, fire events, and manages the lifecycle of the project.


Nested Class Summary
protected static class ProjectManager.ProjectReference
          Internal reference to a project and associated data

 

Constructor Summary
ProjectManager(ProjectAdapter projectAdapter, EventProcessor eventProcessor)
          ProjectManager instance

 

Method Summary
 void addOrRefreshProject(java.lang.String siteId)
          Add or refresh a project from by reloading from ProjectAdapter
 java.util.Set<java.lang.String> getAvailableProjects()
           
 Project getProject(java.lang.String siteId)
          Retrieve the project associated with the given site ID
 ProjectAdapter getProjectAdapter()
           
 java.lang.Exception getProjectError(java.lang.String siteID)
           
 ProjectSyncManager getProjectSyncManager()
           
 java.lang.String getProjectToken(java.lang.String siteID)
           
protected  boolean initializeSite(SiteConfiguration siteConfig)
          Initialize a give site
 void initializeSites(java.util.Collection<SiteConfiguration> sites)
          Initialize the given sites; adds an entry into the project manager for each listed site.
 ProjectManager.ProjectReference loadProject(java.lang.String siteId)
          Load a project from ProjectAdapter
 Project parseProjectInputStream(java.io.InputStream inputStream)
          Load the project InputStream
 void removeProject(java.lang.String siteId)
          Unregister the project

 

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

 

Constructor Detail

ProjectManager

public ProjectManager(ProjectAdapter projectAdapter,
                      EventProcessor eventProcessor)
ProjectManager instance
Parameters:
projectAdapter - the project adapter
eventProcessor - the event processor

Method Detail

initializeSites

public void initializeSites(java.util.Collection<SiteConfiguration> sites)
Initialize the given sites; adds an entry into the project manager for each listed site. Note: no exceptions thrown here, calls can be made to getProjectError(String) for an error for each site
Parameters:
sites - the site configuration objects to intialize

getProjectAdapter

public ProjectAdapter getProjectAdapter()
Returns:
the project adapter associated with this manager

getProjectSyncManager

public ProjectSyncManager getProjectSyncManager()
Returns:
the manager object used to sync the service with the project events

getProject

public Project getProject(java.lang.String siteId)
Retrieve the project associated with the given site ID
Parameters:
siteId - the site ID
Returns:
the project or null if not registered

getAvailableProjects

public java.util.Set<java.lang.String> getAvailableProjects()
Returns:
a collection of the available project names

getProjectError

public java.lang.Exception getProjectError(java.lang.String siteID)
Parameters:
siteID - the site ID
Returns:
the error for the given project

getProjectToken

public java.lang.String getProjectToken(java.lang.String siteID)
Parameters:
siteID - the site ID
Returns:
token that identifies the version of the contents, null if there is no token information

parseProjectInputStream

public Project parseProjectInputStream(java.io.InputStream inputStream)
                                throws ProjectException
Load the project InputStream
Parameters:
inputStream - the stream to the structure content
Returns:
the parsed structure
Throws:
ProjectException

removeProject

public void removeProject(java.lang.String siteId)
Unregister the project
Parameters:
siteId - the site ID

addOrRefreshProject

public void addOrRefreshProject(java.lang.String siteId)
Add or refresh a project from by reloading from ProjectAdapter
Parameters:
siteId - the site ID

loadProject

public ProjectManager.ProjectReference loadProject(java.lang.String siteId)
Load a project from ProjectAdapter
Parameters:
siteId - the site ID
Returns:
the project reference which includes any errors encoutered

initializeSite

protected boolean initializeSite(SiteConfiguration siteConfig)
Initialize a give site
Parameters:
siteConfig - the site configuration object
Returns:
true if the site was initialized successfully

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.