public class RightsManagerRightsApi extends Api
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_LASTERRORCODE
Field name of the last error code inserted in context.
|
static String |
CONTEXT_LASTEXCEPTION
Field name of the last api exception inserted in context.
|
protected static org.slf4j.Logger |
LOGGER
The logging toolkit.
|
| Constructor and Description |
|---|
RightsManagerRightsApi(XWikiContext context)
Create an instance of RightsManageRightsApi.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
getParentPreference(String spaceOrPage)
Get the document containing inherited rights of provided document.
|
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRightspublic static final String CONTEXT_LASTERRORCODE
public static final String CONTEXT_LASTEXCEPTION
protected static final org.slf4j.Logger LOGGER
public RightsManagerRightsApi(XWikiContext context)
context - the XWiki context.public Document getParentPreference(String spaceOrPage) throws XWikiException
spaceOrPage - the space of page where to get XWikiRights. If null get wiki rights.XWikiException - error when browsing rights preferences.Copyright © 2004–2021 XWiki. All rights reserved.