|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.policy.DynamicSignaturesScript
public class DynamicSignaturesScript
This class is a representation of a Dynamic Signature Script File as it is produced by the VB script. This class knows to extract script header and body. The body is ambedded as is in the pqb. The Header provides the following information: signatures version, application version, relevant protocols. The dynamic signatures script has a different apply mechanism than the rest of the policy: the script file is uploaded to the SE and executed there as a CLI script.
| Constructor Summary | |
|---|---|
DynamicSignaturesScript()
use this constructor create an empty script. |
|
DynamicSignaturesScript(java.io.BufferedReader reader)
create from file |
|
DynamicSignaturesScript(java.io.File dssFile)
create from file |
|
DynamicSignaturesScript(java.io.InputStream in)
create from file |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks if two DynamicSignaturesScript are equal by comparing their script files |
DynamicSignatureInfo |
findById(int protocolId)
finds a signature by signature Id |
java.util.List |
fromProperties(com.pcube.apps.framework.commons.ListProperties prop)
iterates through a Properties object and looks for signatures. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
java.lang.String |
getCreatedForAppVer()
return the application version this script was created for. |
java.lang.String |
getDescription()
|
java.lang.String |
getFilename()
|
java.util.Calendar |
getImportTime()
|
java.lang.String |
getName()
|
java.util.List |
getProtocols()
Returns list of protocols that is the contents of this script. |
java.lang.String |
getScriptBuildNo()
returns the script's version. |
CLIScript |
getScriptFile()
|
java.lang.String |
getScriptVersion()
returns the script's version. |
java.util.List |
getSignatureInfos()
Return list of signatures the script defines. |
java.util.List |
getSignatures()
Returns list of signatures that is the contents of this script. |
boolean |
isEmpty()
returns true is the instance does not represents a real script. |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicSignaturesScript()
public DynamicSignaturesScript(java.io.File dssFile)
throws java.io.FileNotFoundException,
java.io.IOException,
ImportExportException
dssFile -
java.io.FileNotFoundException
java.io.IOException
ImportExportException
public DynamicSignaturesScript(java.io.InputStream in)
throws java.io.IOException,
ImportExportException
in -
java.io.IOException
ImportExportException
public DynamicSignaturesScript(java.io.BufferedReader reader)
throws java.io.IOException,
ImportExportException
in -
java.io.IOException
ImportExportException| Method Detail |
|---|
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public java.lang.String getDescription()
public java.lang.String getFilename()
public java.util.Calendar getImportTime()
public java.lang.String getName()
public java.lang.String getScriptBuildNo()
public CLIScript getScriptFile()
public java.lang.String getScriptVersion()
public java.util.List getSignatureInfos()
throws ImportExportException
java.io.IOException
ImportExportExceptionpublic boolean isEmpty()
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)
public java.util.List fromProperties(com.pcube.apps.framework.commons.ListProperties prop)
throws ImportExportException
prop -
ImportExportExceptionpublic DynamicSignatureInfo findById(int protocolId)
protocolId -
public java.util.List getProtocols()
throws ImportExportException,
java.io.IOException
ImportExportException
java.io.IOException
public java.util.List getSignatures()
throws ImportExportException,
java.io.IOException
ImportExportException
java.io.IOExceptionpublic java.lang.String getCreatedForAppVer()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj -
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||