public abstract class AbstractCommand extends Object
| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_checkName(String n) |
void |
addParams(org.json.JSONObject retObj) |
protected void |
checkAlreadyExists(IDiagramProfile profile,
String fileName,
String current) |
protected void |
checkUploadFile(String fileName,
ByteArrayOutputStream os) |
protected void |
checkUploadSizes(int uploadSizeOctets) |
protected Map<String,Object> |
getAssetInfo(IDiagramProfile profile,
Asset asset) |
List<Map<String,Object>> |
getCdc(IDiagramProfile profile,
String path,
boolean tree) |
Map<String,Object> |
getCwd(IDiagramProfile profile,
String path,
boolean tree) |
protected Map<String,Object> |
getDirectoryInfo(IDiagramProfile profile,
Directory dir) |
Map<String,Object> |
getTree(IDiagramProfile profile,
String path,
boolean tree) |
org.json.JSONObject |
listContent(IDiagramProfile profile,
String target,
String current,
boolean tree) |
org.json.JSONObject |
makeDirectory(IDiagramProfile profile,
String current,
String name,
boolean tree) |
org.json.JSONObject |
makeFile(IDiagramProfile profile,
String current,
String name,
boolean tree) |
org.json.JSONObject |
moveDirectoryOrAsset(IDiagramProfile profile,
String name,
String target,
String current,
boolean tree) |
org.json.JSONObject |
pasteDirectoriesOrAssets(IDiagramProfile profile,
String current,
List<String> targets,
String cut,
String dst,
String src,
boolean tree) |
org.json.JSONObject |
removeAssets(IDiagramProfile profile,
String current,
List<String> targets,
boolean tree) |
org.json.JSONObject |
uploadFiles(IDiagramProfile profile,
String current,
List<org.apache.commons.fileupload.FileItemStream> listFiles,
List<ByteArrayOutputStream> listFileStreams,
boolean tree) |
public org.json.JSONObject listContent(IDiagramProfile profile, String target, String current, boolean tree) throws Exception
Exceptionpublic org.json.JSONObject pasteDirectoriesOrAssets(IDiagramProfile profile, String current, List<String> targets, String cut, String dst, String src, boolean tree) throws Exception
Exceptionpublic org.json.JSONObject moveDirectoryOrAsset(IDiagramProfile profile, String name, String target, String current, boolean tree) throws Exception
Exceptionpublic org.json.JSONObject removeAssets(IDiagramProfile profile, String current, List<String> targets, boolean tree) throws Exception
Exceptionpublic org.json.JSONObject uploadFiles(IDiagramProfile profile, String current, List<org.apache.commons.fileupload.FileItemStream> listFiles, List<ByteArrayOutputStream> listFileStreams, boolean tree) throws Exception
Exceptionpublic org.json.JSONObject makeDirectory(IDiagramProfile profile, String current, String name, boolean tree) throws Exception
Exceptionpublic org.json.JSONObject makeFile(IDiagramProfile profile, String current, String name, boolean tree) throws Exception
Exceptionpublic Map<String,Object> getTree(IDiagramProfile profile, String path, boolean tree) throws Exception
Exceptionpublic List<Map<String,Object>> getCdc(IDiagramProfile profile, String path, boolean tree) throws Exception
Exceptionpublic Map<String,Object> getCwd(IDiagramProfile profile, String path, boolean tree) throws Exception
Exceptionprotected Map<String,Object> getDirectoryInfo(IDiagramProfile profile, Directory dir)
protected Map<String,Object> getAssetInfo(IDiagramProfile profile, Asset asset)
protected void checkUploadFile(String fileName, ByteArrayOutputStream os) throws Exception
Exceptionprotected void checkAlreadyExists(IDiagramProfile profile, String fileName, String current) throws Exception
Exceptionprotected void checkUploadSizes(int uploadSizeOctets)
throws Exception
Exceptionpublic boolean _checkName(String n)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.