Class SoapSTSInstancePublisherImpl
- java.lang.Object
-
- org.forgerock.openam.sts.publish.soap.SoapSTSInstancePublisherImpl
-
- All Implemented Interfaces:
SoapSTSInstancePublisher
public class SoapSTSInstancePublisherImpl extends Object implements SoapSTSInstancePublisher
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoapSTSInstanceConfiggetPublishedInstance(String stsId, String realm)Called to return the config state corresponding to a specified Soap STS instanceList<SoapSTSInstanceConfig>getPublishedInstances()Called to obtain the configuration elements corresponding to previously-published STS instances.List<SoapSTSInstanceConfig>getPublishedInstances(String realm)Called to obtain the configuration elements corresponding to previously-published STS instances.StringpublishInstance(SoapSTSInstanceConfig instanceConfig)Publish the Soap STS instance specified by the instanceConfig parameter.voidremoveInstance(String stsId, String realm)Remove the Soap STS instance from the SMS, and from the CREST router.
-
-
-
Method Detail
-
publishInstance
public String publishInstance(SoapSTSInstanceConfig instanceConfig) throws STSPublishException
Description copied from interface:SoapSTSInstancePublisherPublish the Soap STS instance specified by the instanceConfig parameter. Publishing a Soap STS instance means persisting it to the SMS and exposing it via CREST.- Specified by:
publishInstancein interfaceSoapSTSInstancePublisher- Parameters:
instanceConfig- The configuration state for the to-be-published Soap STS instance.- Returns:
- the urlElement, including the realm, at which the Soap STS instance has been published.
- Throws:
STSPublishException- if the Soap STS instance could not be published
-
removeInstance
public void removeInstance(String stsId, String realm) throws STSPublishException
Description copied from interface:SoapSTSInstancePublisherRemove the Soap STS instance from the SMS, and from the CREST router.- Specified by:
removeInstancein interfaceSoapSTSInstancePublisher- Parameters:
stsId- The sts id, obtained from SoapSTSInstanceConfig#getDeploymentSubPathrealm- The realm in which the Soap STS is to be deployed.- Throws:
STSPublishException- if the Soap STS instance could not be removed
-
getPublishedInstances
public List<SoapSTSInstanceConfig> getPublishedInstances() throws STSPublishException
Description copied from interface:SoapSTSInstancePublisherCalled to obtain the configuration elements corresponding to previously-published STS instances.- Specified by:
getPublishedInstancesin interfaceSoapSTSInstancePublisher- Returns:
- The SoapSTSInstanceConfig instances corresponding to published STS instances.
- Throws:
STSPublishException- if exception encountered obtaining persisted instance state
-
getPublishedInstances
public List<SoapSTSInstanceConfig> getPublishedInstances(String realm) throws STSPublishException
Description copied from interface:SoapSTSInstancePublisherCalled to obtain the configuration elements corresponding to previously-published STS instances.- Specified by:
getPublishedInstancesin interfaceSoapSTSInstancePublisher- Parameters:
realm- The realm for which published sts instances should be obtained.- Returns:
- The SoapSTSInstanceConfig instances corresponding to published STS instances in the specified realm.
- Throws:
STSPublishException- if exception encountered obtaining persisted instance state
-
getPublishedInstance
public SoapSTSInstanceConfig getPublishedInstance(String stsId, String realm) throws STSPublishException
Description copied from interface:SoapSTSInstancePublisherCalled to return the config state corresponding to a specified Soap STS instance- Specified by:
getPublishedInstancein interfaceSoapSTSInstancePublisher- Parameters:
stsId- The sts id, obtained from SoapSTSInstanceConfig#getDeploymentSubPathrealm- The realm in which the Soap STS is to be deployed.- Returns:
- The SoapSTSInstanceConfig corresponding to this published instance
- Throws:
STSPublishException- if the published instance state could not be obtained
-
-