ilog.rules.res.model.archive
Class IlrArchiveManager
- java.lang.Object
-
- ilog.rules.res.model.archive.IlrArchiveManager
-
public class IlrArchiveManager extends java.lang.Object
Allows to export aIlrRuleAppInformation
instance or a Set ofIlrRuleAppInformation
instances to a RuleApp archive, and to load theIlrRuleAppInformation
objects contained in the RuleApp archive.
-
-
Constructor Summary
Constructors Constructor and Description IlrArchiveManager()
-
Method Summary
Methods Modifier and Type Method and Description java.util.Set<IlrMutableRuleAppInformation>
read(IlrRepositoryFactory repositoryFactory, java.util.jar.JarInputStream jarInputStream)
Creates the RuleApps and rulesets contained in a RuleApp archive.void
write(java.io.OutputStream outputStream, IlrMutableRuleAppInformation ruleApp)
Backs up anIlrRuleAppInformation
objects to a RuleApp archive.void
write(java.io.OutputStream outputStream, java.util.Set<IlrMutableRuleAppInformation> ruleApps)
Backs up a Set ofIlrRuleAppInformation
objects to a RuleApp archive.
-
-
-
Method Detail
-
write
public void write(java.io.OutputStream outputStream, java.util.Set<IlrMutableRuleAppInformation> ruleApps) throws java.io.IOException, IlrArchiveException
Backs up a Set ofIlrRuleAppInformation
objects to a RuleApp archive.- Throws:
IlrArchiveException
- If an error occurred during the backup.java.io.IOException
- If an input/output exception was raised- Parameters:
outputStream
- The output stream where the RuleApp archive will be stored. Cannot be null.ruleApps
- a Set ofIlrRuleAppInformation
objects. Cannot be null or empty.
-
write
public void write(java.io.OutputStream outputStream, IlrMutableRuleAppInformation ruleApp) throws java.io.IOException, IlrArchiveException
Backs up anIlrRuleAppInformation
objects to a RuleApp archive.- Throws:
IlrArchiveException
- If an error occurred during the backup.java.io.IOException
- If an input/output exception was raised- Parameters:
outputStream
- The output stream where the RuleApp archive will be stored. Cannot be null.ruleApp
- The RuleApp to back up. Cannot be null.
-
read
public java.util.Set<IlrMutableRuleAppInformation> read(IlrRepositoryFactory repositoryFactory, java.util.jar.JarInputStream jarInputStream) throws java.io.IOException, IlrArchiveException
Creates the RuleApps and rulesets contained in a RuleApp archive. The entities returned are not linked to a repository.- Throws:
IlrArchiveException
- If an error occurred during the load.java.io.IOException
- If an input/output exception was raised- Parameters:
repositoryFactory
- The repository factory used to create the RuleApp and rulesets. Cannot be null.jarInputStream
- The RuleApp archive. Cannot be null.- Returns:
- A Set of
IlrMutableRuleAppInformation
objects. Cannot be null.
-
-