コード例 #1
0
    def __activate__(self, context):
        # Can't workout how to use the message_list, so use the transaction queues directly.
        self.messaging = MessagingServices.getInstance()

        # Prepare variables
        self.config = context["jsonConfig"]
        self.log = context["log"]
        self.index = context["fields"]
        self.object = context["object"]
        self.payload = context["payload"]
        self.params = context["params"]
        self.utils = context["pyUtils"]
        self.config = context["jsonConfig"]

        self.log.debug("Indexing Metadata Record '{}' '{}'",
                       self.object.getId(), self.payload.getId())

        # Common data
        self.__newDoc()
        self.packagePid = None
        pidList = self.object.getPayloadIdList()
        for pid in pidList:
            if pid.endswith(".tfpackage"):
                self.packagePid = pid

        # Real metadata
        if self.itemType == "object":
            self.__basicData()
            self.__metadata()

        # Make sure security comes after workflows
        self.__security()
コード例 #2
0
ファイル: curate.py プロジェクト: Paul-Nguyen/mint
 def queueMessage(self, msg):
     try:
         ms = MessagingServices.getInstance()
         ms.queueMessage(TransactionManagerQueueConsumer.LISTENER_ID, msg);
         ms.release()
         return True
     except:
         return False
コード例 #3
0
ファイル: timNotification.py プロジェクト: Deakin/redbox
 def __init__(self):
     self.messaging = MessagingServices.getInstance()
コード例 #4
0
 def __init__(self):
     self.messaging = MessagingServices.getInstance()
コード例 #5
0
 def __init__(self):
     DefaultWorkflowData.__init__(self)
     self.messaging = MessagingServices.getInstance()
コード例 #6
0
ファイル: queues.py プロジェクト: kiranba/the-fascinator
 def queueMessage(self, queue, msg):
     ms = MessagingServices.getInstance()
     ms.queueMessage(queue, msg)
     ms.release()
コード例 #7
0
 def __init__(self):
     DefaultWorkflowData.__init__(self)
     self.messaging = MessagingServices.getInstance()