- cleanup of the way in which xform:items are created in the schema form builder (reduces some code)

- emitting xform:upload in schemaformbuilder if an xs:anyURI is encountered
- generating a file picker for xforms:upload


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4539 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-12-06 23:55:57 +00:00
parent 98c5a2071c
commit 43b533cd3f
6 changed files with 803 additions and 561 deletions

View File

@@ -231,6 +231,18 @@ public final class AVMConstants
return parent + path;
}
/**
* Returns a path relative to the webapp portion of the avm path.
*
* @param absoluteAVMPath an absolute path within the avm
* @return a relative path within the webapp.
*/
public static String getWebappRelativePath(final String absoluteAVMPath)
{
final Matcher m = webappRelativePath.matcher(absoluteAVMPath);
return m.matches() && m.group(1).length() != 0 ? m.group(1) : "/";
}
// names of the stores representing the layers for an AVM website
public final static String STORE_STAGING = "-staging";
@@ -262,4 +274,7 @@ public final class AVMConstants
// patter for absolute AVM Path
private final static Pattern absoluteAVMPath = Pattern.compile(
"([^:]+:/" + AVMConstants.DIR_APPBASE + "/[^/]+/[^/]+).*");
private final static Pattern webappRelativePath = Pattern.compile(
"[^:]+:/" + AVMConstants.DIR_APPBASE +
"/" + AVMConstants.DIR_WEBAPPS + "/[^/]+(.*)");
}