|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.protection.pub.pro.integration.IssueResolverSupport
public class IssueResolverSupport
Base class for issue resolvers implementation. Provides vital methods required to get and activate licenses.
Field Summary | |
---|---|
protected java.util.HashMap |
fArguments
|
protected dev.entities.Customer |
fCustomer
|
protected LicenseHost |
fLicenseHost
|
protected java.lang.String |
fLicensingFacadeProviderName
|
protected java.lang.String |
fLogin
|
protected java.lang.String |
fPassword
|
protected ProductInfo |
fProductInfo
|
protected java.lang.String |
fSerialNumber
|
protected boolean |
fVerbose
|
protected static java.lang.String |
MSG_NO_LICENSING_FACADE
|
protected static java.lang.String |
MSG_UNABLE_TO_ACTIVATE
|
protected static java.lang.String |
MSG_UNABLE_TO_DEACTIVATE
|
protected static java.lang.String |
MSG_UNABLE_TO_GET_EVAL
|
protected static java.lang.String |
MSG_UNABLE_TO_GET_LICENSE_BY_S_N
|
Constructor Summary | |
---|---|
IssueResolverSupport(ProductInfo aProductInfo,
dev.entities.Customer aCustomer)
Creates a new instance of the IssueResolverSupport |
Method Summary | |
---|---|
boolean |
activateLicense(LicenseHost aLicenseHost,
java.lang.String anActivationKey)
Activates license and saves it to a location specified by the license reader |
boolean |
deactivateLicense(LicenseHost aLicenseHost,
java.lang.String aDeactivationKey)
Notifies vendor about results of deactivation process |
protected void |
error(java.lang.Exception ex)
|
protected void |
error(java.lang.String aMessage)
|
java.util.HashMap |
getArguments()
Returns arguments required to get or activate licenses |
dev.entities.Customer |
getCustomer()
Returns customer information who is requesting or activating the license |
boolean |
getEvaluationLicense()
Obtains new evaluation license and saves it to a location specified by the License Reader Note, License Reader should be properly specified before the call of the method |
boolean |
getEvaluationLicense(boolean isExtEvaluation)
Obtains new evaluation license and saves it to a location specified by the License Reader Note, License Reader should be properly specified before the call of the method |
boolean |
getEvaluationLicense(LicenseReader aLicenseReader)
Obtains new evaluation license and saves it to a location specified by the license reader |
boolean |
getEvaluationLicense(LicenseReader aLicenseReader,
boolean isExtEvaluation)
Obtains new evaluation license and saves it to a location specified by the license reader |
protected LicenseDescr |
getEvaluationLicenseDescr(boolean isExtEvaluation)
|
boolean |
getLicenseBySerialNumber()
Obtains new license by Serial Number and saves it to a location specified by the License Reader. |
boolean |
getLicenseBySerialNumber(LicenseReader aLicenseReader)
Obtains new license by Serial Number and saves it to a location specified by the license reader |
boolean |
getLicenseBySerialNumber(LicenseReader aLicenseReader,
java.lang.String aSerialNumber)
Obtains new license by Serial Number and saves it to a location specified by the license reader |
protected byte[] |
getLicenseBytes(LicenseHost aLicenseHost)
|
LicenseHost |
getLicenseHost()
Returns License Host can be used in order to get or activate licenses |
java.lang.String |
getLicensingFacadeProviderName()
Returns the name of licensing facade, which should be used to get or activate licenses |
java.lang.String |
getLogin()
Returns login name |
java.lang.String |
getPassword()
Returns password |
ProductInfo |
getProductInfo()
Return product information |
java.lang.String |
getSerialNumber()
Returns serial number |
boolean |
isVerbose()
Checks whether reader runs in verbose mode. |
protected boolean |
saveLicense(LicenseReader aLicenseReader,
byte[] licenseBytes)
|
void |
setArguments(java.util.HashMap aArguments)
Specifies arguments required to get or activate licenses |
void |
setLicenseHost(LicenseHost aLicenseHost)
Specifies License Host can be used in order to get or activate licenses |
void |
setLicensingFacadeProviderName(java.lang.String aLicensingFacadeProviderName)
Specifies name of licensing facade, which should be used to get or activate licenses |
void |
setLogin(java.lang.String aLogin)
Specifies login name should be passed to all calls of the LicensingFacade methods |
void |
setPassword(java.lang.String aPassword)
Specifies password should be passed to all calls of the LicensingFacade methods |
void |
setSerialNumber(java.lang.String aSerialNumber)
Specifies serial number value, which should be used when license is missing, corrupted, expired or invalid. |
void |
setVerbose(boolean aVerbose)
Specifies that this class should be run in verbose mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ProductInfo fProductInfo
protected dev.entities.Customer fCustomer
protected java.lang.String fLogin
protected java.lang.String fPassword
protected java.lang.String fSerialNumber
protected java.lang.String fLicensingFacadeProviderName
protected static final java.lang.String MSG_UNABLE_TO_GET_EVAL
protected static final java.lang.String MSG_UNABLE_TO_GET_LICENSE_BY_S_N
protected static final java.lang.String MSG_UNABLE_TO_ACTIVATE
protected static final java.lang.String MSG_UNABLE_TO_DEACTIVATE
protected static final java.lang.String MSG_NO_LICENSING_FACADE
protected boolean fVerbose
protected java.util.HashMap fArguments
protected LicenseHost fLicenseHost
Constructor Detail |
---|
public IssueResolverSupport(ProductInfo aProductInfo, dev.entities.Customer aCustomer)
IssueResolverSupport
aProductInfo
- describes product informationaCustomer
- describes customer information who requests or activates the licenseMethod Detail |
---|
public java.lang.String getLogin()
public void setLogin(java.lang.String aLogin)
LicensingFacade
methods
aLogin
- login namepublic java.lang.String getPassword()
public void setPassword(java.lang.String aPassword)
LicensingFacade
methods
aPassword
- passwordpublic dev.entities.Customer getCustomer()
public ProductInfo getProductInfo()
public java.lang.String getSerialNumber()
public void setSerialNumber(java.lang.String aSerialNumber)
aSerialNumber
- serial numberpublic java.lang.String getLicensingFacadeProviderName()
public void setLicensingFacadeProviderName(java.lang.String aLicensingFacadeProviderName)
aLicensingFacadeProviderName
- the name of licensing facadeprotected LicenseDescr getEvaluationLicenseDescr(boolean isExtEvaluation)
protected boolean saveLicense(LicenseReader aLicenseReader, byte[] licenseBytes)
public boolean getEvaluationLicense()
true
is license is successfully obtained; false
otherwisepublic boolean getEvaluationLicense(LicenseReader aLicenseReader)
aLicenseReader
- license reader
true
is license is successfully obtained; false
otherwisepublic boolean getEvaluationLicense(boolean isExtEvaluation)
isExtEvaluation
- specifies whether extended evaluation license is required
true
is license is successfully obtained; false
otherwisepublic boolean getEvaluationLicense(LicenseReader aLicenseReader, boolean isExtEvaluation)
aLicenseReader
- license readerisExtEvaluation
- specifies whether extended evaluation license is required
true
is license is successfully obtained; false
otherwisepublic boolean getLicenseBySerialNumber()
true
is license is successfully obtained; false
otherwisepublic boolean getLicenseBySerialNumber(LicenseReader aLicenseReader)
aLicenseReader
- license reader
true
is license is successfully obtained; false
otherwisepublic boolean getLicenseBySerialNumber(LicenseReader aLicenseReader, java.lang.String aSerialNumber)
aLicenseReader
- license readeraSerialNumber
- serial number
true
is license is successfully obtained; false
otherwisepublic boolean activateLicense(LicenseHost aLicenseHost, java.lang.String anActivationKey)
aLicenseHost
- license hostanActivationKey
- activation key
true
is license is successfully obtained; false
otherwisepublic boolean deactivateLicense(LicenseHost aLicenseHost, java.lang.String aDeactivationKey)
aLicenseHost
- license hostaDeactivationKey
- deactivation key
true
if license has been deactivated on a vedor side; false
otherwiseprotected byte[] getLicenseBytes(LicenseHost aLicenseHost)
public boolean isVerbose()
true
if license host runs in verbose mode, false
otherwise.public void setVerbose(boolean aVerbose)
stderr
. Otherwise
there is no output in order to prevent the code flow analysis.
aVerbose
- true
if it should run in verbose mode,
false
otherwise.public java.util.HashMap getArguments()
public void setArguments(java.util.HashMap aArguments)
aArguments
- argumentspublic LicenseHost getLicenseHost()
public void setLicenseHost(LicenseHost aLicenseHost)
aLicenseHost
- License Host instanceprotected void error(java.lang.String aMessage)
protected void error(java.lang.Exception ex)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |