Package oracle.webcenter.spaces
Class BaseSpace
java.lang.Object
oracle.webcenter.spaces.BaseSpace
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Space
,SpaceTemplate
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
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BaseSpace
clone
(oracle.mds.core.MDSSession session, String newSpaceName, String newSpaceGUID, String description, String displayName, String keywords, boolean closed) Deprecated.Use the new API clone(MDSSession session, String newSpaceName, SpaceCreationOptions option)abstract BaseSpace
clone
(oracle.mds.core.MDSSession session, SpaceCreationOptions option) Clone method for a Space.abstract void
disableService
(String serviceID) This method disables the service, i.e.abstract void
enableService
(String serviceID) This method enables the service, i.e.abstract boolean
This method returns the closed status of the group spaceabstract String
This method returns the description of the Group Spaceabstract String
This method returns the displayName of the Group Spaceabstract GSMetadata
This method returns the GSMetadata that contains limited details of the space objectabstract String
getGUID
(oracle.mds.core.MDSSession session) This API gets the GUID [globally unique identifier] for a given Space.abstract String
This method returns the keywords for the Group Spaceabstract oracle.webcenter.spaces.beans.SpaceMetadata
getMetadata
(oracle.mds.core.MDSSession session, boolean readOnly) This method is responsible for getting the mutable/immutableSpaceMetadata
object for a given Space Object.abstract String
This API returns the MetadataPathabstract String
This API returns the metadataRootDirabstract String
getName
(oracle.mds.core.MDSSession session) This API gets the name of the Space object from MDS metadataThis API returns the list of optional services provisioned for that scopeabstract 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.abstract List<oracle.webcenter.framework.service.Service>
provision a particular service for the specified scope.protected static String
getScopeMOPath
(String scope) abstract oracle.webcenter.webcenterapp.security.WCSecurityManager
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 Boolean
This method tells whether the Optional tools are enabled on a Portal/Portal-template.abstract void
provisionEnabledService
(String serviceID) This method does the provisioning and role-mapping of the service.abstract void
provisionService
(oracle.webcenter.framework.service.Service service) provision a particular service for the specified scope.abstract void
setClosed
(boolean closed) This method sets whether the Group Space is closedabstract void
setDescription
(String description) This method returns the description of the Group Spaceabstract void
setDisplayName
(String displayName) This method sets the displayName of Group Spaceabstract void
setKeywords
(String keywords) This method sets the keywords for Group Spaceabstract void
unProvisionService
(oracle.webcenter.framework.service.Service service) Un-provision a particular service for the Space.
-
Field Details
-
baseSpaceName
-
-
Constructor Details
-
BaseSpace
Constructs the BaseSpace with a space name.- Parameters:
baseSpaceName
- the space name
-
-
Method Details
-
getName
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
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/immutableSpaceMetadata
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 metadatareadOnly
- 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 metadatareadOnly
- 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 Spaceoracle.webcenter.webcenterapp.security.WCSecurityException
-
getSecurityManager
public abstract oracle.webcenter.webcenterapp.security.WCSecurityManager getSecurityManager() throws SpacesException, oracle.webcenter.webcenterapp.security.WCSecurityExceptionThis 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 Spaceoracle.webcenter.webcenterapp.security.WCSecurityException
-
clone
public abstract BaseSpace clone(oracle.mds.core.MDSSession session, String newSpaceName, String newSpaceGUID, String description, String displayName, String keywords, boolean closed) throws SpacesException Deprecated.Use the new API clone(MDSSession session, String newSpaceName, SpaceCreationOptions option)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 uponnewSpaceName
- Name of the new SpacenewSpaceGUID
- GUID of the new Spacedescription
- The description of the Group SpacedisplayName
- The display name of the Group Spacekeywords
- The keywords for the Group Spaceclosed
- 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
-
clone
public abstract BaseSpace clone(oracle.mds.core.MDSSession session, SpaceCreationOptions option) 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 uponoption
- The SpaceCreationOptions which contains space parameters used for creating 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
This API returns the metadataRootDir- Returns:
- String The root directory of the metadata path
-
getMetadataPath
This API returns the MetadataPath- Returns:
- String The metadata path
-
setDisplayName
This method sets the displayName of Group Space- Parameters:
displayName
-
-
getDisplayName
This method returns the displayName of the Group Space- Returns:
- displayName
-
setKeywords
This method sets the keywords for Group Space- Parameters:
keywords
-
-
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
This method returns the description of the Group Space- Parameters:
description
-
-
getDescription
This method returns the description of the Group Space- Returns:
- description
-
getOptionalProvisionedServices
This API returns the list of optional services provisioned for that scope- Returns:
- description
-
getProvisionedServices
public abstract List<oracle.webcenter.framework.service.Service> getProvisionedServices() throws SpacesExceptionprovision a particular service for the specified scope.- Returns:
- List of
Service
which are provisioned for this Space - Throws:
SpacesException
-
getScopeMOPath
-
getGSMetadata
This method returns the GSMetadata that contains limited details of the space object- Returns:
- GSMetadata
- Throws:
SpacesException
-
unProvisionService
public abstract void unProvisionService(oracle.webcenter.framework.service.Service service) throws SpacesException Un-provision a particular service for the Space. Unprovisioning a service would remove the service from given Space- Parameters:
service
- Service object to be removed from the Space- Throws:
oracle.webcenter.command.CommandException
- Throws CommandException if service to be unprovisioned can't be unprovisionedSpacesException
- when any unexpected error happens
-
provisionService
public abstract void provisionService(oracle.webcenter.framework.service.Service service) throws SpacesException provision a particular service for the specified scope.- Parameters:
service
-- Throws:
SpacesException
-
enableService
This method enables the service, i.e. adds the metadata elementin space.xml (or spaceteplate.xml) with the serviceID example - spaceObject.enableService("oracle.webcenter.doclib");
- Throws:
SpacesException
-
disableService
This method disables the service, i.e. removes the metadata elementin space.xml (or spaceteplate.xml) corresponding to serviceID example - spaceObject.disableService("oracle.webcenter.doclib");
- Throws:
SpacesException
-
isEnabled
This method tells whether the Optional tools are enabled on a Portal/Portal-template. By enable, it means that the tool is required by the Portal/Portal-template but it is not provisioned yet. Based on this api, tools will be provisioned after Portal creation. example -Boolean isToolEnabled = spaceObject.isEnable("oracle.webcenter.doclib");
- Returns:
- Boolean - if the tool is enabled or not.
-
provisionEnabledService
This method does the provisioning and role-mapping of the service. This method is created so that services can call this to provision service on the fly, i.e. lazy provision the services- Throws:
SpacesException
-