Class HL7StoreAdminService
- java.lang.Object
-
- org.wso2.carbon.core.AbstractAdmin
-
- org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
-
- org.wso2.carbon.business.messaging.hl7.store.admin.HL7StoreAdminService
-
public class HL7StoreAdminService extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
-
-
Field Summary
Fields Modifier and Type Field Description static int
MSGS_PER_PAGE
-
Constructor Summary
Constructors Constructor Description HL7StoreAdminService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
flushMessages(String storeName)
String
getClassName(String name)
Get the implementation class name of the MessageStoreString[]
getHL7Proxies(String storeName)
String[]
getHL7StoreNames()
Get all the Current Message store names defined in the configurationTransferableHL7Message
getMessage(String storeName, String messageId)
List<TransferableHL7Message>
getMessages(String storeName)
List<TransferableHL7Message>
getMessagesPaginated(String storeName, int pageNumber)
int
getSearchSize(String storeName, String query)
int
getSize(String name)
Get the number of messages in the Message store with given nameList<TransferableHL7Message>
search(String storeName, String query)
boolean
sendMessage(String msg, String storeName, String proxyName)
boolean
updateMessage(String storeName, String messageId, String er7Payload, String xmlPayload)
-
Methods inherited from class org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration
-
Methods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUserId, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
-
-
-
Method Detail
-
getHL7StoreNames
public String[] getHL7StoreNames() throws org.apache.axis2.AxisFault
Get all the Current Message store names defined in the configuration- Returns:
- array of Strings that contains MessageStore names
- Throws:
org.apache.axis2.AxisFault
-
getSize
public int getSize(String name) throws org.apache.axis2.AxisFault
Get the number of messages in the Message store with given name- Parameters:
name
- of the MessageStore- Returns:
- number of message stores in the given store
- Throws:
org.apache.axis2.AxisFault
- if Message store does not exists
-
getClassName
public String getClassName(String name) throws org.apache.axis2.AxisFault
Get the implementation class name of the MessageStore- Parameters:
name
- of the MessageStore- Returns:
- implementation class name of the Message Store
- Throws:
org.apache.axis2.AxisFault
-
getMessages
public List<TransferableHL7Message> getMessages(String storeName) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
search
public List<TransferableHL7Message> search(String storeName, String query) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
getSearchSize
public int getSearchSize(String storeName, String query) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
getMessagesPaginated
public List<TransferableHL7Message> getMessagesPaginated(String storeName, int pageNumber) throws ca.uhn.hl7v2.HL7Exception, IOException, ClassNotFoundException
- Throws:
ca.uhn.hl7v2.HL7Exception
IOException
ClassNotFoundException
-
getMessage
public TransferableHL7Message getMessage(String storeName, String messageId) throws ca.uhn.hl7v2.HL7Exception, IOException, ClassNotFoundException
- Throws:
ca.uhn.hl7v2.HL7Exception
IOException
ClassNotFoundException
-
updateMessage
public boolean updateMessage(String storeName, String messageId, String er7Payload, String xmlPayload)
-
flushMessages
public boolean flushMessages(String storeName)
-
-