DocRepo repariert, man kann jetzt Dokumente hochladen und Ordner anlegen.
git-svn-id: https://svn.libreccm.org/ccm/trunk@1137 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
d8d8c303d6
commit
e3a64c8032
|
|
@ -334,7 +334,12 @@ public class Folder extends ResourceImpl implements Constants {
|
||||||
|
|
||||||
Session session = SessionManager.getSession();
|
Session session = SessionManager.getSession();
|
||||||
DataQuery query = session.retrieveQuery
|
DataQuery query = session.retrieveQuery
|
||||||
("com.arsdigita.docs.getDirectChildren");
|
("com.arsdigita.docrepo.getDirectChildren");
|
||||||
|
// with byline Version BASE_DATA_OBJECT_TYPE =
|
||||||
|
// "com.arsdigita.docs.ResourceImpl"
|
||||||
|
// so all retrieveQueries might have be to corrected.
|
||||||
|
// ("com.arsdigita.docs.getDirectChildren");
|
||||||
|
// remove comment after intensive testing!
|
||||||
query.setParameter("parentID", getID());
|
query.setParameter("parentID", getID());
|
||||||
|
|
||||||
while (query.next()) {
|
while (query.next()) {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ import com.arsdigita.web.ApplicationType;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Document RFepository Loader
|
* Document Repository Loader
|
||||||
*
|
*
|
||||||
* @author pboy <pboy@barkhof.uni-bremen.de>
|
* @author pboy <pboy@barkhof.uni-bremen.de>
|
||||||
* @version $Id: Loader.java $
|
* @version $Id: Loader.java $
|
||||||
|
|
|
||||||
|
|
@ -316,7 +316,12 @@ public abstract class ResourceImpl extends VersionedACSObject
|
||||||
// Execute the data operation to update all children
|
// Execute the data operation to update all children
|
||||||
Session session = SessionManager.getSession();
|
Session session = SessionManager.getSession();
|
||||||
DataOperation op = session.retrieveDataOperation
|
DataOperation op = session.retrieveDataOperation
|
||||||
("com.arsdigita.docs.updateChildren");
|
("com.arsdigita.docrepo.updateChildren");
|
||||||
|
// with byline Version BASE_DATA_OBJECT_TYPE =
|
||||||
|
// "com.arsdigita.docs.ResourceImpl"
|
||||||
|
// so all retrieveQueries might have be to corrected.
|
||||||
|
// ("com.arsdigita.docs.updateChildren");
|
||||||
|
// remove comment after intensive testing!
|
||||||
op.setParameter("rootPath", path);
|
op.setParameter("rootPath", path);
|
||||||
op.setParameter("oldPath", oldPath);
|
op.setParameter("oldPath", oldPath);
|
||||||
op.setParameter("oldRootPathLength", new Integer(oldPath.length()+1));
|
op.setParameter("oldRootPathLength", new Integer(oldPath.length()+1));
|
||||||
|
|
@ -574,7 +579,12 @@ public abstract class ResourceImpl extends VersionedACSObject
|
||||||
String absPath = getPath() + SEPARATOR + path;
|
String absPath = getPath() + SEPARATOR + path;
|
||||||
Session session = SessionManager.getSession();
|
Session session = SessionManager.getSession();
|
||||||
DataQuery query = session.retrieveQuery
|
DataQuery query = session.retrieveQuery
|
||||||
("com.arsdigita.docs.getResourceByPath");
|
("com.arsdigita.docrepo.getResourceByPath");
|
||||||
|
// with byline Version BASE_DATA_OBJECT_TYPE =
|
||||||
|
// "com.arsdigita.docs.ResourceImpl"
|
||||||
|
// so all retrieveQueries might have be to corrected.
|
||||||
|
// ("com.arsdigita.docs.getResourceByPath");
|
||||||
|
// remove comment after intensive testing!
|
||||||
query.setParameter("targetPath", absPath);
|
query.setParameter("targetPath", absPath);
|
||||||
|
|
||||||
if (query.next()) {
|
if (query.next()) {
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,12 @@ class RepositoriesSelectionForm extends Form
|
||||||
if(selected.size() > 0 ) {
|
if(selected.size() > 0 ) {
|
||||||
DataOperation operation = SessionManager.getSession()
|
DataOperation operation = SessionManager.getSession()
|
||||||
.retrieveDataOperation(
|
.retrieveDataOperation(
|
||||||
"com.arsdigita.docs.addUserRepositoriesMapping");
|
"com.arsdigita.docrepo.addUserRepositoriesMapping");
|
||||||
|
// with byline Version BASE_DATA_OBJECT_TYPE =
|
||||||
|
// "com.arsdigita.docs.ResourceImpl"
|
||||||
|
// so all retrieveQueries might have be to corrected.
|
||||||
|
// "com.arsdigita.docs.addUserRepositoriesMapping");
|
||||||
|
// remove comment after intensive testing!
|
||||||
operation.setParameter("userID", subscriber.getID());
|
operation.setParameter("userID", subscriber.getID());
|
||||||
operation.setParameter("repositoryIDs", selected);
|
operation.setParameter("repositoryIDs", selected);
|
||||||
operation.execute();
|
operation.execute();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue