public class CarbonPDPPublisher extends Object implements PolicyPublisherModule
Constructor and Description |
---|
CarbonPDPPublisher() |
Modifier and Type | Method and Description |
---|---|
String |
getModuleName()
gets name of this module
|
void |
init(Properties properties)
initializes policy publisher retriever module
|
Properties |
loadProperties()
Load the properties are needed to initialize the module or that are needed to populate
to populate the management console ui of publisher configuration.
|
void |
publish(PolicyDTO policyDTO,
String action,
boolean enabled,
int order)
publishes policy to given subscriber
|
public void init(Properties properties)
PolicyPublisherModule
init
in interface PolicyPublisherModule
properties
- Properties, that are needed to initialize the module or
that are needed to populate the management console ui of publisher configuration.
These properties can be defined in entitlement-properties file.public Properties loadProperties()
PolicyPublisherModule
loadProperties
in interface PolicyPublisherModule
public String getModuleName()
PolicyPublisherModule
getModuleName
in interface PolicyPublisherModule
public void publish(PolicyDTO policyDTO, String action, boolean enabled, int order) throws EntitlementException
PolicyPublisherModule
publish
in interface PolicyPublisherModule
policyDTO
- policy as PolicyDTOaction
- publishing actionenabled
- enableEntitlementException
Copyright © 2016 WSO2. All rights reserved.