Ontimize 5.2072EN

com.ontimize.locator
Class DelegationPermissionReferenceLocator

java.lang.Object
  extended bycom.ontimize.locator.ReferenceLocator
      extended bycom.ontimize.locator.PermissionReferenceLocator
          extended bycom.ontimize.locator.DelegationPermissionReferenceLocator
All Implemented Interfaces:
ClientPermissionManager, ClientReferenceLocator, EntityReferenceLocator, INoticeSendMails, INoticeSystem, com.ontimize.ols.LControl, com.ontimize.ols.LOk, java.rmi.Remote, RemoteApplicationPreferenceReferencer, RemotelyManageable, RemoteReportReferencer, java.rmi.server.RMIFailureHandler, ServerPermissionManager, TokenLogin, UserDelegatorAutentifier, UtilReferenceLocator, XMLClientProvider, XMLFormProvider

public class DelegationPermissionReferenceLocator
extends PermissionReferenceLocator
implements UserDelegatorAutentifier


Nested Class Summary
protected static class DelegationPermissionReferenceLocator.DelegationWindow
           
 
Nested classes inherited from class com.ontimize.locator.PermissionReferenceLocator
PermissionReferenceLocator.TimeThread
 
Nested classes inherited from class com.ontimize.locator.ReferenceLocator
ReferenceLocator.DefaultClientSocketFactory, ReferenceLocator.DefaultSSLClientSocketFactory
 
Nested classes inherited from class com.ontimize.locator.UtilReferenceLocator
UtilReferenceLocator.Message
 
Field Summary
protected  Entity authenticationEntity
           
protected  java.lang.String authenticationEntityName
           
protected  DelegationInfo currentDelegations
           
protected  java.lang.String delegateColumn
           
protected  DelegationEntity delegationEntity
           
protected  java.lang.String delegationEntityName
           
protected  java.lang.String delegationUserColumn
           
static java.lang.String M_ERROR_DELEGATION
           
protected  java.lang.String passwordColumn
           
protected  java.lang.String userColumn
           
 
Fields inherited from class com.ontimize.locator.PermissionReferenceLocator
BUSINESS_CALENDAR_FILE, businessCalendarFile, CLIENT_PERMISSION_COLUMN, clientPermissionsColumn, clientPermissionsInstalled, currentServerTime, DEFAULT_TIME_THREAD_SLEEP, ENTITIES, entityNames, PERMISSION_ENTITY, PERMISSION_GROUP_KEY_COLUMN, permissionGroupKeyColumnName, permissionsEntity, PROFILE_COLUMN, PROFILE_ENTITY, profileColumn, profileEntity, SERVER_PERMISSION_COLUMN, SERVER_SECURITY_MANAGER_CLASS, serverPermissionsColumn, serverSecurityManagerClass, updateHourServerThread, USER_GROUP_ENTITY, userGroupsEntityName
 
