Opened 17 years ago

Closed 16 years ago

Last modified 11 years ago

#46 closed (fixed)

Permanent removal of items

Reported by: Gregory Vincic Owned by: Gregory Vincic
Milestone: 2.0 beta 1 Keywords:


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 Jari Häkkinen

Milestone: Alpha 1Alpha 2

comment:2 Changed 17 years ago by Gregory Vincic

Status: newassigned

comment:3 Changed 17 years ago by Gregory Vincic

(In [1239]) Refs #46. Shows an error message when no items are selected for deletion

comment:4 Changed 17 years ago by Gregory Vincic

Milestone: Alpha 2Beta 1

comment:5 Changed 17 years ago by Gregory Vincic

(In [1454]) Refs #46. Files are now removable through the trashcan, see Personal -> Home in menu.

comment:6 Changed 17 years ago by Gregory Vincic

(In [1455]) Refs #46. Until deleting of all removable items is implemented only files are eligible for removal.

comment:7 Changed 17 years ago by Gregory Vincic

(In [1464]) Refs #46. When trash is emptied the user is forwarde to the ViewHome? action.

comment:8 Changed 16 years ago by Gregory Vincic

Resolution: fixed
Status: assignedclosed

Works for files.

comment:9 Changed 11 years ago by olle

(In [4412]) Refs #798. Refs #620. Refs #46. Classes/files action/write/ in client/servlet/ and plugins/ 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 object dc is used to create an ItemResultList<?> itemResultList from a database query. This is in turn used to create a List<BasicItem<?>> itemList of the items of interest.
  • DbControl object dc is closed, and List<BasicItem<?>> itemList is used to loop over the items.
  • For each item, DbControl object dc2 is created and used to get a new instance of the item from its database id. DbControl object dc2 is then used to delete the latter item, the change is committed, and DbControl object dc2 is closed.
  • DbControl object dc is created again, and used to generate a list of items still in the database, that is checked against the List<BasicItem<?>> itemList of items to delete.

Note: See TracTickets for help on using tickets.