|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LicenseManager
The LicenseManager
interface provides methods for retrieving and manipulating document licenses
and for retrieving information about licenses from the server.
Method Summary | |
---|---|
void |
changeLicensePolicy(java.lang.String licenseId,
java.lang.String newPolicySetName,
java.lang.String newPolicyName)
Associates a license with a different policy. |
License |
getLicense(java.lang.String licenseId)
Retrieves the license that has the specified identification. |
License |
getLicenseByAlternateId(java.lang.String alternateId)
Returns the license that has the specified alternate identification. |
License[] |
getLicenses(LicenseSearchFilter filter,
int maxResults)
Returns licenses based on the specified search criteria. |
void |
revokeLicense(java.lang.String licenseId,
int reason,
java.net.URL revocationURL)
Revokes the specified license that results in users being unable to open the associated document. |
void |
setLicenseAlternateId(java.lang.String licenseId,
java.lang.String alternateId)
Sets the alternate identification for a license. |
void |
unrevokeLicense(java.lang.String licenseId)
Modifies the state of a revoked license so that it is no longer revoked. |
void |
updateLicenseRevocationUrl(java.lang.String licenseId,
java.net.URL newURL)
Updates or removes the revocation URL for a license that is currently revoked. |
Method Detail |
---|
void revokeLicense(java.lang.String licenseId, int reason, java.net.URL revocationURL) throws SDKException
com.adobe.livecycle.rightsmanagement.client.LicenseManager#updateDocumentRevocationUrl(com.adobe.idp.Document, java.net.URL)
method.
To see this method used within a code example, see the
Revoking a document using the Java API quick start in Programming with Adobe Experience Manager Forms.
licenseId
- A string value that identifies the license that you want to revoke.reason
- An integer value that represents the reason why the license was revoked.
The License
class defines the values that reason
can hold.revocationURL
- A URL
object that represents the URL that appears to users who
attempt to open the document and null if you do not want to provide a URL.
SDKException
- if any of the following conditions occur:
com.adobe.livecycle.rightsmanagement.client.LicenseManager#updateDocumentRevocationUrl(com.adobe.idp.Document, java.net.URL)
void unrevokeLicense(java.lang.String licenseId) throws SDKException
licenseId
- A string value that identifies the license to unrevoke.
SDKException
- if any of the following conditions occur:
License getLicense(java.lang.String licenseId) throws SDKException
licenseId
- A String
that identifies the license to retrieve.
License
object that represents the license with the identification specified in licenseId
and null if no license is found.
SDKException
- if any of the following conditions occur:
License getLicenseByAlternateId(java.lang.String alternateId) throws SDKException
alternateId
- A String
that holds the alternate identification for the license
to retrieve. The maximum length of the String
you can use is 250 characters or errors can occur.
license
object that represents the license with the alternate identification specified in alternateId
and null if no license is found.
SDKException
- if any of the following conditions occur:
License[] getLicenses(LicenseSearchFilter filter, int maxResults) throws SDKException
filter
- A LicenseSearchFilter
object that defines the search criteria.maxResults
- An integer that specifies the maximum number of License
objects to return. There is
no fixed range and the maximum number of licenses is dependent upon the database that Adobe Experience Manager Forms uses.
License
objects that represent the licenses that match the search criteria.
An empty (size of 0) License array is returned when no licenses are found.
SDKException
- if any of the following conditions occur:
void setLicenseAlternateId(java.lang.String licenseId, java.lang.String alternateId) throws SDKException
licenseId
- A String
that holds the identification of the license
for which you want to set the alternate identification.alternateId
- A String
that holds the alternate identification to associate with the license.
No two licenses can have the same alternate identification.
The maximum length of the String
you can use is 255 characters or errors can occur.
SDKException
- if any of the following conditions occur:
void changeLicensePolicy(java.lang.String licenseId, java.lang.String newPolicySetName, java.lang.String newPolicyName) throws SDKException
licenseId
- A String value that holds the identification of the license.newPolicySetName
- A String value that represents the name of the policy set.newPolicyName
- A String value that holds the identification of the policy to associate with the license.
SDKException
- if any of the following conditions occur:
void updateLicenseRevocationUrl(java.lang.String licenseId, java.net.URL newURL) throws SDKException
licenseId
- A String
that holds the licenseId
of the revoked license.newURL
- An URL
object that represents the URL of the new revocation URL
and null if you want remove the URL that was previously set.
SDKException
- if any of the following conditions occur:
LicenseManager.revokeLicense(String, int, java.net.URL)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |