Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[DS-975] - Delete some stray files from dspace-rest.

git-svn-id: http://scm.dspace.org/svn/repo/modules/dspace-rest/trunk@6516 9c30dcfa-912a-0410-8fc2-9e0234be79fd
  • Loading branch information...
commit ab4e9b9efdbdfc5ee6ef6aee8e057cfcdf81e4f2 1 parent 583e21c
robintaylor authored
Showing with 0 additions and 134 deletions.
  1. +0 −107 collection.java.add.txt
  2. +0 −13 nb-configuration.xml
  3. +0 −14 nbactions.xml
View
107 collection.java.add.txt
@@ -1,107 +0,0 @@
-
- /**
- * Get collections in the system. These are alphabetically sorted by
- * collection name.
- *
- * @param context
- * DSpace context object
- * @param offset
- * starting row
- *
- * @return the collections in the system
- * @throws SQLException
- */
- public static Collection[] findAll(Context context, int offset) throws SQLException {
- TableRowIterator tri = DatabaseManager.queryTable(context, "collection",
- "SELECT * FROM collection ORDER BY name OFFSET " + offset);
-
- List<Collection> collections = new ArrayList<Collection>();
-
- try {
- while (tri.hasNext()) {
- TableRow row = tri.next();
-
- // First check the cache
- Collection fromCache = (Collection) context.fromCache(
- Collection.class, row.getIntColumn("collection_id"));
-
- if (fromCache != null) {
- collections.add(fromCache);
- } else {
- collections.add(new Collection(context, row));
- }
- }
- } finally {
- // close the TableRowIterator to free up resources
- if (tri != null) {
- tri.close();
- }
- }
-
- Collection[] collectionArray = new Collection[collections.size()];
- collectionArray = (Collection[]) collections.toArray(collectionArray);
-
- return collectionArray;
- }
-
- /**
- * Get collections in the system. These are alphabetically sorted by
- * collection name.
- *
- * @param context
- * DSpace context object
- * @param offset
- * starting row
- * @param limit
- * limit of collections to show
- *
- * @return the collections in the system
- * @throws SQLException
- */
- public static Collection[] findAll(Context context, int offset, int limit) throws SQLException {
- TableRowIterator tri = DatabaseManager.queryTable(context, "collection",
- "SELECT * FROM collection ORDER BY name OFFSET " + offset + " LIMIT " + limit);
-
- List<Collection> collections = new ArrayList<Collection>();
-
- try {
- while (tri.hasNext()) {
- TableRow row = tri.next();
-
- // First check the cache
- Collection fromCache = (Collection) context.fromCache(
- Collection.class, row.getIntColumn("collection_id"));
-
- if (fromCache != null) {
- collections.add(fromCache);
- } else {
- collections.add(new Collection(context, row));
- }
- }
- } finally {
- // close the TableRowIterator to free up resources
- if (tri != null) {
- tri.close();
- }
- }
-
- Collection[] collectionArray = new Collection[collections.size()];
- collectionArray = (Collection[]) collections.toArray(collectionArray);
-
- return collectionArray;
- }
-
- /**
- * Get number of collections in the system.
- *
- * @param context
- * DSpace context object
- *
- * @return the number of collections in the system
- * @throws SQLException
- */
- public static Long getNumCollections(Context context) throws SQLException {
- TableRow row = DatabaseManager.querySingle(context, "SELECT count(*) as num FROM collection ");
- return new Long(row.getLongColumn("num"));
- }
-
View
13 nb-configuration.xml
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project-shared-configuration>
- <!--
-This file contains additional configuration written by modules in the NetBeans IDE.
-The configuration is intended to be shared among all the users of project and
-therefore it is assumed to be part of version control checkout.
-Without this configuration present, some functionality in the IDE may be limited or fail altogether.
--->
- <spring-data xmlns="http://www.netbeans.org/ns/spring-data/1">
- <config-files/>
- <config-file-groups/>
- </spring-data>
-</project-shared-configuration>
View
14 nbactions.xml
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<actions>
- <action>
- <actionName>run</actionName>
- <goals>
- <goal>package</goal>
- </goals>
- <properties>
- <netbeans.deploy>true</netbeans.deploy>
- <dspace.config>c:/devel/dspace/config/dspace.cfg</dspace.config>
-
- </properties>
- </action>
- </actions>
Please sign in to comment.
Something went wrong with that request. Please try again.