Package org.dspace.core

Examples of org.dspace.core.Context.complete()


      }
    } catch (Exception e) {
      log.error(e.getMessage(), e);
    }
    log.info("#### END IMPORT: -----" + new Date() + " ----- ####");
    dspaceContext.complete();
  }
}
View Full Code Here


          dir, applicationService, dspaceContext, status);
    } catch (Exception e) {
      log.error(e.getMessage());
    }
    log.info("#### END IMPORT: -----" + new Date() + " ----- ####");
    dspaceContext.complete();
  }
}
View Full Code Here

        Context context = null;
        try
        {
            context = new Context();
            generatePotentialMatches(context, researcher);
            context.complete();
        }
        catch (Exception e)
        {
            log.error(e.getMessage(), e);
        }
View Full Code Here

                    System.out.println("Deleting...");
                }
                log.info("Deleting...");
                cleanAuthority(dspaceContext, items, rpId);
                applicationService.delete(ResearcherPage.class, rpId);
                dspaceContext.complete();
            }

            if (!silent)
            {
                System.out.println("Ok...Bye");
View Full Code Here

            context = new Context();
            context.turnOffAuthorisationSystem();
            if(cris.getEpersonID()!=null) {
                delete(cris.getEpersonID(), cris.getId(), context);
            }
            context.complete();
        }
        catch (Exception e)
        {
            log.error("Failed to delete resource policy attached to RP just deleted"
                    + cris.getPublicPath() + " uuid:" + cris.getUuid());
View Full Code Here

                resourcePolicy.setResource(cris);
                resourcePolicy.setResourceType(CrisConstants.RP_TYPE_ID);
                resourcePolicy.setResourceID(cris.getID());
                resourcePolicy.update();
            }
            context.complete();
        }
        catch (Exception e)
        {
            log.error("Failed to delete resource policy attached to RP just deleted"
                    + cris.getPublicPath() + " uuid:" + cris.getUuid());
View Full Code Here

                {
                    delete(cris.getOldEpersonID(), cris.getId(), context);
                }
               
            }
            context.complete();
        }
        catch (Exception e)
        {
            log.error("Failed to delete resource policy attached to RP just deleted"
                    + cris.getPublicPath() + " uuid:" + cris.getUuid());
View Full Code Here

                System.out.println("\tNo READ policy found, adding anonymous.");
                addAnonymousPolicy(c, t, Constants.READ);
            }
        }

        c.complete();
        System.exit(0);
    }

    /**
     * check to see if a collection has any policies for a given action
View Full Code Here

        {
            Node n = typeNodes.item(i);
            loadType(context, n);
        }
       
        context.complete();
    }
   
    /**
     * Process a node in the metadata registry XML file.  If the
     * schema already exists, it will not be recreated
View Full Code Here

        // carnage begins here
        //////////////////////
        setPoliciesFilter(c, containertype, containerID, contenttype, actionID,
                groupID, isReplace, false, filter);

        c.complete();
        System.exit(0);
    }
   
    /**
     * Useful policy wildcard tool. Can set entire collections' contents'
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.