Oracle Application Server Wireless Java API Reference
B14043-01


oracle.wireless.me.server.tools.drm
Interface DRMPolicy


public interface DRMPolicy

DRMPolicy is an object to describe a Digital Rights Policy object in the DRM repository.


Method Summary
 java.lang.String getDescription()
          Get the description of the api restriction policy
 org.w3c.dom.Document getDigitalRightsDocument()
          Get the Digital Rights ODRL Document
 long getId()
          Get the Api restriction policy internal object id
 java.lang.String getName()
          Get the name of the api restriction policy
 java.util.Properties getPackagerClassInitProperties()
          Get the custom init property values for the packager class
 java.lang.String getPackagerClassName()
          Get the api restriction policy XML document in a string format
 java.lang.String[] getSupportedMimeTypes()
          Get the list of mime types this policy is meant for
 boolean isPolicyValid()
          Check if the Digital Rights policy is valid
 void setDescription(java.lang.String description)
          Set the policy description
 void setName(java.lang.String name)
          Set the name
 void setPackagerClassInitProperties(java.util.Properties prop)
          Set the custom initialization property values for the DRMPackager class
 void setPolicyValid(boolean isValid)
          Set the Digital Rights policy valid flag
 void setSupportedMimeTypes(java.lang.String[] mimeTypes)
          Set the list of mime types this policy is meant for

 

Method Detail

getDescription

public java.lang.String getDescription()
Get the description of the api restriction policy
Returns:
String the policy description

getDigitalRightsDocument

public org.w3c.dom.Document getDigitalRightsDocument()
Get the Digital Rights ODRL Document
Returns:
Document

getId

public long getId()
Get the Api restriction policy internal object id
Returns:
long the object id of the policy

getName

public java.lang.String getName()
Get the name of the api restriction policy
Returns:
String with the name of the policy

getPackagerClassInitProperties

public java.util.Properties getPackagerClassInitProperties()
Get the custom init property values for the packager class
Returns:
Properties

getPackagerClassName

public java.lang.String getPackagerClassName()
Get the api restriction policy XML document in a string format
Returns:
String the policy document

getSupportedMimeTypes

public java.lang.String[] getSupportedMimeTypes()
Get the list of mime types this policy is meant for
Returns:
String[]

isPolicyValid

public boolean isPolicyValid()
Check if the Digital Rights policy is valid
Returns:
boolean indicate the policy is valid or not

setDescription

public void setDescription(java.lang.String description)
Set the policy description
Parameters:
description - String the policy description

setName

public void setName(java.lang.String name)
Set the name
Parameters:
name - the name of the policy

setPackagerClassInitProperties

public void setPackagerClassInitProperties(java.util.Properties prop)
Set the custom initialization property values for the DRMPackager class
Parameters:
prop - Properties new values for the DRMPackager class init properties

setPolicyValid

public void setPolicyValid(boolean isValid)
Set the Digital Rights policy valid flag
Parameters:
isValid - boolean indicate the policy is valid or not

setSupportedMimeTypes

public void setSupportedMimeTypes(java.lang.String[] mimeTypes)
Set the list of mime types this policy is meant for

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.