All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iceberg.mediamanager.MediaManagerService

java.lang.Object
   |
   +----ninja.rmi.NinjaRemoteObject
           |
           +----ninja.ispace.iSpaceService
                   |
                   +----iceberg.mediamanager.MediaManagerService

public class MediaManagerService
extends iSpaceService
implements MediaManagerServiceIF
Class which provides access to any mail protocol and allows mail content to be transformed via user request. For example, email may be transformed to audio, or voicemail may be transformed to text.


Constructor Index

 o MediaManagerService()
constructor

Method Index

 o concatList(Object[], Object[])
Get description of SDS service
 o destroy()
 o getFolders(String)
Get a list of mail folders owned by a user
 o getList(String, String, int)
Get a list of mail from a specified folder
 o getMessage(MediaRef)
Get a selected message
 o getMessageContent(ContentID, int)
Get a part within a selected message and return it in a particular format.
 o init(iSpaceServiceConfig)
Initialization: You can run SelfTest1() thru SelfTest5() by editing this method.
 o SelfTest1()
 o SelfTest2()
 o SelfTest3()
 o SelfTest4()
 o SelfTest5()

Constructors

 o MediaManagerService
 public MediaManagerService() throws IOException, RemoteException
constructor

Methods

 o init
 protected void init(iSpaceServiceConfig config)
Initialization: You can run SelfTest1() thru SelfTest5() by editing this method.

Overrides:
init in class iSpaceService
 o destroy
 protected void destroy()
Overrides:
destroy in class iSpaceService
 o concatList
 protected Object[] concatList(Object list1[],
                               Object list2[])
Get description of SDS service

Returns:
byte array description public byte [] getDescription() { if (myDescription == null) { String className = this.getClass().getName(); myDescription = new ServiceDescription("Media Manager","none", "insecure", className, "yes", null); } return myDescription.toByteArray(); }
 o getList
 public MediaMessage[] getList(String userName,
                               String folderName,
                               int count) throws RemoteException
Get a list of mail from a specified folder

Parameters:
String - username
String - foldername
int - max length of list
Returns:
array of type MediaMessage
 o getMessage
 public MediaMessage getMessage(MediaRef messageID) throws RemoteException
Get a selected message

Parameters:
MediaRef - reference the desired message
Returns:
MediaMessage message
 o getMessageContent
 public ContentObject getMessageContent(ContentID contentID,
                                        int returnType) throws RemoteException, IOException
Get a part within a selected message and return it in a particular format. For example, you may request the body of a message to be returned as audio. Return types are: PLAINTEXT PLAINAUDIO SKIMMEDAUDIO TRANSCRIPT OUTLINE TEXTSUMMARY AUDIOSUMMARY GSMAUDIO GSMSUMMARY

Parameters:
ContentID - references the part of a particular message, usually it's the body
int - return format
Returns:
ContentObject message part
 o getFolders
 public String[] getFolders(String userName) throws RemoteException
Get a list of mail folders owned by a user

Parameters:
String - user
Returns:
String list of mail folders
 o SelfTest1
 protected void SelfTest1()
 o SelfTest2
 protected void SelfTest2()
 o SelfTest3
 protected void SelfTest3()
 o SelfTest4
 protected void SelfTest4()
 o SelfTest5
 protected void SelfTest5()

All Packages  Class Hierarchy  This Package  Previous  Next  Index