org.mftech.dawn.server.communication
Interface DawnRemoteConnection

All Known Subinterfaces:
DawnOfflineRemoteConnection, DawnRemoteConnectionRMI
All Known Implementing Classes:
DawnCommunicationService, DawnOfflineRemoteConnectionImpl, DawnRemoteConnectionRMIImpl, DawnRemoteConnectionSOAP

public interface DawnRemoteConnection


Field Summary
static java.lang.String name
           
 
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)
           
 

Field Detail

name

static final java.lang.String name
Method Detail

publish

void publish(java.lang.String notational,
             java.util.Set<java.lang.String> deleted,
             java.lang.String filename)
             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

update

java.lang.String update(java.lang.String projectName)
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

restoreObjects

boolean restoreObjects(java.lang.String restoreResource,
                       java.lang.String projectName)
                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

changeObjects

boolean changeObjects(java.lang.String restoreResource,
                      java.lang.String projectName)
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

deleteObjects

boolean deleteObjects(java.lang.String restoreResource,
                      java.lang.String projectName)
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

createProject

int createProject(java.lang.String projectName,
                  java.lang.String editorID,
                  int UserID)
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

isAlive

boolean isAlive()
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

userLogin

int userLogin(java.lang.String userName,
              java.lang.String password)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

userLogoff

int userLogoff(java.lang.String userName)
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

initResource

int initResource(java.lang.String projectName,
                 java.lang.String initXMLString)
                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getProjectNames

java.util.Set<java.lang.String> getProjectNames()
                                                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

lockObjects

int lockObjects(int userId,
                java.lang.String projectName,
                java.util.Set<java.lang.String> toBeLockedObjects)
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

unlockObjects

int unlockObjects(int userId,
                  java.lang.String projectName,
                  java.util.Set<java.lang.String> toBeLockedObjects)
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getLockedObjects

java.util.Map<java.lang.String,java.lang.Integer> getLockedObjects(java.lang.String projectName)
                                                                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

createUser

int createUser(java.lang.String userName,
               java.lang.String password)
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getMyProjectNames

java.util.Set<java.lang.String> getMyProjectNames(int userID)
                                                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

canExecute

boolean canExecute(java.lang.String projectName,
                   int userID,
                   int operation)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getRoleInProject

int getRoleInProject(java.lang.String projectName,
                     int userId)
                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException