Examples of update()


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

            mdSchema = new MetadataSchema(value.schema,String.valueOf(new Date().getTime()));
            try {
            mdSchema.create(ourContext);
            mdSchema.setName(value.schema);
            mdSchema.setNamespace("unknown"+mdSchema.getSchemaID());
              mdSchema.update(ourContext);
          } catch (NonUniqueMetadataException e) {
            // This case should not be possible
            e.printStackTrace();
          }
          clearList.add(value.schema);
View Full Code Here

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

            for (int i = 0; i < allBn.length; ++i)
            {
                allBn[i].update();
            }

            wi.update();
            success = true;
            log.info(LogManager.getHeader(context, "ingest",
                "Created new Item, db ID="+String.valueOf(item.getID())+
                ", WorkspaceItem ID="+String.valueOf(wi.getID())));
            return wi;
View Full Code Here

Examples of org.dspace.eperson.EPerson.update()

            // add an EPerson, then jump user to edit page
            EPerson e = EPerson.create(context);

            // create clever name and do update before continuing
            e.setEmail("newuser" + e.getID());
            e.update();

            request.setAttribute("eperson", e);

            JSPManager.showJSP(request, response,
                    "/dspace-admin/eperson-edit.jsp");
View Full Code Here

Examples of org.dspace.eperson.Group.update()

      eperson.setLanguage(language);
      eperson.setPassword(pw);
      eperson.update();
     
      admins.addMember(eperson);
      admins.update();
     
      context.complete();
     
      System.out.println("Administrator account created");
    }
View Full Code Here

Examples of org.dspace.harvest.HarvestedCollection.update()

          }
       
        context.turnOffAuthorisationSystem();
        hc.setHarvestParams(type, oaiSource, oaiSetId, mdConfigId);
        hc.setHarvestStatus(HarvestedCollection.STATUS_READY);
        hc.update();
        context.restoreAuthSystemState();
        context.complete();
      }
      catch (Exception e) {
        System.out.println("Changes could not be committed");
View Full Code Here

Examples of org.dspace.xmlworkflow.storedcomponents.CollectionRole.update()

    public static void createCollectionWorkflowRole(Context context, int collectionId, String roleId, Group group) throws AuthorizeException, SQLException {
        CollectionRole ass = CollectionRole.create(context);
        ass.setCollectionId(collectionId);
        ass.setRoleId(roleId);
        ass.setGroupId(group);
        ass.update();
    }
    /*
     * Deletes a role group linked to a given role and a collection
     */
    public static void deleteRoleGroup(Context context, Collection collection, String roleID) throws SQLException, IOException, WorkflowConfigurationException {
View Full Code Here

Examples of org.dspace.xmlworkflow.storedcomponents.WorkflowItemRole.update()

            //We have a reviewer, assign him, the workflowitemrole will be translated into a task in the autoassign
            WorkflowItemRole workflowItemRole = WorkflowItemRole.create(c);
            workflowItemRole.setEPerson(reviewer);
            workflowItemRole.setRoleId(getRoleId());
            workflowItemRole.setWorkflowItemId(wfi.getID());
            workflowItemRole.update();
            return new ActionResult(ActionResult.TYPE.TYPE_OUTCOME, ActionResult.OUTCOME_COMPLETE);
        }

        //There are only 2 active buttons on this page, so if anything else happens just return an error
        return new ActionResult(ActionResult.TYPE.TYPE_ERROR);
View Full Code Here

Examples of org.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem.update()

        wfi.setItem(myitem);
        wfi.setCollection(wsi.getCollection());
        wfi.setMultipleFiles(wsi.hasMultipleFiles());
        wfi.setMultipleTitles(wsi.hasMultipleTitles());
        wfi.setPublishedBefore(wsi.isPublishedBefore());
        wfi.update();
        removeUserItemPolicies(context, myitem, myitem.getSubmitter());
        grantSubmitterReadPolicies(context, myitem);

        context.turnOffAuthorisationSystem();
        Step firstStep = wf.getFirstStep();
View Full Code Here

Examples of org.eclipse.compare.internal.MergeViewerAction.update()

    while (e.hasNext()) {
      Object next = e.next();
      if (next instanceof MergeViewerAction) {
        MergeViewerAction action = (MergeViewerAction) next;
        if (action.isSelectionDependent())
          action.update();
      }
    }
  }

  public void textChanged(TextEvent event) {
View Full Code Here

Examples of org.eclipse.dltk.ui.actions.SelectionDispatchAction.update()

  private void registerActionsAsSelectionChangeListeners() {
    ISelectionProvider provider = fSite.getSelectionProvider();
    ISelection selection = provider.getSelection();
    for (int i = 0; i < fActions.length; i++) {
      SelectionDispatchAction action = fActions[i];
      action.update(selection);
      provider.addSelectionChangedListener(action);
    }
  }

  private void deregisterActionsAsSelectionChangeListeners() {
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.