com.xpn.xwiki.plugin.workspacesmanager
Class Workspace

java.lang.Object
  extended by com.xpn.xwiki.api.Api
      extended by com.xpn.xwiki.api.Document
          extended by com.xpn.xwiki.plugin.spacemanager.impl.SpaceImpl
              extended by com.xpn.xwiki.plugin.workspacesmanager.Workspace
All Implemented Interfaces:
com.xpn.xwiki.plugin.spacemanager.api.Space

public class Workspace
extends com.xpn.xwiki.plugin.spacemanager.impl.SpaceImpl

Workspaces implementation.

Version:
$Id: $

Field Summary
static java.lang.String WORKSPACE_ACCESSLEVEL
           
static java.lang.String WORKSPACE_ACCESSLEVEL_PRIVATE
           
static java.lang.String WORKSPACE_ACCESSLEVEL_PUBLIC
           
static java.lang.String WORKSPACE_ACCESSLEVEL_RESTRICTED
           
static java.lang.String WORKSPACE_COLOR
           
static java.lang.String WORKSPACE_COLOR_DEFAULT
           
static java.lang.String[] WORKSPACE_COLOR_VALUES
           
static java.lang.String WORKSPACE_DEFAULTACCESSLEVEL
           
static java.lang.String WORKSPACE_DEFAULTACCESSLEVEL_USER
           
static java.lang.String WORKSPACE_SPACETYPE
           
static java.lang.String WORKSPACE_SPACETYPE_DEFAULT
           
static java.lang.String WORKSPACE_SPACETYPE_ORG
           
static java.lang.String WORKSPACE_SPACETYPE_USER
           
static java.lang.String WORKSPACE_SPACETYPE_WORK
           
 
Fields inherited from class com.xpn.xwiki.plugin.spacemanager.impl.SpaceImpl
manager, SPACE_DESCRIPTION, SPACE_DISPLAYTITLE, SPACE_LANGUAGE, SPACE_POLICY, SPACE_TYPE, SPACE_URLSHORTCUT
 
Fields inherited from class com.xpn.xwiki.api.Document
cloned, currentObj, doc
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
Workspace(java.lang.String spaceName, java.lang.String spaceTitle, boolean create, com.xpn.xwiki.plugin.spacemanager.impl.SpaceManagerImpl manager, com.xpn.xwiki.XWikiContext context)
           
 
Method Summary
 java.lang.String getAccessLevel()
           
 java.lang.String getColor()
           
 void setAccessLevel(java.lang.String level)
           
 void updateSpaceFromRequest()
           
 
Methods inherited from class com.xpn.xwiki.plugin.spacemanager.impl.SpaceImpl
createNewSpaceDoc, getDescription, getDisplayTitle, getFieldNames, getHomeShortcutURL, getHomeURL, getPolicy, getPreference, getSpaceName, getType, initSpaceDoc, isDeleted, setCreationDate, setCreator, setDescription, setDisplayTitle, setHomeShortcutURL, setPolicy, setType, validateSpaceData
 
Methods inherited from class com.xpn.xwiki.api.Document
addAttachment, addAttachment, addAttachments, addAttachments, addObjectFromRequest, addObjectFromRequest, addObjectFromRequest, addObjectsFromRequest, addObjectsFromRequest, checkAccess, createNewObject, delete, deleteDocument, deleteWithProgrammingRights, display, display, display, display, display, display, displayEdit, displayForm, displayForm, displayForm, displayHidden, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayRendered, displayTooltip, displayTooltip, displayView, equals, get, getActiveClass, getArchive, getAttachment, getAttachmentDiff, getAttachmentList, getAttachmentRevisionURL, getAttachmentRevisionURL, getAttachmentURL, getAttachmentURL, getAttachmentURL, getAuthor, getBacklinks, getClassDiff, getComment, getComments, getComments, getContent, getContentAuthor, getContentDiff, getContentUpdateDate, getCreationDate, getCreator, getCurrentMonthPageStats, getCurrentMonthRefStats, getCurrentMonthWebStats, getDate, getDefaultEditURL, getDefaultLanguage, getDefaultTemplate, getDoc, getDocument, getDocumentArchive, getDocumentRevision, getEditURL, getEditURL, getEscapedContent, getExternalURL, getExternalURL, getExternalURL, getFirstObject, getFormat, getFullName, getId, getIncludedMacros, getIncludedPages, getLanguage, getLastChanges, getLinkedPages, getLinks, getLocked, getLockingDate, getLockingUser, getMetaDataDiff, getName, getObject, getObject, getObject, getObject, getObject, getObjectDiff, getObjectNumbers, getObjects, getObjects, getParent, getParentURL, getPrefixedFullName, getPreviousDocument, getPreviousVersion, getRCSVersion, getRealLanguage, getRecentRevisions, getRecentRevisions, getRenderedContent, getRenderedContent, getRenderedContentDiff, getRevisionInfo, getRevisions, getSpace, getTagList, getTags, getTagsPossibleValues, getTemplate, getTextArea, getTitle, getTOC, getTranslatedContent, getTranslatedContent, getTranslatedDocument, getTranslatedDocument, getTranslationList, getURL, getURL, getURL, getValue, getValue, getVersion, getVersionHashCode, getWeb, getWiki, getXMLContent, getXMLDiff, getxWikiClass, getxWikiClasses, getxWikiObjects, hasAccessLevel, hasAccessLevel, insertText, isAdvancedContent, isCreator, isCurrentLocalUserPage, isCurrentUserCreator, isCurrentUserPage, isFromCache, isMinorEdit, isMostRecent, isNew, isProgrammaticContent, newObject, removeObject, removeObjects, rename, rename, renameDocument, renameDocument, save, save, saveDocument, saveWithProgrammingRights, saveWithProgrammingRights, set, set, setComment, setContent, setCustomClass, setDefaultTemplate, setMinorEdit, setParent, setTitle, toString, toXML, toXMLDocument, updateObjectFromRequest, updateObjectFromRequest, updateObjectsFromRequest, updateObjectsFromRequest, use, use, use, validate, validate
 
