Rule Execution Server API

ilog.rules.res.model
Interface IlrRepositoryFactory

All Superinterfaces:
Serializable

public interface IlrRepositoryFactory
extends Serializable

The IlrRepositoryFactory interface represents the entry point for the management repository.

Since:
7.0

Method Summary
 IlrMutableRepository createRepository()
          Creates a new repository.
 IlrMutableRuleAppInformation createRuleApp(IlrMutableRuleAppInformation ruleApp)
          Creates a copy of a RuleApp.
 IlrMutableRuleAppInformation createRuleApp(String name, IlrVersion version)
          Creates a RuleApp with a specific name and version number.
 IlrMutableRuleAppInformation createRuleApp(String name, IlrVersion version, Date creationDate)
          Creates a RuleApp with a specific name, version number, and date.
 IlrMutableRulesetArchiveInformation createRuleset(IlrMutableRulesetArchiveInformation ruleset)
          Creates a copy of a ruleset.
 IlrMutableRulesetArchiveInformation createRuleset(String name, IlrVersion version)
          Creates a ruleset with a specific name and version number.
 IlrMutableRulesetArchiveInformation createRuleset(String name, IlrVersion version, Date creationDate)
          Creates a ruleset with a specific name, version number, and date.
 IlrRepository unmodifiableRepository(IlrMutableRepository repository)
          Returns a read-only view of a mutable repository.
 IlrRuleAppInformation unmodifiableRuleApp(IlrMutableRuleAppInformation ruleApp)
          Returns a read-only view of a mutable RuleApp.
 Set<IlrRuleAppInformation> unmodifiableRuleApps(Set<IlrMutableRuleAppInformation> ruleApps)
          Returns a read-only view of a Set of mutable RuleApps.
 IlrRulesetArchiveInformation unmodifiableRuleset(IlrMutableRulesetArchiveInformation ruleset)
          Returns a read-only view of a mutable ruleset.
 Set<IlrRulesetArchiveInformation> unmodifiableRulesets(Set<IlrMutableRulesetArchiveInformation> rulesets)
          Returns a read-only view of a Set of mutable rulesets.
 

Method Detail

createRepository

IlrMutableRepository createRepository()
Creates a new repository.

Returns:
The new repository.

createRuleApp

IlrMutableRuleAppInformation createRuleApp(String name,
                                           IlrVersion version)
                                           throws IlrFormatException
Creates a RuleApp with a specific name and version number. This RuleApp is not linked to a repository.

The creation date of this RuleApp is the current date.

Throws:
IlrFormatException - if one of the parameters is incorrectly formatted.
Parameters:
name - The RuleApp name.
version - The RuleApp version number.
Returns:
A new RuleApp.

createRuleApp

IlrMutableRuleAppInformation createRuleApp(String name,
                                           IlrVersion version,
                                           Date creationDate)
                                           throws IlrFormatException
Creates a RuleApp with a specific name, version number, and date. This RuleApp is not linked to a repository.

Throws:
IlrFormatException - if one of the parameters is incorrectly formatted.
Parameters:
name - The RuleApp name.
version - The RuleApp version number.
creationDate - The creation date of the RuleApp.
Returns:
A new RuleApp.

createRuleApp

IlrMutableRuleAppInformation createRuleApp(IlrMutableRuleAppInformation ruleApp)
Creates a copy of a RuleApp. All attributes of ruleApp are duplicated. However, the returned RuleApp is not linked to a repository.

Parameters:
ruleApp - The RuleApp to copy.
Returns:
A new RuleApp.

createRuleset

IlrMutableRulesetArchiveInformation createRuleset(String name,
                                                  IlrVersion version)
                                                  throws IlrFormatException
Creates a ruleset with a specific name and version number. This ruleset is not linked to a RuleApp.

The creation date of this ruleset is the current date.

Throws:
IlrFormatException - if one of the parameters is incorrectly formatted.
Parameters:
name - The ruleset name.
version - The ruleset version number.
Returns:
A new ruleset.

createRuleset

IlrMutableRulesetArchiveInformation createRuleset(String name,
                                                  IlrVersion version,
                                                  Date creationDate)
                                                  throws IlrFormatException
Creates a ruleset with a specific name, version number, and date. This ruleset is not linked to a RuleApp.

Throws:
IlrFormatException - if one of the parameters is incorrectly formatted.
Parameters:
name - The ruleset name.
version - The ruleset version.
creationDate - The creation date of the ruleset.
Returns:
A new ruleset.

createRuleset

IlrMutableRulesetArchiveInformation createRuleset(IlrMutableRulesetArchiveInformation ruleset)
Creates a copy of a ruleset. All attributes of ruleset are duplicated. However, the returned ruleset is not linked to a RuleApp.

Parameters:
ruleset - The ruleset to copy.
Returns:
A new ruleset.

unmodifiableRepository

IlrRepository unmodifiableRepository(IlrMutableRepository repository)
Returns a read-only view of a mutable repository.

Parameters:
repository - The mutable repository.
Returns:
A read-only view of repository.

unmodifiableRuleApp

IlrRuleAppInformation unmodifiableRuleApp(IlrMutableRuleAppInformation ruleApp)
Returns a read-only view of a mutable RuleApp.

Parameters:
ruleApp - The mutable RuleApp.
Returns:
A read-only view of ruleApp.

unmodifiableRuleApps

Set<IlrRuleAppInformation> unmodifiableRuleApps(Set<IlrMutableRuleAppInformation> ruleApps)
Returns a read-only view of a Set of mutable RuleApps.

Parameters:
ruleApps - The Set of mutable RuleApps.
Returns:
A read-only view of ruleApps.

unmodifiableRuleset

IlrRulesetArchiveInformation unmodifiableRuleset(IlrMutableRulesetArchiveInformation ruleset)
Returns a read-only view of a mutable ruleset.

Parameters:
ruleset - The mutable ruleset.
Returns:
A read-only view of ruleset.

unmodifiableRulesets

Set<IlrRulesetArchiveInformation> unmodifiableRulesets(Set<IlrMutableRulesetArchiveInformation> rulesets)
Returns a read-only view of a Set of mutable rulesets.

Parameters:
rulesets - The Set of mutable rulesets.
Returns:
A read-only view of rulesets.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013