public class PolicyPublisher extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SUBSCRIBER_DISPLAY_NAME |
static String |
SUBSCRIBER_ID |
Constructor and Description |
---|
PolicyPublisher()
Creates PolicyPublisher instance
|
Modifier and Type | Method and Description |
---|---|
void |
deleteSubscriber(String subscriberId) |
Set<PAPStatusDataHandler> |
getPapStatusDataHandlers() |
Set<PolicyPublisherModule> |
getPublisherModules() |
PublisherVerificationModule |
getVerificationModule() |
void |
persistSubscriber(PublisherDataHolder holder,
boolean update) |
void |
publishPolicy(String[] policyIds,
String version,
String action,
boolean enabled,
int order,
String[] subscriberIds,
String verificationCode)
publish policy
|
PublisherDataHolder |
retrieveSubscriber(String id,
boolean returnSecrets) |
String[] |
retrieveSubscriberIds(String searchString) |
void |
setPapStatusDataHandlers(Set<PAPStatusDataHandler> papStatusDataHandlers) |
public static final String SUBSCRIBER_ID
public static final String SUBSCRIBER_DISPLAY_NAME
public void publishPolicy(String[] policyIds, String version, String action, boolean enabled, int order, String[] subscriberIds, String verificationCode) throws EntitlementException
policyIds
- policy ids to publish,version
- action
- enabled
- order
- subscriberIds
- subscriber ids to publish,verificationCode
- verificationCode as StringEntitlementException
- throws if can not be created PolicyPublishExecutor instantpublic void persistSubscriber(PublisherDataHolder holder, boolean update) throws EntitlementException
EntitlementException
public void deleteSubscriber(String subscriberId) throws EntitlementException
EntitlementException
public PublisherDataHolder retrieveSubscriber(String id, boolean returnSecrets) throws EntitlementException
EntitlementException
public String[] retrieveSubscriberIds(String searchString) throws EntitlementException
EntitlementException
public Set<PolicyPublisherModule> getPublisherModules()
public Set<PAPStatusDataHandler> getPapStatusDataHandlers()
public void setPapStatusDataHandlers(Set<PAPStatusDataHandler> papStatusDataHandlers)
public PublisherVerificationModule getVerificationModule()
Copyright © 2016 WSO2. All rights reserved.