Skip navigation links

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


oracle.webcenter.spaces
Class BaseSpace

java.lang.Object
  extended by oracle.webcenter.spaces.BaseSpace

Direct Known Subclasses:
Space, SpaceTemplate

public abstract class BaseSpace
extends java.lang.Object

This class is a base class for all group spaces and all group space templates. It offers common framework for space/template and the methods that can be used across multiple extending classes


Field Summary
protected  java.lang.String baseSpaceName
           

 

Constructor Summary
BaseSpace(java.lang.String baseSpaceName)
          Default Constructor

 

Method Summary
abstract  BaseSpace clone(oracle.mds.core.MDSSession session, java.lang.String newSpaceName, java.lang.String newSpaceGUID, java.lang.String description, java.lang.String displayName, java.lang.String keywords, boolean closed)
          Clone method for a Space.
abstract  boolean getClosed()
          This method returns the closed status of the group space
abstract  java.lang.String getDescription()
          This method returns the description of the Group Space
abstract  java.lang.String getDisplayName()
          This method returns the displayName of the Group Space
abstract  GSMetadata getGSMetadata()
          This method returns the GSMetadata that contains limited details of the space object
abstract  java.lang.String getGUID(oracle.mds.core.MDSSession session)
          This API gets the GUID [globally unique identifier] for a given Space.
abstract  java.lang.String getKeywords()
          This method returns the keywords for the Group Space
abstract  oracle.webcenter.spaces.beans.SpaceMetadata getMetadata(oracle.mds.core.MDSSession session, boolean readOnly)
          This method is responsible for getting the mutable/immutable SpaceMetadata object for a given Space Object.
abstract  java.lang.String getMetadataPath()
          This API returns the MetadataPath
abstract  java.lang.String getMetadataRootDir()
          This API returns the metadataRootDir
abstract  java.lang.String getName(oracle.mds.core.MDSSession session)
          This API gets the name of the Space object from MDS metadata
abstract  oracle.webcenter.spaces.beans.SpacePreferencesMetadata getPreferenceMetadata(oracle.mds.core.MDSSession session, boolean readOnly)
          This method is responsible for getting the mutable SpacePreferencesMetadata object for a given Spaces.
 java.util.List<Service> getProvisionedServices()
          provision a particular service for the specified scope.
protected static java.lang.String getScopeMOPath(java.lang.String scope)
           
abstract  oracle.webcenter.webcenterapp.security.WCSecurityManager getSecurityManager()
          This API instantiates Security metadata for a given Space and returns the instance.
abstract  oracle.webcenter.webcenterapp.security.WCSecurityManager getSecurityManager(oracle.security.jps.service.policystore.PolicyStore policyStore)
          This API instantiates Security metadata for a given Space and returns the instance.
abstract  void setClosed(boolean closed)
          This method sets whether the Group Space is closed
abstract  void setDescription(java.lang.String description)
          This method returns the description of the Group Space
abstract  void setDisplayName(java.lang.String displayName)
          This method sets the displayName of Group Space
abstract  void setKeywords(java.lang.String keywords)
          This method sets the keywords for Group Space

 

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

 

Field Detail

baseSpaceName

protected java.lang.String baseSpaceName

Constructor Detail

BaseSpace

public BaseSpace(java.lang.String baseSpaceName)
Default Constructor

Method Detail

getName

public abstract java.lang.String getName(oracle.mds.core.MDSSession session)
                                  throws SpacesException
This API gets the name of the Space object from MDS metadata
Parameters:
session - MDSSession on which it should get the metadata
Returns:
String name of the Space
Throws:
SpacesException - Throws SpacesException if the metadata for given Space is not found

getGUID

public abstract java.lang.String getGUID(oracle.mds.core.MDSSession session)
                                  throws SpacesException
This API gets the GUID [globally unique identifier] for a given Space. This metadata is maintained by MDS
Parameters:
session - MDSSession on which it should get the metadata
Returns:
String GUID of the Space
Throws:
SpacesException - Throws SpacesException if the GUID metadata for given Space is not found

getMetadata

public abstract oracle.webcenter.spaces.beans.SpaceMetadata getMetadata(oracle.mds.core.MDSSession session,
                                                                        boolean readOnly)
                                                                 throws SpacesException
This method is responsible for getting the mutable/immutable SpaceMetadata object for a given Space Object. Depending upon the requirement, this API either returns read only metadata or writable metadata.
Parameters:
session - MDSSession on which it should get the metadata
readOnly - Returns readOnly metadata or writable metadata depending upon the flag value. When false, returns writable metadata
Returns:
SpaceMetadata Metadata for Space object. This metadata comes from MDS
Throws:
SpacesException - Throws SpacesException if the metadata for given Space is not found

