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
Exception
public org.json.JSONObject pasteDirectoriesOrAssets(IDiagramProfile profile, String current, List<String> targets, String cut, String dst, String src, boolean tree) throws Exception
Exception
public org.json.JSONObject moveDirectoryOrAsset(IDiagramProfile profile, String name, String target, String current, boolean tree) throws Exception
Exception
public org.json.JSONObject removeAssets(IDiagramProfile profile, String current, List<String> targets, boolean tree) throws Exception
Exception
public org.json.JSONObject uploadFiles(IDiagramProfile profile, String current, List<org.apache.commons.fileupload.FileItemStream> listFiles, List<ByteArrayOutputStream> listFileStreams, boolean tree) throws Exception
Exception
public org.json.JSONObject makeDirectory(IDiagramProfile profile, String current, String name, boolean tree) throws Exception
Exception
public org.json.JSONObject makeFile(IDiagramProfile profile, String current, String name, boolean tree) throws Exception
Exception
public Map<String,Object> getTree(IDiagramProfile profile, String path, boolean tree) throws Exception
Exception
public List<Map<String,Object>> getCdc(IDiagramProfile profile, String path, boolean tree) throws Exception
Exception
public Map<String,Object> getCwd(IDiagramProfile profile, String path, boolean tree) throws Exception
Exception
protected 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
Exception
protected void checkAlreadyExists(IDiagramProfile profile, String fileName, String current) throws Exception
Exception
protected void checkUploadSizes(int uploadSizeOctets) throws Exception
Exception
public boolean _checkName(String n)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.