|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.core.feature.FeatureOperationsInstance
public final class FeatureOperationsInstance
Operations for obtaining and manipulating desktop features.
This class provides static methods for a set of procedural style methods. The methods can be made to appear as global methods by using import static. e.g.
import static oracle.irm.engine.core.feature.FeatureOperationsInstance.*;
Method Summary | |
---|---|
static Collection<Feature> |
addFeatures(Collection<Feature> features, String[] ids) Add features to a collection by feature identity. |
static Feature |
getFeature(String id) Get a feature. |
static Label |
getFeatureLabel(Locale locale, String id) Get a feature label. |
static Collection<Feature> |
getFeatures(String[] ids) Get a set of features from an array of feature identities. |
static boolean |
hasPrimaryFeature(Collection<Feature> features) Check a collection of features has at least one primary feature. |
static boolean |
hasRecordedFeature(Collection<Feature> features) Check whether a collection of features includes recorded feature. |
static boolean |
isPrimaryFeature(Feature feature) Check whether a feature is a primary feature. |
static Collection<Label> |
listFeatureLabels(Locale locale, String[] ids) List feature labels. |
static Collection<Feature> |
listFeatures() List features. |
static Collection<Feature> |
listPrimaryFeatures() List primary features. |
static Collection<Feature> |
listRecordableFeatures() List the features that can be recorded by the desktop application. |
static Collection<Feature> |
stripFeatures(Collection<Feature> features, String[] ids) Remove features from a collection by feature identity. |
static Collection<Feature> |
stripPrimaryFeatures(Collection<Feature> features) Remove primary features from a collection of features. |
static Collection<Feature> |
stripRecordedFeatures(Collection<Feature> features) Remove recorded features from a collection of features. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Collection<Feature> listFeatures()
LicenseCriteria
. The code uses a utility method to show the object properties together with captions in the default locale.
import static oracle.irm.engine.core.feature.FeatureOperationsInstance.listFeatures; import static oracle.irm.engine.system.i18n.VisualizationInstance.displaySummary; import java.util.Collection; import java.util.Locale; import oracle.irm.engine.core.feature.Feature; import oracle.irm.engine.core.feature.UnknownFeatureException; public class ListFeatures { public static void main(String[] args) throws UnknownFeatureException { Locale locale = Locale.getDefault(); Collection<Feature> features = listFeatures(); for (Feature feature : features) { String summary = displaySummary(feature, locale); System.out.println(summary); System.out.println(""); } } }
public static Collection<Feature> listRecordableFeatures()
Record
public static Collection<Feature> listPrimaryFeatures()
isPrimaryFeature
public static Feature getFeature(String id) throws UnknownFeatureException
Id
.id
- the feature identity.UnknownFeatureException
- if the feature identity is unknown.public static Collection<Feature> getFeatures(String[] ids) throws UnknownFeatureException
Feature
objects.ids
- an array of feature identities.UnknownFeatureException
- if the feature identity is unknown.Id
public static boolean isPrimaryFeature(Feature feature)
feature
- the feature.public static boolean hasPrimaryFeature(Collection<Feature> features)
features
- a collection of features. This parameter is optional, it is valid to pass null or an empty collection.public static boolean hasRecordedFeature(Collection<Feature> features)
Record
property of a feature.features
- a collection of features. This parameter is optional, it is valid to pass null or an empty collection.public static Collection<Feature> stripFeatures(Collection<Feature> features, String[] ids)
features
- a collection of features to examine. This parameter is optional, it is valid to pass null or an empty collection.ids
- an array of feature identities.Id
public static Collection<Feature> addFeatures(Collection<Feature> features, String[] ids) throws UnknownFeatureException
features
- a collection of features. This parameter is optional, it is valid to pass null or an empty collection.ids
- an array of feature identities.UnknownFeatureException
- if the feature identity is unknown.Id
public static Collection<Feature> stripRecordedFeatures(Collection<Feature> features)
features
- a collection of features. This parameter is optional, it is valid to pass null or an empty collection.public static Collection<Feature> stripPrimaryFeatures(Collection<Feature> features)
features
- a collection of features. This parameter is optional, it is valid to pass null or an empty collection.public static Label getFeatureLabel(Locale locale, String id) throws UnknownFeatureException
locale
- the locale for the label.id
- the feature identity.UnknownFeatureException
- if the feature identity is unknown.public static Collection<Label> listFeatureLabels(Locale locale, String[] ids) throws UnknownFeatureException
locale
- the locale for the label.ids
- an array of feature identities.UnknownFeatureException
- if any one of the feature identities provided is unknown.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |