Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.6.2)
E26229-03


oracle.as.scheduler.request
Class ContentDetail

java.lang.Object
  extended by oracle.as.scheduler.request.ContentDetail

All Implemented Interfaces:
java.io.Serializable

public class ContentDetail
extends java.lang.Object
implements java.io.Serializable

Describes content in the ESS content store.

See Also:
Serialized Form

Constructor Summary
ContentDetail(long requestId, java.lang.String contentName, ContentType contentType, ContentCategory contentCategory, boolean isImported, long size)
          Creates a content detail.

 

Method Summary
static ContentDetail from(javax.management.openmbean.CompositeData cd)
          Create an instance of the model specific class out of an associated CompositeData instance
 ContentCategory getContentCategory()
          Returns the content category.
 java.lang.String getContentName()
          Returns the content name.
 ContentType getContentType()
          Returns the content type.
 long getRequestId()
          Returns the request id.
 long getSize()
          Returns the size of the content.
 boolean isImported()
          Returns true if the content was imported from a file, as opposed to created using the API.
 javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
          Convert an instance of this model specific type to a CompositeData.
static javax.management.openmbean.CompositeType toCompositeType()
          Returns the CompositeType that describes this model specific class
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ContentDetail

public ContentDetail(long requestId,
                     java.lang.String contentName,
                     ContentType contentType,
                     ContentCategory contentCategory,
                     boolean isImported,
                     long size)
Creates a content detail.
Parameters:
requestId - request id.
contentName - name of the content.
contentType - type of content.
contentCategory - content category.
isImported - true if the content was imported from a file.
size - character size for Text; byte size for Binary.

Method Detail

getRequestId

public long getRequestId()
Returns the request id.
Returns:
Request id.

getContentName

public java.lang.String getContentName()
Returns the content name.
Returns:
Content name.

getContentType

public ContentType getContentType()
Returns the content type.
Returns:
Content type.

getContentCategory

public ContentCategory getContentCategory()
Returns the content category.
Returns:
Content category.

isImported

public boolean isImported()
Returns true if the content was imported from a file, as opposed to created using the API.
Returns:
true if content was imported from a file.

getSize

public long getSize()
Returns the size of the content. For text content, the size is number of characters; for binary content, the size is number of bytes.
Returns:
Content size; -1 indicates the size is unknown.

toCompositeType

public static javax.management.openmbean.CompositeType toCompositeType()
Returns the CompositeType that describes this model specific class

toCompositeData

public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
Convert an instance of this model specific type to a CompositeData. This ensure that clients that do not have access to the model specific class can still use the MBean. The MXBean framework can perform this conversion automatically. However MXBeans are part of JDK 6.0 and AS11g is required to support JDK 5.0
Parameters:
ct - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.

from

public static ContentDetail from(javax.management.openmbean.CompositeData cd)
                          throws java.lang.IllegalArgumentException
Create an instance of the model specific class out of an associated CompositeData instance
Throws:
java.lang.IllegalArgumentException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.6.2)
E26229-03


Copyright © 2008, 2012 Oracle. All rights reserved.