public class XMLPartnershipFactory extends BasePartnershipFactory implements HasSchedule
this release added logic to store partnerships and provide methods for partner/partnership command line processor
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_FILENAME |
static String |
PARAM_INTERVAL |
COMPID_PARTNERSHIP_FACTORY
Constructor and Description |
---|
XMLPartnershipFactory() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getPartners() |
void |
init(Session session,
Map<String,String> parameters)
Component lifecycle hook.
|
void |
loadPartner(Map<String,Object> partners,
Node node) |
void |
loadPartnership(Map<String,Object> partners,
List<Partnership> partnerships,
Node node) |
void |
schedule(ScheduledExecutorService executor) |
void |
storePartnership() |
compareMap, getPartnership, getPartnership, getPartnership, getPartnership, getPartnerships, processFilenameBasedAttribs, setPartnerships, updatePartnership, updatePartnership
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getName, getParameters, getSession
public static final String PARAM_FILENAME
public static final String PARAM_INTERVAL
public Map<String,Object> getPartners()
getPartners
in interface PartnershipFactory
public void init(Session session, Map<String,String> parameters) throws OpenAS2Exception
Component
init
in interface Component
init
in class BaseComponent
session
- the component uses this object to access other componentsparameters
- configuration values for the componentOpenAS2Exception
- If an error occurs while initializing the componentSession
public void loadPartner(Map<String,Object> partners, Node node) throws OpenAS2Exception
OpenAS2Exception
public void loadPartnership(Map<String,Object> partners, List<Partnership> partnerships, Node node) throws OpenAS2Exception
OpenAS2Exception
public void storePartnership() throws OpenAS2Exception
OpenAS2Exception
public void schedule(ScheduledExecutorService executor) throws OpenAS2Exception
schedule
in interface HasSchedule
OpenAS2Exception
Copyright © 2018. All rights reserved.