ilog.rules.res.model
Interface IlrRepositoryFactory
-
- All Superinterfaces:
- java.io.Serializable
public interface IlrRepositoryFactory extends java.io.Serializable
TheIlrRepositoryFactory
interface represents the entry point for the management repository.- Since:
- 7.0
-
-
Method Summary
Methods Modifier and Type Method and Description IlrMutableRepository
createRepository()
Creates a new repository.IlrMutableRuleAppInformation
createRuleApp(IlrMutableRuleAppInformation ruleApp)
Creates a copy of a RuleApp.IlrMutableRuleAppInformation
createRuleApp(java.lang.String name, IlrVersion version)
Creates a RuleApp with a specific name and version number.IlrMutableRuleAppInformation
createRuleApp(java.lang.String name, IlrVersion version, java.util.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(java.lang.String name, IlrVersion version)
Creates a ruleset with a specific name and version number.IlrMutableRulesetArchiveInformation
createRuleset(java.lang.String name, IlrVersion version, java.util.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.java.util.Set<IlrRuleAppInformation>
unmodifiableRuleApps(java.util.Set<IlrMutableRuleAppInformation> ruleApps)
Returns a read-only view of aSet
of mutable RuleApps.IlrRulesetArchiveInformation
unmodifiableRuleset(IlrMutableRulesetArchiveInformation ruleset)
Returns a read-only view of a mutable ruleset.java.util.Set<IlrRulesetArchiveInformation>
unmodifiableRulesets(java.util.Set<IlrMutableRulesetArchiveInformation> rulesets)
Returns a read-only view of aSet
of mutable rulesets.
-
-
-
Method Detail
-
createRepository
IlrMutableRepository createRepository()
Creates a new repository.- Returns:
- The new repository.
-
createRuleApp
IlrMutableRuleAppInformation createRuleApp(java.lang.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(java.lang.String name, IlrVersion version, java.util.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 ofruleApp
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(java.lang.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(java.lang.String name, IlrVersion version, java.util.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 ofruleset
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
java.util.Set<IlrRuleAppInformation> unmodifiableRuleApps(java.util.Set<IlrMutableRuleAppInformation> ruleApps)
Returns a read-only view of aSet
of mutable RuleApps.- Parameters:
ruleApps
- TheSet
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
java.util.Set<IlrRulesetArchiveInformation> unmodifiableRulesets(java.util.Set<IlrMutableRulesetArchiveInformation> rulesets)
Returns a read-only view of aSet
of mutable rulesets.- Parameters:
rulesets
- TheSet
of mutable rulesets.- Returns:
- A read-only view of
rulesets
.
-
-