Fields inherited from class com.ontimize.locator.ReferenceLocator
askUserChangeTimezone, ATTACHMENT_ENTITY, ATTACHMENT_ENTITY_PATH, attachmentEntity, attachmentEntityInstance, attachmentPath, AUTONUMERICAL_PROPERTIES, b, chatCheckTime, chatWindow, CHECK_SERVER_MESSAGES_PERIOD, checkMessagesThread, CUSTOM_SOCKET, cw, databaseEntityManager, DB_PROPERTIES, DEBUG, defaultNoticeDestinyEntityClass, defaultNoticeEntityClass, defaultValueUseServerTimezone, ENCRYPT_PROPERTY, ENTITIES_CLASS, ENTITIES_PROPERTIES, entitiesProperties, entitiesPropertiesClass, formManagerProviderEntity, formManagerProviderEntityFormNameColumn, formManagerProviderEntityIdColumn, formManagerProviderEntityInteractionManagerColumn, formProviderEntity, formProviderEntityFormNameColumn, formProviderEntityFormXMLColumn, IMPOSSIBLE_CONNECT_TO_SERVER, initReferences, installSocketFactory, key, lastRemoteReferenceCheck, loadedEntities, LOCAL, LOCAL_ENTITIES, LOCAL_ENTITIES_PACKAGE, localEntities, localEntitiesPackage, localLocator, localRemoteReportStore, LOGIN_ENTITY, loginEntity, M_NOT_AUTHORIZED, manager, menuProviderEntity, menuProviderEntityXMLColumn, messagesCheckTime, MULTICONNECTION_MANAGER, multiConnectionManager, multiConnectionManagerPath, NEW_CHAT, NOTICE_ENTITY_DESTINY_NAME, NOTICE_ENTITY_NAME, noticeEntity, noticesPath, noticeSystem, offset, offsetString, PACKAGE_OR_HOSTNAME, packageA, port, PORT, printingTemplateEntityInstance, printingTemplatesEntity, privilegedId, propertiesPath, reconnectState, referenceLocatorServer, referenceLocatorServerName, REMOTE_OBJECT_NOT_REGISTERED, REMOTE_REFERENCE_LOCATOR_NAME, remoteReferenceCheckCycle, remoteReferenceClassNames, remoteReferenceInstances, remoteReferenceParameters, REPORT_ENTITIES, reportEntities, reportStore, rOperationManager, s, serverTimeZone, startSession, text, textAttribute, UNKNOWN_ERROR, UNKNOWN_HOST, user, userId, VIEWER, xmlDynamicMenu
 
Fields inherited from interface com.ontimize.security.ClientPermissionManager
PERMISSIONS_KEY
 
Fields inherited from interface com.ontimize.gui.ServerPermissionManager
ENTITY_LIST_KEY, USER_PERMISSIONS_KEY, USER_PROFILE_PERMISSIONS_KEY
 
Fields inherited from interface com.ontimize.gui.RemotelyManageable
ADMINISTRATION_PERMISSION, CONNECTION_INFO, IS_MULTICONNECTION, LOADED_ENTITIES, MULTICONNECTION_IDLIST, MULTICONNECTION_INFO
 
Fields inherited from interface com.ontimize.util.notice.INoticeSystem
INTERNAL_NOTICE_PERIOD, MAIL_CONF_PROPERTIES, NOTICE_CONTENT, NOTICE_CREATE_DATE, NOTICE_DELETE_RECEIVE_NOTICE, NOTICE_DELETE_SEND_NOTICE, NOTICE_DESTINY_KEY, NOTICE_ENTITY_DESTINY_TABLE_DB, NOTICE_ENTITY_TABLE_DB, NOTICE_FORCE_READ, NOTICE_FROM_PARAMETER, NOTICE_KEY, NOTICE_MAILTO_PARAMETER, NOTICE_MESSAGE_COLUMN_NAME, NOTICE_MESSAGE_TYPE_COLUMN_NAME, NOTICE_OTHER_COLUMNS, NOTICE_READ, NOTICE_READ_DATE, NOTICE_RESPONSE_REQUEST, NOTICE_SEND, NOTICE_SEND_DATE, NOTICE_SEND_MAIL, NOTICE_SUBJECT, NOTICE_SYSTEM, NOTICE_TO_PARAMETER, PROP_NOTICE_CLASS_MAIL, PROP_NOTICE_CONFIG_DEFAULT_TEMPLATE, PROP_NOTICE_CONFIG_MAIL, PROP_NOTICE_CONFIG_REQUEST_TEMPLATE, PROP_NOTICE_CONFIG_TEMPLATES, PROP_NOTICE_ENTITY_DESTINY_NAME, PROP_NOTICE_ENTITY_NAME, SEND_MAIL_PERIOD
 
Constructor Summary
DelegationPermissionReferenceLocator(java.util.Hashtable parameters)
           
DelegationPermissionReferenceLocator(java.util.Hashtable parameters, java.lang.String delegationsEntityName, java.lang.String authentificationEntityName)
           
 
Method Summary
protected  DelegationPermissionReferenceLocator.DelegationWindow createDelegationWindow(java.awt.Frame f, UserDelegationsInfo info)
           
