Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2
In directory sc8-pr-cvs1:/tmp/cvs-serv28552/src/java/core/org/krysalis/ruper2
Modified Files:
ResourceUpdater.java
Log Message:
Browser action
Index: ResourceUpdater.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/ResourceUpdater.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** ResourceUpdater.java 24 Oct 2003 13:56:20 -0000 1.12
--- ResourceUpdater.java 27 Oct 2003 21:50:20 -0000 1.13
***************
*** 13,16 ****
--- 13,17 ----
import org.krysalis.ruper2.config.RuperConfig;
import org.krysalis.ruper2.impl.ReferenceManager;
+ import org.krysalis.ruper2.impl.RepositoryObject;
import org.krysalis.ruper2.impl.RepositoryWrapper;
import org.krysalis.ruper2.impl.ResourceUpdaterContext;
***************
*** 23,27 ****
import org.krysalis.ruper2.repository.DefaultRepository;
import org.krysalis.ruper2.repository.IRepository;
- import org.krysalis.ruper2.repository.RepositoryObject;
import org.krysalis.ruper2.repository.RepositorySet;
import org.krysalis.ruper2.repository.RepositorySetSortContext;
--- 24,27 ----
***************
*** 185,189 ****
// make sure the first level of children are got from the repository
! repositoryObject.refreshChildren();
return repositoryObject;
}
--- 185,189 ----
// make sure the first level of children are got from the repository
! repositoryObject.syncChildren();
return repositoryObject;
}
***************
*** 470,473 ****
--- 470,507 ----
}
+ public void downloadResourceGroup(
+ ResourceGroup group,
+ IRepository targetRepository)
+ throws RuperException {
+
+ if (group != null) {
+
+ // get the resource specifier query
+ ResourceQuery resourceQuery =
+ ResourceQueryHelper.getResourceGroupQuery(group);
+ downloadResource(resourceQuery, targetRepository);
+ }
+ else {
+ String message = Messages.getString(MessageConstants.NULL_GROUP);
+ Logger.getLogger().error(message);
+
+ throw new RuperException(message);
+ }
+ }
+
+ public void downloadResource(ResourceQuery resourceQuery,
+ IRepository targetRepository) throws RuperException {
+
+ // Query the repositories to get the result
+ List resources = findResource(resourceQuery);
+
+ //
+ // Copy the resource to the repository
+ //
+ if (resources != null)
+ downloadResources(resources, targetRepository);
+
+ }
+
public void clean(ResourceGroup group) throws RuperException {
cleanRepository(m_targetRepository, group);
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.