public class CreateActionRequestHandler extends Object
| Constructor and Description |
|---|
CreateActionRequestHandler(XWikiContext context) |
public CreateActionRequestHandler(XWikiContext context)
context - the XWikiContext for which to handle the request.public void processRequest()
throws XWikiException
XWikiException - if problems occurpublic DocumentReference getNewDocumentReference()
null if a no document can be created
(because the conditions are not met)public boolean hasTemplate()
public boolean isTemplateProviderAllowedToCreateInCurrentSpace()
true if the creation is allowed, false otherwisepublic boolean isDocumentAlreadyExisting(XWikiDocument newDocument)
newDocument - the new document to check if it already exists@Unstable public boolean isDocumentPathTooLong(DocumentReference reference)
reference - the new document reference to checkXWikiDocument.getLocalReferenceMaxLength().@Deprecated public org.apache.velocity.VelocityContext getVelocityContext()
getCurrentScriptContext() insteadVelocityContext for the context we are handlingprotected ContextualAuthorizationManager getAuthManager()
protected ScriptContext getCurrentScriptContext()
public SpaceReference getSpaceReference()
public boolean isSpace()
public List<Document> getAvailableTemplateProviders()
public List<Document> getRecommendedTemplateProviders()
public BaseObject getTemplateProvider()
null if none was setpublic String getType()
null if none was setCopyright © 2004–2021 XWiki. All rights reserved.