. Create Web Content from Form hooked into Available Content Forms panel in the User Sandboxes component

- Create Web Content form initialised with the correctly selected form template in the drop-down
. Revert node, Revert Selected and Revert All actions working

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4370 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-11-16 13:17:41 +00:00
parent 49693f7620
commit b5f3167443
2 changed files with 6 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ import org.alfresco.util.Pair;
* by VersionPathUnStuffer. * by VersionPathUnStuffer.
* @author britt * @author britt
*/ */
public class VersionPathStuffer public final class VersionPathStuffer
{ {
/** /**
* The internal buffer. * The internal buffer.
@@ -37,7 +37,7 @@ public class VersionPathStuffer
/** /**
* Add a version path expressed by the version and path. * Add a version path expressed by the version and path.
*/ */
public void add(int version, String path) public VersionPathStuffer add(int version, String path)
{ {
if (fAnyAdded) if (fAnyAdded)
{ {
@@ -47,16 +47,18 @@ public class VersionPathStuffer
fBuilder.append('@'); fBuilder.append('@');
fBuilder.append(version); fBuilder.append(version);
fAnyAdded = true; fAnyAdded = true;
return this;
} }
/** /**
* Add a version path expressed as a NodeRef. * Add a version path expressed as a NodeRef.
*/ */
public void add(NodeRef nodeRef) public VersionPathStuffer add(NodeRef nodeRef)
{ {
Pair<Integer, String> versionPath = Pair<Integer, String> versionPath =
AVMNodeConverter.ToAVMVersionPath(nodeRef); AVMNodeConverter.ToAVMVersionPath(nodeRef);
add(versionPath.getFirst(), versionPath.getSecond()); add(versionPath.getFirst(), versionPath.getSecond());
return this;
} }
/** /**

View File

@@ -15,7 +15,7 @@ import org.alfresco.util.Pair;
* by VersionPathStuffer) and gives you back a list of Version/Paths * by VersionPathStuffer) and gives you back a list of Version/Paths
* @author britt * @author britt
*/ */
public class VersionPathUnstuffer public final class VersionPathUnstuffer
{ {
/** /**
* The unpacked version paths. * The unpacked version paths.