Package org.dspace.content

Examples of org.dspace.content.Collection.update()


            // Remove temp file
            temp.delete();
        }

        collection.update();

        // Now work out what next page is
        showNextPage(context, request, response, collection, BASIC_INFO);

        context.complete();
View Full Code Here


              collection.update();
            }
            else if (role == Role.WorkflowStep3)
            {
              collection.setWorkflowGroup(3, null);
              collection.update();
            }
            else if (role == Role.DefaultRead)
            {
              // Nothing special needs to happen.
            }
View Full Code Here

                    node = nl.item(0);
                    collection.setMetadata((String) collectionMap.get(key), getStringValue(node));
                }
            }
           
            collection.update();
           
            element.setAttribute("identifier", collection.getHandle());
           
            Element nameElement = new Element("name");
            nameElement.setText(collection.getMetadata("name"));
View Full Code Here

          if (collection != null)
          {
            if (role == Role.Administrators)
            {
              collection.removeAdministrators();
              collection.update();
            }
            else if (role == Role.Submitters)
            {
              collection.removeSubmitters();
              collection.update();
View Full Code Here

              collection.update();
            }
            else if (role == Role.Submitters)
            {
              collection.removeSubmitters();
              collection.update();
            }
            else if (role == Role.WorkflowStep1)
            {
              collection.setWorkflowGroup(1, null);
              collection.update();
View Full Code Here

              collection.update();
            }
            else if (role == Role.WorkflowStep1)
            {
              collection.setWorkflowGroup(1, null);
              collection.update();
            }
            else if (role == Role.WorkflowStep2)
            {
              collection.setWorkflowGroup(2, null);
              collection.update();
View Full Code Here

              collection.update();
            }
            else if (role == Role.WorkflowStep2)
            {
              collection.setWorkflowGroup(2, null);
              collection.update();
            }
            else if (role == Role.WorkflowStep3)
            {
              collection.setWorkflowGroup(3, null);
              collection.update();
View Full Code Here

    protected int mkcolInternal(String name) throws DAVStatusException,
            SQLException, AuthorizeException, IOException
    {
        Collection newColl = this.community.createCollection();
        newColl.setMetadata("name", name);
        newColl.update();
        return HttpServletResponse.SC_OK;
    }
}
View Full Code Here

                    collection.setMetadata("introductory_text", introductoryText);
                    collection.setMetadata("copyright_text", copyrightText);
                    collection.setMetadata("side_bar_text", sidebarText);
                    collection.setMetadata("provenance_description", provenance);
                    collection.setLicense(licence);
                    collection.update();
                    return String.valueOf(collection.getID());
                } else {
                    throw new EntityException("Internal server error", "Could not create collection", 500);
                }
            } else {
View Full Code Here

                if (copyrightText != null) collection.setMetadata("copyright_text", copyrightText);
                if (sidebarText != null) collection.setMetadata("side_bar_text", sidebarText);
                if (introductoryText != null) collection.setMetadata("introductory_text", introductoryText);
                if (provenance != null) collection.setMetadata("provenance_description", provenance);
                if (licence != null) collection.setLicense(licence);
                collection.update();
            } else {
                throw new EntityException("Internal server error", "Could not update collection", 500);
            }
        } catch (SQLException ex) {
            throw new EntityException("Internal server error", "SQL error", 500);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.