Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-01


oracle.irm.engine.core.license
Interface LicenseStatus


public interface LicenseStatus

License status. A license status contains details of a license and the associated license availability. A license status is used by operations that report license availability status.

Creation

Instances of License Status objects can be created using the following factory style method(s).

LicenseStatus object = createLicenseStatus(
    license,
    availability);

Collections

Collections for LicenseStatus objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing LicenseStatus elements.

 Collection<LicenseStatus> object = createLicenseStatuses();

XML Serialization

License Status instances can be serialized as an XML document. This XML document can also be used to recreate a License Status object. The following XML document shows an example License Status in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<core:LicenseStatus xmlns:classifications="http://xmlns.oracle.com/irm/classifications" xmlns:core="http://xmlns.oracle.com/irm/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <license>
        <uuid>7fabc0b0-6ece-495b-96e3-661b655b1759</uuid>
        <criteria>
            <storage>PERSISTENT</storage>
            <delivery>SYNCHRONIZATION</delivery>
            <use>PRIMARY</use>
            <features>
                <id>oracle.irm.generic.Open</id>
                <use>IMMEDIATE</use>
                <record>true</record>
            </features>
            <timeSpans xsi:type="core:AbsoluteTimeSpan">
                <referencePoint>CURRENT</referencePoint>
                <startTime>2007-08-10T12:00:00.000+01:00</startTime>
                <stopTime>2007-09-10T12:00:00.000+01:00</stopTime>
            </timeSpans>
            <refreshPeriod>
                <amount>120</amount>
                <units>SECONDS</units>
            </refreshPeriod>
            <classifications xsi:type="core:XPathClassificationFilter">
                <system>
                    <uuid>588403f9-9cff-4cce-88e4-e030cc57282a</uuid>
                </system>
                <uri>http://irm.example.com/irm_desktop</uri>
                <expression>
                    <namespaceContexts>classifications:classifications</namespaceContexts>
                    <value>classifications:ContextCookie/[context[uuid='588403f9-9cff-4cce-88e4-e030cc57282a'] and itemCode='item1.sdoc']</value>
                </expression>
            </classifications>
            <destinations xsi:type="core:XPathClassificationFilter">
                <system>
                    <uuid>588403f9-9cff-4cce-88e4-e030cc57282a</uuid>
                </system>
                <uri>http://irm.example.com/irm_desktop</uri>
                <expression>
                    <namespaceContexts>classifications:classifications</namespaceContexts>
                    <value>classifications:ContextCookie/context[uuid='9275e6e5-9550-4054-9a4e-618971d5aeda']</value>
                </expression>
            </destinations>
        </criteria>
        <keys>
            <uuid>213f8f65-c5d1-4868-9fff-ad156daa2dd6</uuid>
        </keys>
        <licenseTime>2007-01-01T12:00:00.000+01:00</licenseTime>
        <requestTime>2008-01-01T12:00:00.000+01:00</requestTime>
        <serveUuid>9c31d850-4470-4ba4-8dac-16324156e54f</serveUuid>
        <refreshTime>2009-01-01T12:00:00.000+01:00</refreshTime>
    </license>
    <availability>AVAILABLE</availability>
</core:LicenseStatus>


Method Summary
 License.Availability getAvailability()
          License availability.
 License getLicense()
          License.

 

Method Detail

getLicense

License getLicense()
License.
Returns:
the value of the property. This method will never return null.

getAvailability

License.Availability getAvailability()
License availability.
Returns:
the value of the property. This method will never return null.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-01


Copyright © 2010, Oracle. All rights reserved.