org.mftech.dawn.server.communication.rmi
Class DawnRemoteConnectionRMIImpl

java.lang.Object
  extended by org.mftech.dawn.server.communication.rmi.DawnRemoteConnectionRMIImpl
All Implemented Interfaces:
java.rmi.Remote, DawnRemoteConnection, DawnRemoteConnectionRMI

public class DawnRemoteConnectionRMIImpl
extends java.lang.Object
implements DawnRemoteConnectionRMI


Field Summary
 
Fields inherited from interface org.mftech.dawn.server.communication.rmi.DawnRemoteConnectionRMI
name
 
Constructor Summary
DawnRemoteConnectionRMIImpl()
          The contructor initalizes the list of projects
 
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)
           
 void start()
           
 int unlockObjects(int userId, java.lang.String projectName, java.util.Set<java.lang.String> toBeLockedObjects)
           
 java.lang.String update(java.lang.String projectName)
          This method sets the content of one User and merges the changes to the global Registry of the Project
 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

DawnRemoteConnectionRMIImpl

public DawnRemoteConnectionRMIImpl()
                            throws java.rmi.RemoteException
The contructor initalizes the list of projects

Throws:
java.rmi.RemoteException
Method Detail

start

public void start()
           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

update

public java.lang.String update(java.lang.String projectName)
                        throws java.rmi.RemoteException
This method sets the content of one User and merges the changes to the global Registry of the Project

Specified by:
update in interface DawnRemoteConnection
Throws:
java.rmi.RemoteException

restoreObjects

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

changeObjects

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

deleteObjects

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

createProject

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

isAlive

public boolean isAlive()
                throws java.rmi.RemoteException
Specified by:
isAlive in interface DawnRemoteConnection
Throws:
java.rmi.RemoteException

userLogin

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

userLogoff

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

initResource

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

getProjectNames

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

lockObjects

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

unlockObjects

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

getLockedObjects

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

publish

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

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