Ontimize 5.2072EN

com.ontimize.locator
Interface SecureEntityReferenceLocator

All Superinterfaces:
EntityReferenceLocator, java.rmi.Remote
All Known Implementing Classes:
SecureReferenceLocator

public interface SecureEntityReferenceLocator
extends EntityReferenceLocator

This interface extends to provide security


Field Summary
static java.lang.String ACCESS_DENIED
           
 
Method Summary
 Entity getEntityReference(java.lang.String entity, java.lang.String user, int sessionId)
          This method replaces to EntityReferenceLocator.getEntityReference(String) and gets entity references with security
 boolean hasSession(java.lang.String user, int id)
          Return true if the user 'user' with session identifier 'id' has a current session opened
 
Methods inherited from interface com.ontimize.locator.EntityReferenceLocator
endSession, getEntityReference, getSessionId, startSession
 

Field Detail

ACCESS_DENIED

public static final java.lang.String ACCESS_DENIED
See Also:
Constant Field Values
Method Detail

getEntityReference

public Entity getEntityReference(java.lang.String entity,
                                 java.lang.String user,
                                 int sessionId)
                          throws java.lang.Exception
This method replaces to EntityReferenceLocator.getEntityReference(String) and gets entity references with security

Parameters:
entity - Requested entity name
user - Name of the user who is asking for the reference
sessionId - Session identifier for the user who is asking the reference
Returns:
Entity, or null if this entity no exist or the user authentification is wrong
Throws:
java.lang.Exception

hasSession

public boolean hasSession(java.lang.String user,
                          int id)
                   throws java.lang.Exception
Return true if the user 'user' with session identifier 'id' has a current session opened

Parameters:
user -
id -
Returns:
Throws:
java.lang.Exception

Ontimize