public abstract class AbstractPolicyPublisherModule extends Object implements PolicyPublisherModule
Modifier and Type | Field and Description |
---|---|
protected static String |
DISPLAY_NAME |
protected static String |
ORDER |
protected static String |
REQUIRED |
protected static String |
SECRET |
Constructor and Description |
---|
AbstractPolicyPublisherModule() |
Modifier and Type | Method and Description |
---|---|
abstract void |
delete(PolicyDTO policyDTO)
Deletes a published policy
|
abstract void |
disable(PolicyDTO policyDTO)
Disables policy in PDP
|
abstract void |
enable(PolicyDTO policyDTO)
Enables policy in PDP
|
void |
init(Properties properties)
initializes policy publisher retriever module
|
abstract void |
init(PublisherDataHolder propertyHolder)
This would init module, each time policy is published
|
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.
|
abstract void |
order(PolicyDTO policyDTO)
Order policy
|
void |
publish(PolicyDTO policyDTO,
String action,
boolean enabled,
int order)
publishes policy to given subscriber
|
abstract void |
publishNew(PolicyDTO policyDTO)
Publish a new policy
|
abstract void |
update(PolicyDTO policyDTO)
Update a already published policy
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModuleName
protected static final String REQUIRED
protected static final String DISPLAY_NAME
protected static final String ORDER
protected static final String SECRET
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 void publish(PolicyDTO policyDTO, String action, boolean enabled, int order) throws EntitlementException
PolicyPublisherModule
publish
in interface PolicyPublisherModule
policyDTO
- policy as PolicyDTOaction
- publishing actionenabled
- enableEntitlementException
public abstract void init(PublisherDataHolder propertyHolder) throws EntitlementException
propertyHolder
- publisher module data as PublisherDataHolderEntitlementException
- throws if init failspublic abstract void publishNew(PolicyDTO policyDTO) throws EntitlementException
policyDTO
- PolicyDTO
EntitlementException
- throws, if failspublic abstract void update(PolicyDTO policyDTO) throws EntitlementException
policyDTO
- PolicyDTO
EntitlementException
- throws, if failspublic abstract void delete(PolicyDTO policyDTO) throws EntitlementException
policyDTO
- PolicyDTO
EntitlementException
- throws, if failspublic abstract void order(PolicyDTO policyDTO) throws EntitlementException
policyDTO
- PolicyDTO
EntitlementException
- if failspublic abstract void disable(PolicyDTO policyDTO) throws EntitlementException
policyDTO
- PolicyDTO
EntitlementException
- if failspublic abstract void enable(PolicyDTO policyDTO) throws EntitlementException
policyDTO
- PolicyDTO
EntitlementException
- if failsCopyright © 2016 WSO2. All rights reserved.