Ticket #607 (closed Enhancement: fixed)

Opened 11 years ago

Last modified 11 years ago

Core API: methods for deleting types

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.2
Component: DeepaMehta Standard Distribution Version: 4.1.3
Keywords: Cc: dgf, Malte
Complexity: 3 Area: Application Framework / API
Module: deepamehta-core

Description

The Core Service should provide methods for deleting types:

Directives deleteTopicType(String uri)
Directives deleteAssociationType(String uri)

This is needed in conjunction with #246 "Deleted types stay in menus"

Change History

comment:1 Changed 11 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 11 years ago by Jörg Richter

Core Service: methods for deleting types (#607).

2 methods added to Core Service:

Directives deleteTopicType(String topicTypeUri)
Directives deleteAssociationType(String assocTypeUri)

Deletes the respective type from the DB and the type cache.
The directives returned include a DELETE_TOPIC_TYPE resp. DELETE_ASSOCIATION_TYPE directive.

REST API:

DELETE /core/topictype/{uri}
DELETE /core/assoctype/{uri}

See #607.

comment:3 Changed 11 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed

One issue remains and should be addressed in a separate ticket: a type must not be deleted while instances still exist.

Note: See TracTickets for help on using tickets.