|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPublishRuleSet
Represents a set of publishing rules. Publishing rules are ordered from lowest priority to highest priority. The priority assignment for publishing rules is not enforced by this interface. Various implementation may use different mechanisms such as a linear ordering of publishing rules in a configuration file or explicit assignment of priority levels ..etc. The publishing rule initialization needs to deal with reading the publishing rules, sorting them in increasing order of priority and presenting an ordered vector of publishing rules via the IPublishRuleSet interface. When a request comes, the predicates of the publishing rules will be checked in the order to find the first matched publishing rule as the mapping rule to (un)publish the object.
Method Summary | |
---|---|
void |
addRule(java.lang.String aliasName,
ILdapRule rule)
Add a publishing rule |
int |
count()
Returns the no of publishing rules in a set. |
java.lang.String |
getName()
Returns the name of the publishing rule set. |
ILdapRule |
getRule(IRequest req)
Get the publishing rule identified by a corresponding request. |
ILdapRule |
getRule(java.lang.String ruleName)
Get the publishing rule identified by a given name. |
java.util.Enumeration |
getRules()
Get an enumeration of publishing rules. |
void |
init(ISubsystem sys,
IConfigStore conf)
|
void |
publish(netscape.ldap.LDAPConnection conn,
IRequest req)
Apply publishing rules on a request. |
void |
removeRule(java.lang.String ruleName)
Removes a publishing rule identified by the given name. |
Method Detail |
---|
void init(ISubsystem sys, IConfigStore conf) throws EBaseException
EBaseException
java.lang.String getName()
int count()
void addRule(java.lang.String aliasName, ILdapRule rule)
aliasName
- The name of the publishing rule to be added.rule
- rule The publishing rule to be added.void removeRule(java.lang.String ruleName)
ruleName
- The name of the publishing rule to be removed.ILdapRule getRule(java.lang.String ruleName)
ruleName
- The name of the publishing rule to be return.
ILdapRule getRule(IRequest req)
req
- The request from which rule will be identified.
java.util.Enumeration getRules()
void publish(netscape.ldap.LDAPConnection conn, IRequest req) throws ELdapException
conn
- The Ldap connectionreq
- The request to apply policies on.
ELdapException
- publish failed due to Ldap error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |