Package org.labkey.remoteapi.security
Class BaseCreateFolderCommand<COMMAND extends BaseCreateFolderCommand<?>>
java.lang.Object
org.labkey.remoteapi.Command<ResponseType,org.apache.hc.client5.http.classic.methods.HttpPost>
org.labkey.remoteapi.PostCommand<CommandResponse>
org.labkey.remoteapi.security.BaseCreateFolderCommand<COMMAND>
- All Implemented Interfaces:
HasRequiredVersion
- Direct Known Subclasses:
CreateFolderCommand
,CreateProjectCommand
public abstract class BaseCreateFolderCommand<COMMAND extends BaseCreateFolderCommand<?>>
extends PostCommand<CommandResponse>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.labkey.remoteapi.Command
Command.CommonParameters, Command.Response
-
Field Summary
Fields inherited from class org.labkey.remoteapi.Command
CONTENT_TYPE_JSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hc.client5.http.classic.methods.HttpPost
createRequest
(URI uri) Creates theHttpPost
instance used for the request.protected List<org.apache.hc.core5.http.message.BasicNameValuePair>
setFolderType
(String folderType) setTemplateIncludeSubfolders
(boolean templateIncludeSubfolders) setTemplateSourceId
(String templateSourceId) setTemplateWriterTypes
(String... templateWriterTypes) Methods inherited from class org.labkey.remoteapi.PostCommand
getJsonObject
Methods inherited from class org.labkey.remoteapi.Command
_execute, createParameterMap, createResponse, execute, getActionName, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getRequiredVersion, getTimeout, setRequiredVersion, setTimeout
-
Constructor Details
-
BaseCreateFolderCommand
-
-
Method Details
-
setName
-
setFolderType
-
setTemplateSourceId
-
setTemplateIncludeSubfolders
-
setTemplateWriterTypes
-
getPostData
-
createRequest
Description copied from class:PostCommand
Creates theHttpPost
instance used for the request. Override to modify the HttpPost object before use or to send something other than JSON in the post body. In your override, create the HttpPost and set the request entity appropriately.- Overrides:
createRequest
in classPostCommand<CommandResponse>
- Parameters:
uri
- the uri to convert- Returns:
- The PostMethod object.
-