Package org.dspace.content

Examples of org.dspace.content.Community.createCollection()


                return;
            }

            // Create the collection
            Collection newCollection = c.createCollection();
            request.setAttribute("collection", newCollection);

            if (AuthorizeManager.isAdmin(context))
            {
                // set a variable to show all buttons
View Full Code Here


        String provenance = (String) inputVar.get("provenance");

        try {
            if (communityId > 0) {
                Community community = Community.find(context, communityId);
                Collection collection = community.createCollection();
                if (collection != null) {
                    collection.setMetadata("name", name);
                    collection.setMetadata("short_description", shortDescription);
                    collection.setMetadata("introductory_text", introductoryText);
                    collection.setMetadata("copyright_text", copyrightText);
View Full Code Here

  public static FlowResult processCreateCollection(Context context, int communityID, Request request) throws SQLException, AuthorizeException, IOException
  {
    FlowResult result = new FlowResult();
   
    Community parent = Community.find(context, communityID);
    Collection newCollection = parent.createCollection();
   
    // Get the metadata
    String name = request.getParameter("name");
    String shortDescription = request.getParameter("short_description");
    String introductoryText = request.getParameter("introductory_text");
View Full Code Here

  public static FlowResult processCreateCollection(Context context, int communityID, Request request) throws SQLException, AuthorizeException, IOException
  {
    FlowResult result = new FlowResult();
   
    Community parent = Community.find(context, communityID);
    Collection newCollection = parent.createCollection();
   
    // Get the metadata
    String name = request.getParameter("name");
    String shortDescription = request.getParameter("short_description");
    String introductoryText = request.getParameter("introductory_text");
View Full Code Here

                return;
            }

            // Create the collection
            Collection newCollection = c.createCollection();
            request.setAttribute("collection", newCollection);

            if (AuthorizeManager.isAdmin(context))
            {
                // set a variable to show all buttons
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.