getPreferenceMetadata

public abstract oracle.webcenter.spaces.beans.SpacePreferencesMetadata getPreferenceMetadata(oracle.mds.core.MDSSession session,
                                                                                             boolean readOnly)
                                                                                      throws SpacesException
This method is responsible for getting the mutable SpacePreferencesMetadata object for a given Spaces. Depending upon the requirement, this API either returns read only metadata or writable metadata.
Parameters:
session - MDSSession on which it should get the metadata
readOnly - Returns readOnly metadata or writable metadata depending upon the flag value
Returns:
SpacesPreferencesMetadata Preferences Metadata for Space object. This metadata comes from MDS
Throws:
SpacesException - Throws SpacesException if the metadata for given Space is not found

getSecurityManager

public abstract oracle.webcenter.webcenterapp.security.WCSecurityManager getSecurityManager(oracle.security.jps.service.policystore.PolicyStore policyStore)
                                                                                     throws SpacesException,
                                                                                            oracle.webcenter.webcenterapp.security.WCSecurityException
This API instantiates Security metadata for a given Space and returns the instance. It instantiates the security manager with Space's default policy store i.e. WebCenter Application's policy store. One should use this API to get hold of Space's Security manager
Parameters:
policyStore - Policy Store instance
Returns:
Returns SecurityManager object that represents this Space
Throws:
SpacesException - if Security manager can not be instantiated for this Space
oracle.webcenter.webcenterapp.security.WCSecurityException

getSecurityManager

public abstract oracle.webcenter.webcenterapp.security.WCSecurityManager getSecurityManager()
                                                                                     throws SpacesException,
                                                                                            oracle.webcenter.webcenterapp.security.WCSecurityException
This API instantiates Security metadata for a given Space and returns the instance. It instantiates the security manager with Space's default policy store i.e. WebCenter Application's policy store. One should use this API to get hold of Space's Security manager
Returns:
Returns SecurityManager object that represents this Space
Throws:
SpacesException - if Security manager can not be instantiated for this Space
oracle.webcenter.webcenterapp.security.WCSecurityException

clone

public abstract BaseSpace clone(oracle.mds.core.MDSSession session,
                                java.lang.String newSpaceName,
                                java.lang.String newSpaceGUID,
                                java.lang.String description,
                                java.lang.String displayName,
                                java.lang.String keywords,
                                boolean closed)
                         throws SpacesException
Clone method for a Space. This method creates a clone of an existing Space into a new location and returns it as an object
Parameters:
session - MDSSession on which clone should operate upon
newSpaceName - Name of the new Space
newSpaceGUID - GUID of the new Space
description - The description of the Group Space
displayName - The display name of the Group Space
keywords - The keywords for the Group Space
closed - status of the Group Space
Returns:
The Space class for newly cloned space
Throws:
SpacesException - Throws SpacesException if a clone for a given Space can not be created

getMetadataRootDir

public abstract java.lang.String getMetadataRootDir()
This API returns the metadataRootDir
Returns:
String The root directory of the metadata path

getMetadataPath

public abstract java.lang.String getMetadataPath()
This API returns the MetadataPath
Returns:
String The metadata path

setDisplayName

public abstract void setDisplayName(java.lang.String displayName)
This method sets the displayName of Group Space
Parameters:
displayName -

getDisplayName

public abstract java.lang.String getDisplayName()
This method returns the displayName of the Group Space
Returns:
displayName

setKeywords

public abstract void setKeywords(java.lang.String keywords)
This method sets the keywords for Group Space
Parameters:
keywords -

getKeywords

public abstract java.lang.String getKeywords()
This method returns the keywords for the Group Space
Returns:
keywords

setClosed

public abstract void setClosed(boolean closed)
This method sets whether the Group Space is closed
Parameters:
closed -

getClosed

public abstract boolean getClosed()
This method returns the closed status of the group space
Returns:
closed

setDescription

public abstract void setDescription(java.lang.String description)
This method returns the description of the Group Space
Parameters:
description -

getDescription

public abstract java.lang.String getDescription()
This method returns the description of the Group Space
Returns:
description

getProvisionedServices

public java.util.List<Service> getProvisionedServices()
                                               throws SpacesException
provision a particular service for the specified scope.
Returns:
List of Service which are provisioned for this Space
Throws:
SpacesException

getScopeMOPath

protected static java.lang.String getScopeMOPath(java.lang.String scope)

getGSMetadata

public abstract GSMetadata getGSMetadata()
                                  throws SpacesException
This method returns the GSMetadata that contains limited details of the space object
Returns:
GSMetadata
Throws:
SpacesException

Skip navigation links

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


Copyright © 2009, 2010, Oracle. All rights reserved.