Methods inherited from class com.xpn.xwiki.api.Api
checkProgrammingRights, getXWikiContext, hasAdminRights, hasProgrammingRights
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.xpn.xwiki.plugin.spacemanager.api.Space
display, getCreator, isNew, save, saveWithProgrammingRights
 

Field Detail

WORKSPACE_SPACETYPE

public static final java.lang.String WORKSPACE_SPACETYPE
See Also:
Constant Field Values

WORKSPACE_ACCESSLEVEL

public static final java.lang.String WORKSPACE_ACCESSLEVEL
See Also:
Constant Field Values

WORKSPACE_COLOR

public static final java.lang.String WORKSPACE_COLOR
See Also:
Constant Field Values

WORKSPACE_ACCESSLEVEL_RESTRICTED

public static final java.lang.String WORKSPACE_ACCESSLEVEL_RESTRICTED
See Also:
Constant Field Values

WORKSPACE_ACCESSLEVEL_PUBLIC

public static final java.lang.String WORKSPACE_ACCESSLEVEL_PUBLIC
See Also:
Constant Field Values

WORKSPACE_ACCESSLEVEL_PRIVATE

public static final java.lang.String WORKSPACE_ACCESSLEVEL_PRIVATE
See Also:
Constant Field Values

WORKSPACE_SPACETYPE_USER

public static final java.lang.String WORKSPACE_SPACETYPE_USER
See Also:
Constant Field Values

WORKSPACE_SPACETYPE_ORG

public static final java.lang.String WORKSPACE_SPACETYPE_ORG
See Also:
Constant Field Values

WORKSPACE_SPACETYPE_WORK

public static final java.lang.String WORKSPACE_SPACETYPE_WORK
See Also:
Constant Field Values

WORKSPACE_SPACETYPE_DEFAULT

public static final java.lang.String WORKSPACE_SPACETYPE_DEFAULT
See Also:
Constant Field Values

WORKSPACE_DEFAULTACCESSLEVEL

public static final java.lang.String WORKSPACE_DEFAULTACCESSLEVEL
See Also:
Constant Field Values

WORKSPACE_DEFAULTACCESSLEVEL_USER

public static final java.lang.String WORKSPACE_DEFAULTACCESSLEVEL_USER
See Also:
Constant Field Values

WORKSPACE_COLOR_VALUES

public static final java.lang.String[] WORKSPACE_COLOR_VALUES

WORKSPACE_COLOR_DEFAULT

public static final java.lang.String WORKSPACE_COLOR_DEFAULT
See Also:
Constant Field Values
Constructor Detail

Workspace

public Workspace(java.lang.String spaceName,
                 java.lang.String spaceTitle,
                 boolean create,
                 com.xpn.xwiki.plugin.spacemanager.impl.SpaceManagerImpl manager,
                 com.xpn.xwiki.XWikiContext context)
          throws com.xpn.xwiki.plugin.spacemanager.api.SpaceManagerException
Throws:
com.xpn.xwiki.plugin.spacemanager.api.SpaceManagerException
Method Detail

updateSpaceFromRequest

public void updateSpaceFromRequest()
                            throws com.xpn.xwiki.plugin.spacemanager.api.SpaceManagerException
Specified by:
updateSpaceFromRequest in interface com.xpn.xwiki.plugin.spacemanager.api.Space
Overrides:
updateSpaceFromRequest in class com.xpn.xwiki.plugin.spacemanager.impl.SpaceImpl
Throws:
com.xpn.xwiki.plugin.spacemanager.api.SpaceManagerException

setAccessLevel

public void setAccessLevel(java.lang.String level)

getAccessLevel

public java.lang.String getAccessLevel()

getColor

public java.lang.String getColor()


Copyright © 2004-2008 XWiki. All Rights Reserved.