org.tentackle.appworx.rmi
Class SecurityRemoteDelegateImpl<T extends Security>

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.tentackle.db.rmi.RemoteDelegateImpl<T>
                  extended by org.tentackle.db.rmi.DbObjectRemoteDelegateImpl<T>
                      extended by org.tentackle.appworx.rmi.AppDbObjectRemoteDelegateImpl<T>
                          extended by org.tentackle.appworx.rmi.SecurityRemoteDelegateImpl<T>
All Implemented Interfaces:
Serializable, Remote, AppDbObjectRemoteDelegate, SecurityRemoteDelegate, DbObjectRemoteDelegate, RemoteDelegate

public class SecurityRemoteDelegateImpl<T extends Security>
extends AppDbObjectRemoteDelegateImpl<T>
implements SecurityRemoteDelegate

Implementation of the Security remote delegate.

Author:
harald
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.tentackle.appworx.rmi.AppDbObjectRemoteDelegate
AppDbObjectRemoteDelegate.BeingEditedToken
 
Field Summary
 
Fields inherited from class org.tentackle.db.rmi.DbObjectRemoteDelegateImpl
dbObject
 
Fields inherited from class org.tentackle.db.rmi.RemoteDelegateImpl
clazz, csf, db, port, session, ssf
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
SecurityRemoteDelegateImpl(RemoteDbSessionImpl session, Class<T> clazz)
          Creates a security delegate on the session socket.
 
Method Summary
 void assertRemoteSecurityManagerInitialized(ContextDb contextDb)
           
 int deleteByGrantee(long grantId)
           
 int deleteByObject(long objectId, String objectClass)
           
 int deleteObjectRulesByGrantClass(String grantClass)
           
 int deleteObjectRulesByGrantClassAndContext(String grantClass, long contextId, String contextClass)
           
 int deleteObjectRulesByObjectClass(String objectClass)
           
 int deleteObjectRulesByObjectClassAndContext(String objectClass, long contextId, String contextClass)
           
 List<Security> selectByGrantId(ContextDb contextDb, long grantId)
           
 TrackedArrayList<Security> selectByObject(ContextDb contextDb, long objectId, String objectClass)
           
 
Methods inherited from class org.tentackle.appworx.rmi.AppDbObjectRemoteDelegateImpl
deleteObject, deletePlain, dummyUpdate, getTreeChildObjects, getTreeChildObjects, getTreeParentObjects, getTreeParentObjects, insertObject, insertPlain, isReferenced, newObject, searchQbfCursor, select, selectAll, selectAllInContext, selectAllInContextCursor, selectAllInContextFromServerCache, selectByNormText, selectByNormTextCursor, selectLocked, setContextDb, setServerContextDb, transferEditedBy, updateEditedBy, updateEditedByOnly, updateObject, updatePlain, updateSerial, updateSerialAndTableSerial, updateTableSerial
 
Methods inherited from class org.tentackle.db.rmi.DbObjectRemoteDelegateImpl
getExpirationBacklog, getExpiredTableSerials, isReferenced, newObject, save, select, selectAllCursor, selectExpiredTableSerials, selectExpiredTableSerials, selectInValidContext, selectLocked, selectModification, selectSerial
 
Methods inherited from class org.tentackle.db.rmi.RemoteDelegateImpl
getClientSocketFactory, getPort, getServerSocketFactory, getSession
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.tentackle.appworx.rmi.AppDbObjectRemoteDelegate
getTreeChildObjects, getTreeChildObjects, getTreeParentObjects, getTreeParentObjects, isReferenced, searchQbfCursor, select, selectAll, selectAllInContext, selectAllInContextCursor, selectAllInContextFromServerCache, selectByNormText, selectByNormTextCursor, selectLocked, transferEditedBy, updateEditedBy, updateEditedByOnly
 
Methods inherited from interface org.tentackle.db.rmi.DbObjectRemoteDelegate
deleteObject, deletePlain, dummyUpdate, getExpirationBacklog, getExpiredTableSerials, insertObject, insertPlain, isReferenced, save, select, selectAllCursor, selectExpiredTableSerials, selectExpiredTableSerials, selectInValidContext, selectLocked, selectModification, selectSerial, updateObject, updatePlain, updateSerial, updateSerialAndTableSerial, updateTableSerial
 

Constructor Detail

SecurityRemoteDelegateImpl

public SecurityRemoteDelegateImpl(RemoteDbSessionImpl session,
                                  Class<T> clazz)
                           throws RemoteException
Creates a security delegate on the session socket.

Parameters:
session - the RMI session
clazz - the subclass of DbObject
Throws:
RemoteException
Method Detail

assertRemoteSecurityManagerInitialized

public void assertRemoteSecurityManagerInitialized(ContextDb contextDb)
                                            throws RemoteException
Specified by:
assertRemoteSecurityManagerInitialized in interface SecurityRemoteDelegate
Throws:
RemoteException

selectByGrantId

public List<Security> selectByGrantId(ContextDb contextDb,
                                      long grantId)
                               throws RemoteException
Specified by:
selectByGrantId in interface SecurityRemoteDelegate
Throws:
RemoteException

selectByObject

public TrackedArrayList<Security> selectByObject(ContextDb contextDb,
                                                 long objectId,
                                                 String objectClass)
                                          throws RemoteException
Specified by:
selectByObject in interface SecurityRemoteDelegate
Throws:
RemoteException

deleteByGrantee

public int deleteByGrantee(long grantId)
                    throws RemoteException
Specified by:
deleteByGrantee in interface SecurityRemoteDelegate
Throws:
RemoteException

deleteByObject

public int deleteByObject(long objectId,
                          String objectClass)
                   throws RemoteException
Specified by:
deleteByObject in interface SecurityRemoteDelegate
Throws:
RemoteException

deleteObjectRulesByObjectClass

public int deleteObjectRulesByObjectClass(String objectClass)
                                   throws RemoteException
Specified by:
deleteObjectRulesByObjectClass in interface SecurityRemoteDelegate
Throws:
RemoteException

deleteObjectRulesByObjectClassAndContext

public int deleteObjectRulesByObjectClassAndContext(String objectClass,
                                                    long contextId,
                                                    String contextClass)
                                             throws RemoteException
Specified by:
deleteObjectRulesByObjectClassAndContext in interface SecurityRemoteDelegate
Throws:
RemoteException

deleteObjectRulesByGrantClass

public int deleteObjectRulesByGrantClass(String grantClass)
                                  throws RemoteException
Specified by:
deleteObjectRulesByGrantClass in interface SecurityRemoteDelegate
Throws:
RemoteException

deleteObjectRulesByGrantClassAndContext

public int deleteObjectRulesByGrantClassAndContext(String grantClass,
                                                   long contextId,
                                                   String contextClass)
                                            throws RemoteException
Specified by:
deleteObjectRulesByGrantClassAndContext in interface SecurityRemoteDelegate
Throws:
RemoteException


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de