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.
-
MediaManagerService()
- constructor
-
concatList(Object[], Object[])
- Get description of SDS service
-
destroy()
-
-
getFolders(String)
- Get a list of mail folders owned by a user
-
getList(String, String, int)
- Get a list of mail from a specified folder
-
getMessage(MediaRef)
- Get a selected message
-
getMessageContent(ContentID, int)
- Get a part within a selected message and return it in
a particular format.
-
init(iSpaceServiceConfig)
- Initialization:
You can run SelfTest1() thru SelfTest5()
by editing this method.
-
SelfTest1()
-
-
SelfTest2()
-
-
SelfTest3()
-
-
SelfTest4()
-
-
SelfTest5()
-
MediaManagerService
public MediaManagerService() throws IOException, RemoteException
- constructor
init
protected void init(iSpaceServiceConfig config)
- Initialization:
You can run SelfTest1() thru SelfTest5()
by editing this method.
- Overrides:
- init in class iSpaceService
destroy
protected void destroy()
- Overrides:
- destroy in class iSpaceService
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();
}
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
getMessage
public MediaMessage getMessage(MediaRef messageID) throws RemoteException
- Get a selected message
- Parameters:
- MediaRef - reference the desired message
- Returns:
- MediaMessage message
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
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
SelfTest1
protected void SelfTest1()
SelfTest2
protected void SelfTest2()
SelfTest3
protected void SelfTest3()
SelfTest4
protected void SelfTest4()
SelfTest5
protected void SelfTest5()
All Packages Class Hierarchy This Package Previous Next Index