/*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.argeo.slc.client.ui.commands;
import javax.jcr.Node;
String folderName = SingleValue.ask("Folder name",
"Enter folder name");
if (folderName != null) {
+ if (folderName.contains("/")) {
+ ErrorFeedback
+ .show("Folder names can't contain a '/'.");
+ return null;
+ }
+
String absPath = parentNode.getPath() + "/"
+ folderName;
SlcJcrResultUtils.createResultFolderNode(