@Deprecated public class ServiceGroupFilePersistenceManager extends AbstractFilePersistenceManager
axisConfig, omFactory
Constructor and Description |
---|
ServiceGroupFilePersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
beginTransaction(String serviceGroupId)
Deprecated.
Reads the relevant service group file from FS and loads the OM to memory.
|
boolean |
delete(String serviceGroupId,
String xpathStrOfElement)
Deprecated.
|
org.apache.axiom.om.OMElement |
get(String serviceGroupId)
Deprecated.
Returns the root serviceGroup element
This simply calls #get(String serviceGroupId, String xpathStr) with xpathStr = "/serviceGroup[1]"
|
List |
getAssociations(String serviceGroupId,
String xpathOfParentElement,
String associationName)
Deprecated.
Returns the root serviceGroup element
This simply calls #get(String serviceGroupId, String xpathStr) with xpathStr = "/serviceGroup[1]"
Note: Don't use this to retrieve a module association.
|
void |
init()
Deprecated.
|
commitTransaction, deleteAll, elementExists, fileExists, get, getAll, getAttribute, getFilePathFromResourceId, handleException, handleException, handleExceptionWithRollback, isMetaFileModification, isTransactionStarted, isUserModification, put, put, rollbackTransaction, setMetaFileModification, setUserModification
public ServiceGroupFilePersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public void beginTransaction(String serviceGroupId) throws PersistenceException
beginTransaction
in class AbstractFilePersistenceManager
serviceGroupId
- service Group namePersistenceException
public org.apache.axiom.om.OMElement get(String serviceGroupId) throws PersistenceDataNotFoundException
get
in class AbstractFilePersistenceManager
serviceGroupId
- service Group namePersistenceDataNotFoundException
- if the file don't have a root elementAbstractFilePersistenceManager.get(String, String)
public List getAssociations(String serviceGroupId, String xpathOfParentElement, String associationName) throws PersistenceDataNotFoundException
serviceGroupId
- service Group namexpathOfParentElement
- The xpath expression to the association elements. Generally, no need of using attr predicate because this does a this#getAllassociationName
- the type of association. ex. exposedTransportsPersistenceDataNotFoundException
- if an error occured during xpath evaluationPersistenceUtils.createModule(String, String, String)
,
AbstractFilePersistenceManager.get(String, String)
public boolean delete(String serviceGroupId, String xpathStrOfElement)
delete
in class AbstractFilePersistenceManager
serviceGroupId
- module name or service group name as applicablexpathStrOfElement
- xpath to the element which needs to be deletedpublic void init()
init
in class AbstractFilePersistenceManager
Copyright © 2016 WSO2 Inc. All rights reserved.