public abstract class Space extends BaseSpace
Space
class is one-to-one. This inerface provides
wrapper for all different APIs operations like metadata related operations,
security related operations, preferences related operations etc.
This class providers a uniform place to access all sorts of sub-components
for Space. This API should be accessed through SpacesManager
class.
Depending upon underlying implementation, different methods are supported.
Following is the sample snippet of the code:
SpacesManager manager = SpacesManagerFactory.getSpacesManager();
Space mySpace = SpacesManager.getSpace("FinanceProject");
SpacesManagerFactory
,
SpacesManager
,
Serialized FormbaseSpaceName
Constructor and Description |
---|
Space(java.lang.String spaceName) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addCustomAttribute(java.lang.String name,
java.lang.String value)
Add the newly created custom attributes for a space in metadata
|
abstract void |
addListener(oracle.webcenter.spaces.GroupSpaceListener listener)
Add space event listener
|
abstract Space |
clone(oracle.mds.core.MDSSession session,
SpaceCreationOptions option)
Clone method for a Space.
|
abstract Space |
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)
Deprecated.
use clone(MDSSession session, String newSpaceName,
SpaceCreationOptions option)
|
abstract void |
createTags(java.lang.String tagwords,
java.lang.String username,
boolean shared)
Create tags
|
abstract void |
deleteCustomAttribute(java.lang.String name)
Delete a custom attributes for a space from the metadata
|
abstract void |
editCustomAttribute(java.lang.String name,
java.lang.String value)
Edit a custom attributes for a space from the metadata
|
abstract java.lang.String |
getAddMemberWelcomeMessage()
Get the add member welcome message for a given space
|
abstract java.util.List<Space> |
getChildren()
Returns all the child space objects for this space.
|
abstract java.util.List |
getCustomAttribute()
API List all the custom attributes set for the space
|
abstract java.lang.String |
getInviteMemberWelcomeMessage()
Get the invite member welcome message for a given space
|
abstract java.lang.String |
getInviteNonMemberWelcomeMessage()
Get the invite nonmember welcome message for a given space
|
abstract MutableSpaceMetadata |
getMetadataForUpdate()
Returns a wrapper to the SpaceMetadata Bean which can be updated
and also provides an
option to commit the changes made to the SpaceMetadata Bean
|
abstract java.lang.String |
getMetadataPath()
Gets the metadata path for a given space MDS instance
|
abstract java.lang.String |
getMetadataRootDir()
Returns the root dir of the metadata
|
abstract Space |
getParent()
Returns the parent space object for this space.
|
abstract java.util.List<oracle.webcenter.framework.service.Service> |
getProvisionedServices()
provision a particular service for the specified scope.
|
abstract Space |
getRootAncestor()
Returns the root ancestor space object for this space.
|
abstract Space |
getSecurityParent()
Returns the parent space object that contains the security information
for this child space.
|
abstract oracle.webcenter.webcenterapp.serviceusages.beans.ServiceConfig |
getServiceConfigMetadata(oracle.mds.core.MDSSession session,
boolean readOnly)
Return the mutable
ServiceConfig metadata for a given Space object. |
abstract oracle.webcenter.webcenterapp.languagesupport.beans.WCLanguagesMetadata |
getSupportedLanguagesMetadata(oracle.mds.core.MDSSession session,
boolean readOnly)
This method returns the supported languages metadata for this space.
|
abstract java.lang.String |
getTagWords()
Get the tags
|
abstract java.lang.String |
getUserVisibleTagWords()
Get the tags for a particular resource
|
abstract void |
removeListener(oracle.webcenter.spaces.GroupSpaceListener listener)
Remove space event listener
|
abstract void |
setAddMemberWelcomeMessage(java.lang.String welcomeMessage)
Set the add member welcome message for a given Group Space
|
abstract void |
setInviteMemberWelcomeMessage(java.lang.String welcomeMessage)
Set the invite member welcome message for a given Group Space
|
abstract void |
setInviteNonMemberWelcomeMessage(java.lang.String welcomeMessage)
Set the invite nonmember welcome message for a given Group Space
|
disableService, enableService, getClosed, getDescription, getDisplayName, getGSMetadata, getGUID, getKeywords, getMetadata, getName, getOptionalProvisionedServices, getPreferenceMetadata, getScopeMOPath, getSecurityManager, getSecurityManager, isEnabled, provisionEnabledService, provisionService, setClosed, setDescription, setDisplayName, setKeywords, unProvisionService
public abstract java.lang.String getMetadataPath()
EL: #{spaceContext.space[spaceName].metadataPath}
#{spaceContext.currentSpace.metadataPath}
getMetadataPath
in class BaseSpace
public abstract java.lang.String getMetadataRootDir()
EL: #{spaceContext.space[spaceName].metadataRootDir}
#{spaceContext.currentSpace.metadataRootDir}
getMetadataRootDir
in class BaseSpace
public abstract oracle.webcenter.webcenterapp.serviceusages.beans.ServiceConfig getServiceConfigMetadata(oracle.mds.core.MDSSession session, boolean readOnly) throws oracle.webcenter.webcenterapp.WebCenterException
ServiceConfig
metadata for a given Space object.
If the service config metadata does not exist for this Space,
the WebCenter app's metadata will be returned.session
- MDSSession on which it should get the metadatareadOnly
- Whether a read-only or updatable metadata is required.oracle.webcenter.webcenterapp.WebCenterException
public abstract Space 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
in class BaseSpace
session
- MDSSession on which clone should operate uponnewSpaceName
- Name of the new SpacenewSpaceGUID
- GUID of the new Spacedescription
- description of the Group SpacedisplayName
- DisplayName of the Group Spacekeywords
- keywords for the Group Spaceclosed
- status for the Group SpaceSpacesException
- Throws SpacesException if a clone for a given
Space can not be createdpublic abstract Space clone(oracle.mds.core.MDSSession session, SpaceCreationOptions option) throws SpacesException
clone
in class BaseSpace
session
- MDSSession on which clone should operate uponoption
- The SpaceCreationOptions which contains space parameters used
for creating spaceSpacesException
- Throws SpacesException if a clone for a given
Space can not be createdpublic abstract void setAddMemberWelcomeMessage(java.lang.String welcomeMessage) throws SpacesException
welcomeMessage
- SpacesException
- if setting the message failspublic abstract java.lang.String getAddMemberWelcomeMessage() throws SpacesException
SpacesException
- if getter fails to read the messagepublic abstract java.lang.String getInviteMemberWelcomeMessage() throws SpacesException
SpacesException
- if getter fails to read the messagepublic abstract java.lang.String getInviteNonMemberWelcomeMessage() throws SpacesException
SpacesException
- if getter fails to read the messagepublic abstract void setInviteMemberWelcomeMessage(java.lang.String welcomeMessage) throws SpacesException
welcomeMessage
- SpacesException
- if setting the message failspublic abstract void setInviteNonMemberWelcomeMessage(java.lang.String welcomeMessage) throws SpacesException
welcomeMessage
- SpacesException
- if setting the message failspublic abstract MutableSpaceMetadata getMetadataForUpdate() throws SpacesException
SpacesException
public abstract void addCustomAttribute(java.lang.String name, java.lang.String value) throws SpacesException
name
- the name fo the custom attributevalue
- the value of the custom attributeSpacesException
public abstract void deleteCustomAttribute(java.lang.String name) throws SpacesException
name
- custom attributes name to be deletedSpacesException
public abstract void editCustomAttribute(java.lang.String name, java.lang.String value) throws SpacesException
name
- custom attributes name to be deletedvalue
- custom attributes value to be deletedSpacesException
public abstract java.util.List getCustomAttribute() throws SpacesException
SpacesException
public abstract void createTags(java.lang.String tagwords, java.lang.String username, boolean shared) throws SpacesException
tagwords
- tags that have to be created and saved to the backendusername
- name of the user who creates tagsshared
- whether the tags created are shared or notSpacesException
public abstract java.lang.String getUserVisibleTagWords() throws SpacesException
TaggingException
SpacesException
public abstract java.lang.String getTagWords() throws SpacesException
SpacesException
public abstract java.util.List<oracle.webcenter.framework.service.Service> getProvisionedServices() throws SpacesException
getProvisionedServices
in class BaseSpace
Service
which are provisioned for this SpaceSpacesException
public abstract java.util.List<Space> getChildren() throws SpacesException
EL: #{spaceContext.space[spaceName].children}
#{spaceContext.currentSpace.children}
SpacesException
- - if any error encountered.public abstract Space getParent() throws SpacesException
EL: #{spaceContext.space[spaceName].parent}
#{spaceContext.currentSpace.parent}
SpacesException
- - if any error encountered.public abstract Space getRootAncestor() throws SpacesException
EL: #{spaceContext.space[spaceName].rootAncestor}
#{spaceContext.currentSpace.rootAncestor}
SpacesException
- - if any error encountered.public abstract Space getSecurityParent() throws SpacesException
EL: #{spaceContext.space[spaceName].securityParent}
#{spaceContext.currentSpace.securityParent}
SpacesException
- - if any error encountered.public abstract void addListener(oracle.webcenter.spaces.GroupSpaceListener listener)
listener
- the gs s listenerpublic abstract void removeListener(oracle.webcenter.spaces.GroupSpaceListener listener)
listener
- the page service listenerpublic abstract oracle.webcenter.webcenterapp.languagesupport.beans.WCLanguagesMetadata getSupportedLanguagesMetadata(oracle.mds.core.MDSSession session, boolean readOnly) throws SpacesException
session
- - A MDSSession objectreadOnly
- - A boolean to indicate whether the returned MO is readOnly
or notSpacesException
- - in case of any error