indexing description: "User remove friendship use case." author: "Marco Zietzling " date: "$Date$" revision: "$Revision$" class USER_REMOVE_FRIENDSHIP inherit AUTH_USE_CASE O_USER_CONSTANTS create make feature -- Access namespace: STRING is -- Namespace of this use case. once Result := user_namespace end type: STRING is -- Message type of this use case. once Result := user_remove_friendship_type end feature -- Basic operation start (a_msg: O_MESSAGE) is -- Start the use case by a_msg. local l_msg: O_SESSION_MESSAGE do l_msg ?= a_msg check session_message: l_msg /= Void end -- check if the user is authorized and act accordingly -- user_add_friendship permission used because of simplicity is_authorized_for_project (l_msg, "user_add_friendship", 0, auth_node) end feature {NONE} -- Callbacks handle_auth_success (a_msg: O_MESSAGE) is -- a_msg has been authorized, execute it. do -- forward message to storage node to set default icon in DB forward_to_node (a_msg, "storage1") end end