|
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 | |||||||||
public interface FeatureOperations
Operations for obtaining and manipulating desktop features.
The methods on FeatureOperations can be invoked using FeatureOperationsInstance.
| Method Summary | |
|---|---|
Collection<Feature> |
addFeatures(Collection<Feature> features, String[] ids)Add features to a collection by feature identity. |
Feature |
getFeature(String id)Get a feature. |
Label |
getFeatureLabel(Locale locale, String id)Get a feature label. |
Collection<Feature> |
getFeatures(String[] ids)Get a set of features from an array of feature identities. |
boolean |
hasPrimaryFeature(Collection<Feature> features)Check a collection of features has at least one primary feature. |
boolean |
hasRecordedFeature(Collection<Feature> features)Check whether a collection of features includes recorded feature. |
boolean |
isPrimaryFeature(Feature feature)Check whether a feature is a primary feature. |
Collection<Label> |
listFeatureLabels(Locale locale, String[] ids)List feature labels. |
Collection<Feature> |
listFeatures()List features. |
Collection<Feature> |
listPrimaryFeatures()List primary features. |
Collection<Feature> |
listRecordableFeatures()List the features that can be recorded by the desktop application. |
Collection<Feature> |
stripFeatures(Collection<Feature> features, String[] ids)Remove features from a collection by feature identity. |
Collection<Feature> |
stripPrimaryFeatures(Collection<Feature> features)Remove primary features from a collection of features. |
Collection<Feature> |
stripRecordedFeatures(Collection<Feature> features)Remove recorded features from a collection of features. |
| Method Detail |
|---|
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("");
}
}
}
Collection<Feature> listRecordableFeatures()
RecordCollection<Feature> listPrimaryFeatures()
isPrimaryFeature
Feature getFeature(String id)
throws UnknownFeatureException
Id.id - the feature identity.UnknownFeatureException - if the feature identity is unknown.
Collection<Feature> getFeatures(String[] ids)
throws UnknownFeatureException
Feature objects.ids - an array of feature identities.UnknownFeatureException - if the feature identity is unknown.Idboolean isPrimaryFeature(Feature feature)
feature - the feature.boolean hasPrimaryFeature(Collection<Feature> features)
features - a collection of features. This parameter is optional, it is valid to pass null or an empty collection.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.
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
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.IdCollection<Feature> stripRecordedFeatures(Collection<Feature> features)
features - a collection of features. This parameter is optional, it is valid to pass null or an empty collection.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.
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.
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 | |||||||||