mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
The previous commit was a mistake, this rolls back that change. Collections and communities must be removed from their parent by classes external to the content package.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@2031 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -923,7 +923,7 @@ public class Collection extends DSpaceObject
|
|||||||
* @throws AuthorizeException
|
* @throws AuthorizeException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public void delete() throws SQLException, AuthorizeException, IOException
|
void delete() throws SQLException, AuthorizeException, IOException
|
||||||
{
|
{
|
||||||
log.info(LogManager.getHeader(ourContext, "delete_collection",
|
log.info(LogManager.getHeader(ourContext, "delete_collection",
|
||||||
"collection_id=" + getID()));
|
"collection_id=" + getID()));
|
||||||
|
@@ -1654,7 +1654,7 @@ public class Item extends DSpaceObject
|
|||||||
* @throws AuthorizeException
|
* @throws AuthorizeException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public void delete() throws SQLException, AuthorizeException, IOException
|
void delete() throws SQLException, AuthorizeException, IOException
|
||||||
{
|
{
|
||||||
HistoryManager.saveHistory(ourContext, this, HistoryManager.REMOVE,
|
HistoryManager.saveHistory(ourContext, this, HistoryManager.REMOVE,
|
||||||
ourContext.getCurrentUser(), ourContext.getExtraLogInfo());
|
ourContext.getCurrentUser(), ourContext.getExtraLogInfo());
|
||||||
|
Reference in New Issue
Block a user