#46 closed (fixed)
Permanent removal of items
Reported by: | Gregory Vincic | Owned by: | Gregory Vincic |
---|---|---|---|
Milestone: | 2.0 beta 1 | Keywords: | |
Cc: |
Description
There is no way of permanently remove an item today only select it for removal. We need a removal feature for "removed" items or implement a direct removal procedure.
Change History (9)
comment:1 Changed 17 years ago by
Milestone: | Alpha 1 → Alpha 2 |
---|
comment:2 Changed 17 years ago by
Status: | new → assigned |
---|
comment:3 Changed 17 years ago by
comment:4 Changed 17 years ago by
Milestone: | Alpha 2 → Beta 1 |
---|
comment:5 Changed 17 years ago by
comment:6 Changed 17 years ago by
comment:7 Changed 17 years ago by
comment:9 Changed 11 years ago by
(In [4412]) Refs #798. Refs #620. Refs #46. Classes/files action/write/EmptyTrash.java
in client/servlet/
and plugins/EmptyTrashPlugin.java
in plugin/
have been updated to hopefully avoid errors due to a proxy being associated with two open sessions. The updated routine has the following main steps:
DbControl
objectdc
is used to create anItemResultList<?> itemResultList
from a database query. This is in turn used to create aList<BasicItem<?>> itemList
of the items of interest.DbControl
objectdc
is closed, andList<BasicItem<?>> itemList
is used to loop over the items.- For each item,
DbControl
objectdc2
is created and used to get a new instance of the item from its database id.DbControl
objectdc2
is then used to delete the latter item, the change is committed, andDbControl
objectdc2
is closed. DbControl
objectdc
is created again, and used to generate a list of items still in the database, that is checked against theList<BasicItem<?>> itemList
of items to delete.
Note: See
TracTickets for help on using
tickets.
(In [1239]) Refs #46. Shows an error message when no items are selected for deletion