Class RTMessagesManagerEntry

java.lang.Object
cz.metacentrum.perun.core.entry.RTMessagesManagerEntry
All Implemented Interfaces:
RTMessagesManager

public class RTMessagesManagerEntry extends Object implements RTMessagesManager
RTMessage manager can create a new message and send it to RT like predefined service user.
Author:
Michal Stava <stavamichal@gmail.com>
  • Constructor Details

    • RTMessagesManagerEntry

      public RTMessagesManagerEntry(PerunBl perunBl)
    • RTMessagesManagerEntry

      public RTMessagesManagerEntry()
  • Method Details

    • getPerunBl

      public PerunBl getPerunBl()
    • getRTMessagesManagerBl

      public RTMessagesManagerBl getRTMessagesManagerBl()
    • sendMessageToRT

      @Deprecated public RTMessage sendMessageToRT(PerunSession sess, Member member, String queue, String subject, String text) throws MemberNotExistsException
      Deprecated.
      Description copied from interface: RTMessagesManager
      This method get needed information and by predefined service user send message to RT which try to create new ticket For basic usage this method is for error msg from users of perun.
      Specified by:
      sendMessageToRT in interface RTMessagesManager
      member - member which send message to RT
      queue - in which queue will be message send
      subject - subject of message
      text - text of message
      Returns:
      RTMessage with information about success or not
      Throws:
      MemberNotExistsException - if the Member not exist in the system
    • sendMessageToRT

      public RTMessage sendMessageToRT(PerunSession sess, String queue, String subject, String text)
      Description copied from interface: RTMessagesManager
      This method get needed information and by predefined service user send message to RT which try to create new ticket For basic usage this method is for error msg from users of perun.

      queue define concrete queue in RT

      Specified by:
      sendMessageToRT in interface RTMessagesManager
      queue - in which queue will be message send
      subject - subject of message
      text - text of message
      Returns:
      RTMessage with information about success or not
    • sendMessageToRT

      public RTMessage sendMessageToRT(PerunSession sess, int voId, String queue, String subject, String text)
      Description copied from interface: RTMessagesManager
      This method get needed information and by predefined service user send message to RT which try to create new ticket For basic usage this method is for error msg from users of perun.

      voId is there especially for searching voAttribute rtVoQueue queue define concrete queue in RT

      Specified by:
      sendMessageToRT in interface RTMessagesManager
      Parameters:
      sess - (also to get user from it)
      voId - id of vo, where user is member
      queue - in which queue will be message send
      subject - subject of message
      text - text of message
      Returns:
      RTMessage with information about success or not
    • sendMessageToRT

      public RTMessage sendMessageToRT(PerunSession sess, int voId, String subject, String text)
      Description copied from interface: RTMessagesManager
      This method get needed information and by predefined service user send message to RT which try to create new ticket For basic usage this method is for error msg from users of perun.

      voId is there especially for searching voAttribute rtVoQueue

      Specified by:
      sendMessageToRT in interface RTMessagesManager
      Parameters:
      sess - (also to get user from it)
      voId - id of vo, where user is member
      subject - subject of message
      text - text of message
      Returns:
      RTMessage with information about success or not
    • setPerunBl

      public void setPerunBl(PerunBl perunBl)
    • setRTMessagesManagerBl

      public void setRTMessagesManagerBl(RTMessagesManagerBl rtMessagesManagerBl)