Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.webcenter.webcenterapp.application
Interface WCApplication


public interface WCApplication

WCApplication class is a manager class responsible for managing all @[link WC} objects. It also acts as a frontend for all the external applications which try to get access to different components of WCApplication. This class for webcenter which acts as a wrapper over the jaxb generated classes and the security API's. This acts as the central classs from which is used to get and set configuration values on the webcenter instance. ne should always get the WCApplication from @{link WCApplicationFactory}.

The following code snippet depicts how one can get hold of WCApplication:
WCApplicationFactory fact = FactoryFinder.getFactory(WCApplicationFactory.class.getCanonicalName());
WCApplication application = fact.getWCApplication();


Method Summary
 oracle.webcenter.webcenterapp.beans.WebCenterMetadata getApplicationConfig()
          This method is responsible for returning the bean carrying webcenter application configuration information.
 java.lang.String getApplicationName()
           
 WebcenterSpacesAppSoaConfig getConnectionConfig()
          Get the application connection config from adf-config.
 oracle.webcenter.webcenterapp.security.WCSecurityManager getGlobalSecurityManager(oracle.mds.core.MDSSession session)
          This method returns global security manager for WebCenter Application.
 oracle.webcenter.webcenterapp.security.WCSecurityManager getGlobalSecurityManager(oracle.mds.core.MDSSession session, oracle.security.jps.service.policystore.PolicyStore policyStore)
          This method returns global security manager for WebCenter Application.
 oracle.webcenter.webcenterapp.links.WCLinksManager getLinksManager(oracle.mds.core.MDSSession session)
          This API is responsible for returning the Links Manager for Webcenter Application.
 oracle.webcenter.webcenterapp.shell.pages.WCPagesManager getPagesManager()
          This API is responsible for returning the Pages Manager for the WebCenter Spaces application.
 oracle.webcenter.webcenterapp.preferences.WCPreferencesManager getPreferencesManager(oracle.mds.core.MDSSession session)
          This API is responsible for returning preferences manager.
 oracle.webcenter.webcenterapp.security.WCSecurityManager getSecurityManager(oracle.mds.core.MDSSession session)
          This method returns Security manager for WebCenter Application.
 oracle.webcenter.webcenterapp.shell.pages.WCSiteTemplatesManager getSiteTemplatesManager()
          Get the application name for the policy store.
 boolean isMultiTenantModeEnabled()
          Returns whether the application is currently in multi-tenant mode.

 

Method Detail

getApplicationConfig

oracle.webcenter.webcenterapp.beans.WebCenterMetadata getApplicationConfig()
                                                                           throws oracle.webcenter.webcenterapp.WebCenterException
This method is responsible for returning the bean carrying webcenter application configuration information.

EL: #{WCAppContext.application.applicationConfig}

Returns:
WC Application Config metadata bean
Throws:
oracle.webcenter.webcenterapp.WebCenterException - if there's a problem retrieving the bean

getSecurityManager

oracle.webcenter.webcenterapp.security.WCSecurityManager getSecurityManager(oracle.mds.core.MDSSession session)
                                                                            throws oracle.webcenter.webcenterapp.WebCenterException
This method returns Security manager for WebCenter Application. This security manager is a scoped security manager and it should be used to do all sorts of security operations for Webcenter Application
Parameters:
session - Current MDS Session:q
Returns:
Security Manager class
Throws:
oracle.webcenter.webcenterapp.WebCenterException

getGlobalSecurityManager

oracle.webcenter.webcenterapp.security.WCSecurityManager getGlobalSecurityManager(oracle.mds.core.MDSSession session,
                                                                                  oracle.security.jps.service.policystore.PolicyStore policyStore)
                                                                                  throws oracle.webcenter.webcenterapp.WebCenterException
This method returns global security manager for WebCenter Application. This security manager is not scoped to any application. It should be used for all sorts of global operations like export, import etc.
Parameters:
session - Current MDS Session
policyStore - Policy store on which the security manager should be initialized
Returns:
Security Manager class
Throws:
oracle.webcenter.webcenterapp.WebCenterException

getGlobalSecurityManager

oracle.webcenter.webcenterapp.security.WCSecurityManager getGlobalSecurityManager(oracle.mds.core.MDSSession session)
                                                                                  throws oracle.webcenter.webcenterapp.WebCenterException
This method returns global security manager for WebCenter Application. This security manager is not scoped to any application. It should be used for all sorts of global operations like export, import etc.
Parameters:
session - Current MDS Session
Returns:
Security Manager class
Throws:
oracle.webcenter.webcenterapp.WebCenterException

getPreferencesManager

oracle.webcenter.webcenterapp.preferences.WCPreferencesManager getPreferencesManager(oracle.mds.core.MDSSession session)
                                                                                     throws oracle.webcenter.webcenterapp.WebCenterException
This API is responsible for returning preferences manager. With Preferences manager class global user preferences can be maintained
Parameters:
session - Current MDS Session
Returns:
Preferences manager for given user
Throws:
oracle.webcenter.webcenterapp.WebCenterException

getLinksManager

oracle.webcenter.webcenterapp.links.WCLinksManager getLinksManager(oracle.mds.core.MDSSession session)
                                                                   throws oracle.webcenter.webcenterapp.WebCenterException
This API is responsible for returning the Links Manager for Webcenter Application. WCLinksManager class manages interaction with MDS related to Application Navigator and Favorites and all other such application who would use AppLinks schema
Parameters:
session - Current MDS Session
Returns:
Application Links manager for a given user
Throws:
oracle.webcenter.webcenterapp.WebCenterException

getPagesManager

oracle.webcenter.webcenterapp.shell.pages.WCPagesManager getPagesManager()
This API is responsible for returning the Pages Manager for the WebCenter Spaces application.
Returns:
The Pages Manager for this application

getSiteTemplatesManager

oracle.webcenter.webcenterapp.shell.pages.WCSiteTemplatesManager getSiteTemplatesManager()
Get the application name for the policy store.
Returns:
String application name

getApplicationName

java.lang.String getApplicationName()

getConnectionConfig

WebcenterSpacesAppSoaConfig getConnectionConfig()
Get the application connection config from adf-config.

isMultiTenantModeEnabled

boolean isMultiTenantModeEnabled()
Returns whether the application is currently in multi-tenant mode.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


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