Ontimize 5.2072EN

com.ontimize.gui
Interface ServerPermissionManager

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
PermissionReferenceLocator, PermissionSecureReferenceLocator

public interface ServerPermissionManager
extends java.rmi.Remote


Field Summary
static java.lang.String ENTITY_LIST_KEY
           
static java.lang.String USER_PERMISSIONS_KEY
           
static java.lang.String USER_PROFILE_PERMISSIONS_KEY
           
 
Method Summary
 boolean checkActionPermission(java.lang.String entity, java.lang.String action, int sessionId, long time)
          Checks if the specified user has permissions to execute an action in the specified entity
 EntityResult getEntityList(int sessionId)
           
 PermissionGroupInfo[] getPermissionGroupsInfo()
           
 PermissionInfo getPermissionInfo(java.lang.String entity, java.lang.String action, int sessionId)
           
 EntityResult getServerPermissions(java.util.Hashtable userKeys, int sessionId)
          Get the user permissions
 EntityResult getUserProfileServerPermissions(java.util.Hashtable profileKeys, int sessionId)
          Get the permission definition for a specified profile
 EntityResult setServerPermissions(java.util.Hashtable keys, int sessionId, java.lang.StringBuffer permissionXML)
          Sets the server permissions value
 EntityResult setUserProfileServerPermissions(java.util.Hashtable profileKeys, java.lang.StringBuffer permissions, int sessionId)
           
 

Field Detail

ENTITY_LIST_KEY

public static final java.lang.String ENTITY_LIST_KEY
See Also:
Constant Field Values

USER_PROFILE_PERMISSIONS_KEY

public static final java.lang.String USER_PROFILE_PERMISSIONS_KEY
See Also:
Constant Field Values

USER_PERMISSIONS_KEY

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

setServerPermissions

public EntityResult setServerPermissions(java.util.Hashtable keys,
                                         int sessionId,
                                         java.lang.StringBuffer permissionXML)
                                  throws java.lang.Exception
Sets the server permissions value

Parameters:
keys - Keys to identify the user
sessionId - User session identifier
permissionXML - XML value to describes the server permissions
Returns:
Throws:
java.lang.Exception

getUserProfileServerPermissions

public EntityResult getUserProfileServerPermissions(java.util.Hashtable profileKeys,
                                                    int sessionId)
                                             throws java.lang.Exception
Get the permission definition for a specified profile

Parameters:
profileKeys - Keys to identify a profile
sessionId - User session identifier
Returns:
Throws:
java.lang.Exception

setUserProfileServerPermissions

public EntityResult setUserProfileServerPermissions(java.util.Hashtable profileKeys,
                                                    java.lang.StringBuffer permissions,
                                                    int sessionId)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

getServerPermissions

public EntityResult getServerPermissions(java.util.Hashtable userKeys,
                                         int sessionId)
                                  throws java.lang.Exception
Get the user permissions

Parameters:
userKeys - Keys to identify the user
sessionId - User session identifier
Returns:
Throws:
java.lang.Exception

getEntityList

public EntityResult getEntityList(int sessionId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

checkActionPermission

public boolean checkActionPermission(java.lang.String entity,
                                     java.lang.String action,
                                     int sessionId,
                                     long time)
                              throws java.lang.Exception
Checks if the specified user has permissions to execute an action in the specified entity

Parameters:
entity - Entity name
action - Action to check
sessionId - User session identifier
time -
Returns:
Throws:
java.lang.Exception

getPermissionInfo

public PermissionInfo getPermissionInfo(java.lang.String entity,
                                        java.lang.String action,
                                        int sessionId)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getPermissionGroupsInfo

public PermissionGroupInfo[] getPermissionGroupsInfo()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

Ontimize