private String getTextParamValueOfForm(MultiPartBody form, int index, String paramName) { String value = form.getTextParameterValues(paramName)[index]; return value.trim().length() > 0 ? value : null; }
InputStream input = null; if(data.getTextParameterValues(recipe) != null){ recipe = data.getTextParameterValues(recipe) [0];
AccessController.checkPermission(new ScriptManagerAppPermission()); UriRef scriptUri = new UriRef(form.getTextParameterValues("scriptUri")[0]); String scriptName = form.getTextParameterValues("fileName")[0]; String scriptLanguageAndVersion = form.getTextParameterValues("scriptLanguage")[0]; String mediaType = form.getTextParameterValues("mediaType")[0]; String producedType = form.getTextParameterValues("producedType")[0]; String scriptCode = form.getTextParameterValues("scriptCode")[0];
this.parameters.put(p, Arrays.asList(data.getTextParameterValues(p)));
InputStream rules = null; if(data.getTextParameterValues("description") != null){ description = data.getTextParameterValues("description") [0];
form.getTextParameterValues("scriptExecutionUri")[0]; String scriptLanguageAndVersion = form.getTextParameterValues("scriptLanguage")[0]; String mediaType = form.getTextParameterValues("mediaType")[0]; String producedType = form.getTextParameterValues("producedType")[0]; String fileChoice = form.getTextParameterValues("fileChoice")[0]; String scriptName = "unnamed"; if(form.getTextParameterValues("scriptCode").length > 0) { scriptFileBytes = form.getTextParameterValues("scriptCode")[0]. getBytes(); if(form.getTextParameterValues("scriptName").length > 0) { scriptName = form.getTextParameterValues("scriptName")[0]; if(scriptName.trim().equals("")) { scriptName = "unnamed";
InputStream input = null; if(data.getTextParameterValues("recipe") != null){ recipe = data.getTextParameterValues("recipe") [0];
String userName = getTextParamValueOfForm(form, 0, "userName"); String pathPrefix = getTextParamValueOfForm(form, 0, "pathPrefix"); String[] userRole = form.getTextParameterValues("userRoles"); List<String> userRoleList = Arrays.asList(userRole); String email = getTextParamValueOfForm(form, 0, "email");
if (data.getTextParameterValues("format").length > 0) { String value = data.getTextParameterValues("format")[0]; if (!value.equals("auto")) { format = value; if (data.getTextParameterValues("url").length > 0) { String value = data.getTextParameterValues("url")[0]; try { if (data.getTextParameterValues("alias").length > 0) { for (String value : data.getTextParameterValues("alias")) { if (!"null".equals(value)) { try {
public Response addUser(MultiPartBody form, @Context UriInfo uriInfo) { AccessController.checkPermission(new UserManagerAccessPermission()); String userName = form.getTextParameterValues("userName")[0]; String email = form.getTextParameterValues("email")[0]; String pathPrefix = form.getTextParameterValues("pathPrefix")[0]; String psw = form.getTextParameterValues("psw")[0]; String[] userRole = form.getTextParameterValues("userRoles");
ArrayList<UriRef> customproperties = customPropertyManager.getPropertiesOfCollection(collection); for (UriRef property : customproperties) { String[] values = form.getTextParameterValues(property.getUnicodeString()); Lock writeLock = contentGraph.getLock().writeLock(); writeLock.lock();
if (data.getTextParameterValues("format").length > 0) { String value = data.getTextParameterValues("format")[0]; if (!value.equals("auto")) { format = value; if (data.getTextParameterValues("url").length > 0) { String value = data.getTextParameterValues("url")[0]; try { if (data.getTextParameterValues("library").length > 0) { String value = data.getTextParameterValues("library")[0]; try { if (data.getTextParameterValues("stored").length > 0) { String value = data.getTextParameterValues("stored")[0]; keys.add(value);
if (data.getTextParameterValues("format").length > 0) { String value = data.getTextParameterValues("format")[0]; if (!value.equals("auto")) { format = value; if (data.getTextParameterValues("url").length > 0) { String value = data.getTextParameterValues("url")[0]; try { if (data.getTextParameterValues("library").length > 0) { String value = data.getTextParameterValues("library")[0]; try { if (data.getTextParameterValues("stored").length > 0) { String value = data.getTextParameterValues("stored")[0]; keys.add(value); if (data.getTextParameterValues("scope").length > 0) { String value = data.getTextParameterValues("scope")[0]; log.info("Request to append scope \"{}\".", value); if (toAppend == null) {