org.mftech.dawn.server.communication.soap
Class DawnCommunicationService

java.lang.Object
  extended by org.mftech.dawn.server.communication.soap.DawnCommunicationService
All Implemented Interfaces:
DawnRemoteConnection

public class DawnCommunicationService
extends java.lang.Object
implements DawnRemoteConnection


Field Summary
 
Fields inherited from interface org.mftech.dawn.server.communication.DawnRemoteConnection
name
 
Constructor Summary
DawnCommunicationService()
           
 
Method Summary
 boolean canExecute(java.lang.String projectName, int userID, int operation)
           
 boolean changeObjects(java.lang.String restoreResource, java.lang.String projectName)
           
 int createProject(java.lang.String projectName, java.lang.String editorID, int UserID)
           
 int createUser(java.lang.String userName, java.lang.String password)
           
 boolean deleteObjects(java.lang.String restoreResource, java.lang.String projectName)
           
 java.util.Map<java.lang.String,java.lang.Integer> getLockedObjects(java.lang.String projectName)
           
 java.util.Set<java.lang.String> getMyProjectNames(int userID)
           
 java.util.Set<java.lang.String> getProjectNames()
           
 int getRoleInProject(java.lang.String projectName, int userId)
           
 int initResource(java.lang.String projectName, java.lang.String initXMLString)
           
 boolean isAlive()
           
 int lockObjects(int userId, java.lang.String projectName, java.util.Set<java.lang.String> toBeLockedObjects)
           
 void publish(java.lang.String notational, java.util.Set<java.lang.String> deleted, java.lang.String filename)
           
 boolean restoreObjects(java.lang.String restoreResource, java.lang.String projectName)
           
 int unlockObjects(int userId, java.lang.String projectName, java.util.Set<java.lang.String> toBeLockedObjects)
           
 java.lang.String update(java.lang.String projectName)
           
 int userLogin(java.lang.String userName, java.lang.String password)
           
 int userLogoff(java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DawnCommunicationService

public DawnCommunicationService()
Method Detail

update

public java.lang.String update(java.lang.String projectName)
                        throws java.rmi.RemoteException
Specified by:
update in interface DawnRemoteConnection
Throws:
java.rmi.RemoteException

restoreObjects

public boolean restoreObjects(java.lang.String restoreResource,
                              java.lang.String projectName)
Specified by:
restoreObjects in interface DawnRemoteConnection

changeObjects

public boolean changeObjects(java.lang.String restoreResource,
                             java.lang.String projectName)
Specified by:
changeObjects in interface DawnRemoteConnection

deleteObjects

public boolean deleteObjects(java.lang.String restoreResource,
                             java.lang.String projectName)
Specified by:
deleteObjects in interface DawnRemoteConnection

createProject

public int createProject(java.lang.String projectName,
                         java.lang.String editorID,
                         int UserID)
Specified by:
createProject in interface DawnRemoteConnection

isAlive

public boolean isAlive()
Specified by:
isAlive in interface DawnRemoteConnection

userLogin

public int userLogin(java.lang.String userName,
                     java.lang.String password)
Specified by:
userLogin in interface DawnRemoteConnection

userLogoff

public int userLogoff(java.lang.String userName)
Specified by:
userLogoff in interface DawnRemoteConnection

initResource

public int initResource(java.lang.String projectName,
                        java.lang.String initXMLString)
Specified by:
initResource in interface DawnRemoteConnection

getProjectNames

public java.util.Set<java.lang.String> getProjectNames()
Specified by:
getProjectNames in interface DawnRemoteConnection

lockObjects

public int lockObjects(int userId,
                       java.lang.String projectName,
                       java.util.Set<java.lang.String> toBeLockedObjects)
Specified by:
lockObjects in interface DawnRemoteConnection

unlockObjects

public int unlockObjects(int userId,
                         java.lang.String projectName,
                         java.util.Set<java.lang.String> toBeLockedObjects)
Specified by:
unlockObjects in interface DawnRemoteConnection

getLockedObjects

public java.util.Map<java.lang.String,java.lang.Integer> getLockedObjects(java.lang.String projectName)
Specified by:
getLockedObjects in interface DawnRemoteConnection

publish

public void publish(java.lang.String notational,
                    java.util.Set<java.lang.String> deleted,
                    java.lang.String filename)
Specified by:
publish in interface DawnRemoteConnection

createUser

public int createUser(java.lang.String userName,
                      java.lang.String password)
               throws java.rmi.RemoteException
Specified by:
createUser in interface DawnRemoteConnection
Throws:
java.rmi.RemoteException

getMyProjectNames

public java.util.Set<java.lang.String> getMyProjectNames(int userID)
                                                  throws java.rmi.RemoteException
Specified by:
getMyProjectNames in interface DawnRemoteConnection
Throws:
java.rmi.RemoteException

canExecute

public boolean canExecute(java.lang.String projectName,
                          int userID,
                          int operation)
Specified by:
canExecute in interface DawnRemoteConnection

getRoleInProject

public int getRoleInProject(java.lang.String projectName,
                            int userId)
Specified by:
getRoleInProject in interface DawnRemoteConnection