Package org.dspace.event

Examples of org.dspace.event.Event


        // Check authorisation
        //AuthorizeManager.authorizeAction(ourContext, this, Constants.DELETE);
        log.info(LogManager.getHeader(ourContext, "delete_bitstream",
                "bitstream_id=" + getID()));

        ourContext.addEvent(new Event(Event.DELETE, Constants.BITSTREAM, getID(),
                String.valueOf(getSequenceID()), getIdentifiers(ourContext)));

        // Remove from cache
        ourContext.removeCached(this, getID());
View Full Code Here


    @Override
    public void updateLastModified()
    {
        //Also fire a modified event since the bitstream HAS been modified
        ourContext.addEvent(new Event(Event.MODIFY, Constants.BITSTREAM, getID(), null, getIdentifiers(ourContext)));
    }
View Full Code Here

                + row.getIntColumn("bundle_id")));

        // if we ever use the identifier service for bundles, we should
        // create the bundle before we create the Event and should add all
        // identifiers to it.
        context.addEvent(new Event(Event.CREATE, Constants.BUNDLE, row.getIntColumn("bundle_id"), null));

        return new Bundle(context, row);
    }
View Full Code Here

        }

        // Add the bitstream object
        bitstreams.add(b);

        ourContext.addEvent(new Event(Event.ADD, Constants.BUNDLE, getID(),
                Constants.BITSTREAM, b.getID(), String.valueOf(b.getSequenceID()),
                getIdentifiers(ourContext)));

        // copy authorization policies from bundle to bitstream
        // FIXME: multiple inclusion is affected by this...
View Full Code Here

                // We've found the bitstream to remove
                li.remove();
            }
        }

        ourContext.addEvent(new Event(Event.REMOVE, Constants.BUNDLE, getID(),
                Constants.BITSTREAM, b.getID(), String.valueOf(b.getSequenceID()),
                getIdentifiers(ourContext)));

        //Ensure that the last modified from the item is triggered !
        Item owningItem = (Item) getParentObject();
View Full Code Here

        DatabaseManager.update(ourContext, bundleRow);

        if (modified)
        {
            ourContext.addEvent(new Event(Event.MODIFY, Constants.BUNDLE, getID(),
                    null, getIdentifiers(ourContext)));
            modified = false;
        }
        if (modifiedMetadata)
        {
View Full Code Here

    void delete() throws SQLException, AuthorizeException, IOException
    {
        log.info(LogManager.getHeader(ourContext, "delete_bundle", "bundle_id="
                + getID()));

        ourContext.addEvent(new Event(Event.DELETE, Constants.BUNDLE, getID(),
                getName(), getIdentifiers(ourContext)));

        // Remove from cache
        ourContext.removeCached(this, getID());
View Full Code Here

TOP

Related Classes of org.dspace.event.Event

Copyright © 2018 www.massapicom. 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.