AnsweredAssumed Answered

How to call custom remove action of custom content B2

Question asked by kei.yamazaki on Feb 26, 2019
Latest reply on Mar 6, 2019 by kei.yamazaki

Hi Everyone,

 

I try to develop a custom content B2 with spring framework.

I defined the following content-handlers in bb-manifest.xml.

 

<content-handlers>
 <content-handler>
  <name value="b2.name" />
  <handle value="resource/b2-content" />
  <http-actions>
   <view value="view"/>
   <cpview value="view" />
   <create value="create" />
   <modify value="edit" />
   <remove value="delete" />
   <can-copy value="false"/>
  </http-actions>
  <types>
   <type>
    <action-type value="createOther"/>
   </type>
  </types>
 </content-handler>
</content-handlers>

 

In case of create/modify, custom action which I wrote is called successfuly.

But remove is always called default action like the below.

 

/webapps/blackboard/execute/content/removeItem?cmd=remove&content_id=<contentid>&course_id=<courseid>

 

If defined below, when exec Remove of a content via web browser, custom create action isn't called but default remove action is called.

 

<remove value="create" />

 

Can I use custom remove action for a custom content?

Can you give me some advice please?

 

Thanks,

Taira Hikichi

Outcomes