protected  int createSession(java.lang.String user, ClientWatch cliente)
           
 void endSession(int sessionId)
          This method finishes a client session.
 java.lang.String getCurrentDelegation(java.lang.String user, int sessionId)
          It is enough with the sessionId.
 UserDelegationsInfo getDelegations(java.lang.String user, java.lang.String password)
           
 boolean hasDelegations(java.lang.String user, java.lang.String password)
           
protected  void initEntities()
           
 void installClientPermissions(java.util.Hashtable kv, int sessionId)
          Sets the client permissions.
 boolean isAuthentified(java.lang.String user, java.lang.String password)
           
 void setDelegateColumn(java.lang.String s)
           
 void setDelegationUserColumn(java.lang.String s)
           
 void setPasswordColumn(java.lang.String s)
           
 void setUserColumn(java.lang.String s)
           
protected  int startRemoteSession(java.lang.String user, java.lang.String password, ClientWatch cw)
           
 int startSession(java.lang.String user, java.lang.String password, java.lang.String asUser, ClientWatch cw)
           
 
Methods inherited from class com.ontimize.locator.PermissionReferenceLocator
checkActionPermission, getBussinesCalendarFile, getClientPermissionColumn, getClientPermissions, getContextParams, getEntityList, getParameters, getPermissionGroupsInfo, getPermissionInfo, getServerPermissions, getServerPermissions, getTime, getUserProfileServerPermissions, installServerPermissions, installServerSecurityManager, joinClientPermissions, joinServerPermissions, queryGroupPermission, retrieveInitialContext, setServerPermissions, setServerPermissions, setUserProfileServerPermissions, startSession, updateL
 
Methods inherited from class com.ontimize.locator.ReferenceLocator
checkNoticeAsSend, checkNoticeSent, checkToken, closeLockedConnections, closeSession, configureConnectionManager, configureMultiConnectionManager, configureRemoteReferences, createConnectionManager, createDatabaseEntityManager, createRemoteReference, ensureRemoteReferenceLocator, failure, finalize, finishAdministrationRemoteSession, getAttachmentEntity, getChatCheckTime, getConnectedSessionIds, getConnectedUsers, getConnectionManager, getDatabaseConnectionManager, getDEBUGValueRemote, getDefaultPackage, getEntityConnectionManager, getEntityReference, getFormManagerParameters, getInitialContext, getInternalNotices, getLastNCharactersFromLogFile, getLContent, getLInfoObject, getLoadedEntities, getLocalEntity, getLocalEntity, getLoginEntityName, getLValue, getMemoryEntity, getMessageCheckTime, getMessages, getNewMailNotice, getNodeValue, getNoticeEntity, getNoticeEntityDestinyName, getNoticeEntityName, getNoticeTypes, getPasswordFromCert, getPasswordFromCert, getPrintingTemplateEntity, getPrivateEntity, getRemoteApplicationPreferences, getRemoteOperationManager, getRemotePreferencesFile, getRemoteReference, getRemoteReportStore, getReportEntityNames, getSentNotices, getServerTimeZone, getSessionId, getSessionInfo, getSpecialEntity, getStartSessionTime, getSystemInfo, getToken, getUser, getUserFromCert, getUserFromCert, getUserId, getUserIds, getXMLForm, getXMLMenu, hasChat, initServerNotice, installClientRMIFailureHandler, installRMISocketFactory, isAllowCertificateLogin, isDevelopementL, isLocalMode, isMultiConnectionManager, loadEntity, ok, ok, ping, reloadXMLMenu, removeEntity, removeEntity, removeReceivedNotices, removeRemoteReferences, removeSentNotices, restartServer, selectTimeZone, sendMessage, sendMessage, sendMessageToAll, sendNotice, setDEBUGValueRemote, setLocalEntities, setMultiConnectionManager, setNoticesRead, setRemotePreferencesFile, setRemoteReportStore, showMessageDialog, startAdministrationRemoteSession, startCheckMessagesThread, startLocalSession, startUserPasswordSession, stopServer, testConnectionSpeed, testConnectionSpeed, updateRemoteReferenceLocator, waitServerForRestart
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

M_ERROR_DELEGATION

