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
ACCESS_DENIED
public static final java.lang.String ACCESS_DENIED
- See Also:
- Constant Field Values
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 nameuser - Name of the user who is asking for the referencesessionId - 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