|
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(BufferedReader reader)
create from file |
|
DynamicSignaturesScript(File dssFile)
create from file |
|
DynamicSignaturesScript(InputStream in)
create from file |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Checks if two DynamicSignaturesScript are equal by comparing their script files |
DynamicSignatureInfo |
findById(int protocolId)
finds a signature by signature Id |
List |
fromProperties(com.pcube.apps.framework.commons.ListProperties prop)
iterates through a Properties object and looks for signatures. |
void |
fromStream(BufferedReader in,
Formatter f)
Method fromStream |
String |
getCreatedForAppVer()
return the application version this script was created for. |
String |
getDescription()
|
String |
getFilename()
|
Calendar |
getImportTime()
|
String |
getName()
|
List |
getProtocols()
Returns list of protocols that is the contents of this script. |
String |
getScriptBuildNo()
returns the script's version. |
CLIScript |
getScriptFile()
|
String |
getScriptVersion()
returns the script's version. |
List |
getSignatureInfos()
Return list of signatures the script defines. |
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(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(File dssFile)
throws FileNotFoundException,
IOException,
ImportExportException
dssFile -
FileNotFoundException
IOException
ImportExportException
public DynamicSignaturesScript(InputStream in)
throws IOException,
ImportExportException
in -
IOException
ImportExportException
public DynamicSignaturesScript(BufferedReader reader)
throws IOException,
ImportExportException
in -
IOException
ImportExportException| Method Detail |
|---|
public void fromStream(BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public String getDescription()
public String getFilename()
public Calendar getImportTime()
public String getName()
public String getScriptBuildNo()
public CLIScript getScriptFile()
public String getScriptVersion()
public List getSignatureInfos()
throws ImportExportException
IOException
ImportExportExceptionpublic boolean isEmpty()
public void toStream(PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)
public List fromProperties(com.pcube.apps.framework.commons.ListProperties prop)
throws ImportExportException
prop -
ImportExportExceptionpublic DynamicSignatureInfo findById(int protocolId)
protocolId -
public List getProtocols()
throws ImportExportException,
IOException
ImportExportException
IOException
public List getSignatures()
throws ImportExportException,
IOException
ImportExportException
IOExceptionpublic String getCreatedForAppVer()
public boolean equals(Object obj)
equals in class Objectobj -
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||