public static java.lang.String M_ERROR_DELEGATION

delegationEntityName

protected java.lang.String delegationEntityName

authenticationEntityName

protected java.lang.String authenticationEntityName

authenticationEntity

protected Entity authenticationEntity

delegationEntity

protected DelegationEntity delegationEntity

userColumn

protected java.lang.String userColumn

passwordColumn

protected java.lang.String passwordColumn

delegationUserColumn

protected java.lang.String delegationUserColumn

delegateColumn

protected java.lang.String delegateColumn

currentDelegations

protected DelegationInfo currentDelegations
Constructor Detail

DelegationPermissionReferenceLocator

public DelegationPermissionReferenceLocator(java.util.Hashtable parameters)
                                     throws java.lang.Exception

DelegationPermissionReferenceLocator

public DelegationPermissionReferenceLocator(java.util.Hashtable parameters,
                                            java.lang.String delegationsEntityName,
                                            java.lang.String authentificationEntityName)
                                     throws java.lang.Exception
Method Detail

initEntities

protected void initEntities()
                     throws java.lang.Exception
Throws:
java.lang.Exception

setUserColumn

public void setUserColumn(java.lang.String s)

setPasswordColumn

public void setPasswordColumn(java.lang.String s)

setDelegationUserColumn

public void setDelegationUserColumn(java.lang.String s)

setDelegateColumn

public void setDelegateColumn(java.lang.String s)

startRemoteSession

protected int startRemoteSession(java.lang.String user,
                                 java.lang.String password,
                                 ClientWatch cw)
                          throws java.lang.Exception
Overrides:
startRemoteSession in class ReferenceLocator
Throws:
java.lang.Exception

installClientPermissions

public void installClientPermissions(java.util.Hashtable kv,
                                     int sessionId)
                              throws java.lang.Exception
Description copied from interface: ClientPermissionManager
Sets the client permissions. Creates a ClientSecurityManager object with all permissions information for the specified user.

Specified by:
installClientPermissions in interface ClientPermissionManager
Overrides:
installClientPermissions in class PermissionReferenceLocator
Throws:
java.lang.Exception

startSession

public int startSession(java.lang.String user,
                        java.lang.String password,
                        java.lang.String asUser,
                        ClientWatch cw)
                 throws java.lang.Exception
Specified by:
startSession in interface UserDelegatorAutentifier
Throws:
java.lang.Exception

createSession

protected int createSession(java.lang.String user,
                            ClientWatch cliente)
                     throws java.lang.Exception
Throws:
java.lang.Exception

endSession

public void endSession(int sessionId)
                throws java.lang.Exception
Description copied from interface: EntityReferenceLocator
This method finishes a client session. When this method is called, the entity reference locator does not provide more entity references to this client identifier.

Specified by:
endSession in interface EntityReferenceLocator
Overrides:
endSession in class ReferenceLocator
Throws:
java.lang.Exception

getCurrentDelegation

public java.lang.String getCurrentDelegation(java.lang.String user,
                                             int sessionId)
                                      throws java.lang.Exception
It is enough with the sessionId. User can be null;

Specified by:
getCurrentDelegation in interface UserDelegatorAutentifier
Throws:
java.lang.Exception

isAuthentified

public boolean isAuthentified(java.lang.String user,
                              java.lang.String password)
                       throws java.lang.Exception
Specified by:
isAuthentified in interface UserDelegatorAutentifier
Throws:
java.lang.Exception

hasDelegations

public boolean hasDelegations(java.lang.String user,
                              java.lang.String password)
                       throws java.lang.Exception
Specified by:
hasDelegations in interface UserDelegatorAutentifier
Throws:
java.lang.Exception

getDelegations

public UserDelegationsInfo getDelegations(java.lang.String user,
                                          java.lang.String password)
                                   throws java.lang.Exception
Specified by:
getDelegations in interface UserDelegatorAutentifier
Throws:
java.lang.Exception

createDelegationWindow

protected DelegationPermissionReferenceLocator.DelegationWindow createDelegationWindow(java.awt.Frame f,
                                                                                       UserDelegationsInfo info)

Ontimize