Package org.dspace.content

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


    if (template == null)
    {
      collection.createTemplateItem();
      template = collection.getTemplateItem();
     
      collection.update();
      template.update();
      context.commit();
    }
   
    return template.getID();
View Full Code Here


            }

    }

    // In case we needed to create a group, save our changes
    collection.update();
    context.commit();

    // If the role name was valid then role should be non null,
    if (roleGroup != null)
      return roleGroup.getID();
View Full Code Here

                policy.delete();
            }
    }
   
    // Finally, Delete the role's actual group.
    collection.update();
    role.delete();
    context.commit();
 
    result.setContinue(true);
    result.setOutcome(true);
View Full Code Here

     
      newCollection.setLogo(is);
    }
       
        // Save everything
    newCollection.update();
        context.commit();
        // success
        result.setContinue(true);
        result.setOutcome(true);
        result.setMessage(new Message("default","The collection was successfully created."));
View Full Code Here

                {
                    log.trace("Unable to delete temporary file");
                }
            }

            collection.update();

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

            context.complete();
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

              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

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.