public class PermissionReferenceLocator extends ReferenceLocator implements ClientPermissionManager, ServerPermissionManager, LControl
| Modifier and Type | Class and Description |
|---|---|
protected class |
PermissionReferenceLocator.TimeThread |
ReferenceLocator.DefaultClientSocketFactory, ReferenceLocator.DefaultSSLClientSocketFactoryUtilReferenceLocator.Message| Modifier and Type | Field and Description |
|---|---|
static String |
BUSINESS_CALENDAR_FILE |
protected String |
businessCalendarFile |
static String |
CLIENT_PERMISSION_COLUMN |
protected String |
clientPermissionsColumn |
protected boolean |
clientPermissionsInstalled |
protected long |
currentServerTime |
protected static int |
DEFAULT_TIME_THREAD_SLEEP |
static String |
ENTITIES |
protected Vector |
entityNames |
static String |
PERMISSION_ENTITY |
static String |
PERMISSION_GROUP_KEY_COLUMN |
protected String |
permissionGroupKeyColumnName |
protected String |
permissionsEntity |
static String |
PROFILE_COLUMN |
static String |
PROFILE_ENTITY |
protected String |
profileColumn |
protected String |
profileEntity |
static String |
SERVER_PERMISSION_COLUMN |
static String |
SERVER_SECURITY_MANAGER_CLASS |
protected String |
serverPermissionsColumn |
protected String |
serverSecurityManagerClass |
protected PermissionReferenceLocator.TimeThread |
updateHourServerThread |
static String |
USER_GROUP_ENTITY |
protected String |
userGroupsEntityName |
askUserChangeTimezone, ATTACHMENT_ENTITY, ATTACHMENT_ENTITY_PATH, attachmentEntity, attachmentEntityInstance, attachmentPath, AUTONUMERICAL_PROPERTIES, b, chatCheckTime, chatWindow, CHECK_SERVER_MESSAGES_PERIOD, checkMessagesThread, checkRemoteAdministrationMessagesThread, CONTROL_ACCESS_ATTEMPTS, controlAccessAttempt, CUSTOM_SOCKET, cw, databaseEntityManager, DB_PROPERTIES, DEBUG, defaultNoticeDestinyEntityClass, defaultNoticeEntityClass, defaultValueUseServerTimezone, DYNAMIC_LOCAL_ENTITY_PREFIX, ENCRYPT_PROPERTY, ENTITIES_CLASS, ENTITIES_PROPERTIES, entitiesProperties, entitiesPropertiesClass, errorAccessControl, formManagerProviderEntity, formManagerProviderEntityFormNameColumn, formManagerProviderEntityIdColumn, formManagerProviderEntityInteractionManagerColumn, formProviderEntity, formProviderEntityFormNameColumn, formProviderEntityFormRuleColumn, formProviderEntityFormXMLColumn, imageProviderEntity, imageProviderEntityImageBytesColumn, imageProviderEntityImageNameColumn, IMPOSSIBLE_CONNECT_TO_SERVER, initReferences, installSocketFactory, key, lastRemoteReferenceCheck, loadedEntities, LOCAL, LOCAL_ENTITIES, LOCAL_ENTITIES_PACKAGE, LOCALE_ENTITY, LOCALE_SUFFIX, localeEntity, localEntities, localEntitiesPackage, localeSuffix, localLocator, localRemoteReportStore, LOGIN_ENTITY, loginEntity, M_NOT_AUTHORIZED, manager, menuProviderEntity, menuProviderEntityXMLColumn, messagesCheckTime, moduleLocalEntities, MULTICONNECTION_MANAGER, multiConnectionManager, multiConnectionManagerPath, NEW_CHAT, NOTICE_ENTITY_DESTINY_NAME, NOTICE_ENTITY_NAME, noticesPath, noticeSystem, NUMBER_ACCESS_ATTEMPTS, numberAccessAttemps, offset, offsetString, PACKAGE_OR_HOSTNAME, packageA, port, PORT, printingTemplateEntityInstance, printingTemplatesEntity, privilegedId, propertiesPath, reconnectState, REFERENCE_ELEMENT, referenceClassNames, referenceInstances, referenceLocatorServer, referenceLocatorServerName, referenceParameters, REFERENCES_ELEMENT, REMOTE_OBJECT_NOT_REGISTERED, REMOTE_REFERENCE_LOCATOR_NAME, remoteReferenceCheckCycle, remoteReferenceClassNames, remoteReferenceInstances, remoteReferenceParameters, REPORT_ENTITIES, reportEntities, reportStore, rOperationManager, s, serverTimeZone, sessionLocale, sessionLocaleId, SSO_PATH, startSession, text, textAttribute, toolbarProviderEntity, toolbarProviderEntityXMLColumn, UNKNOWN_ERROR, UNKNOWN_HOST, user, userId, VIEWER, xmlDynamicMenu, xmlDynamicToolbarPERMISSIONS_KEYENTITY_LIST_KEY, USER_PERMISSIONS_KEY, USER_PROFILE_PERMISSIONS_KEYADMINISTRATION_PERMISSION, CONNECTION_INFO, IS_MULTICONNECTION, LOADED_ENTITIES, MULTICONNECTION_IDLIST, MULTICONNECTION_INFOINTERNAL_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 and Description |
|---|
PermissionReferenceLocator(boolean local,
String entityPackageOrRMIServer,
String entityReferenceLocatorName,
int port,
URL dbPropertiesUrl,
URL autonumericalUrl) |
PermissionReferenceLocator(boolean local,
String entityPackageOrRMIServer,
String entityReferenceLocatorName,
int port,
URL dbPropertiesUrl,
URL autonumericalUrl,
String loginEntity) |
PermissionReferenceLocator(boolean local,
String entityPackageOrRMIServer,
String entityReferenceLocatorName,
int port,
URL dbPropertiesUrl,
URL autonumericalUrl,
String permissionEntity,
String clientPermissionColumn) |
PermissionReferenceLocator(boolean local,
String entityPackageOrRMIServer,
String entityReferenceLocatorName,
int port,
URL dbPropertiesUrl,
URL autonumericalUrl,
String loginEntity,
String permissionEntity,
String clientPermissionColumn) |
PermissionReferenceLocator(Hashtable params)
Calls to super() to initialize some parameters and additionally checks
permission and profile parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkActionPermission(String entity,
String action,
int sessionId,
long time)
Checks if the specified user has permissions to execute an action in the
specified entity
|
String |
getBussinesCalendarFile() |
String |
getClientPermissionColumn() |
EntityResult |
getClientPermissions(Hashtable userKeys,
int userId)
userKeys contains the value for user keys.
|
protected Hashtable |
getContextParams(String password) |
EntityResult |
getEntityList(int sessionId) |
Hashtable |
getParameters() |
PermissionGroupInfo[] |
getPermissionGroupsInfo() |
PermissionInfo |
getPermissionInfo(String entity,
String action,
int sessionId) |
protected StringBuffer |
getServerPermissions(Hashtable userKeys) |
EntityResult |
getServerPermissions(Hashtable userKeys,
int sessionId)
Get the user permissions
|
long |
getTime() |
EntityResult |
getUserProfileServerPermissions(Hashtable profileKeys,
int sessionId)
Get the permission definition for a specified profile
|
void |
installClientPermissions(Hashtable keys,
int sessionId)
Sets the client permissions.
|
protected void |
installServerPermissions(int sessionId,
StringBuffer permissions) |
protected void |
installServerSecurityManager() |
protected Hashtable |
joinClientPermissions(List permissions) |
protected Hashtable |
joinServerPermissions(List permissions) |
protected EntityResult |
queryGroupPermission(Hashtable userKeys,
String columnName) |
InitialContext |
retrieveInitialContext(int sessionId,
Hashtable params) |
EntityResult |
setServerPermissions(Hashtable keys,
int sessionId,
Hashtable permissions) |
EntityResult |
setServerPermissions(Hashtable keys,
int sessionId,
StringBuffer permissions)
Sets the server permissions value
|
EntityResult |
setUserProfileServerPermissions(Hashtable profileKeys,
StringBuffer permissions,
int sessionId) |
int |
startSession(String user,
String password,
ClientWatch cw)
Start a new client session in local or remote mode.
|
Hashtable |
updateL(Hashtable h) |
addModuleMemoryEntity, blockUserDB, changePassword, checkBlockUserDB, checkNoticeAsSend, checkNoticeSent, checkToken, closeLockedConnections, closeSession, configureConnectionManager, configureMultiConnectionManager, configureReference, configureReferences, configureRemoteReferences, createConnectionManager, createDatabaseEntityManager, createDynamicLocalEntity, createMemoryEntity, createReference, createRemoteReference, endSession, ensureRemoteReferenceLocator, failure, finalize, finishAdministrationRemoteSession, getAccessControl, getAttachmentEntity, getChatCheckTime, getConnectedSessionIds, getConnectedUsers, getConnectionManager, getDatabaseConnectionManager, getDEBUGValueRemote, getDefaultPackage, getEntityConnectionManager, getEntityReference, getErrorAccessControl, getFormManagerParameters, getImage, getInitialContext, getInternalNotices, getLastNCharactersFromLogFile, getLContent, getLInfoObject, getLoadedEntities, getLocale, getLocaleEntity, getLocaleId, getLocalEntity, getLocalEntity, getLoginEntityName, getLValue, getMemoryEntity, getMemoryEntity, getMessageCheckTime, getMessages, getNewMailNotice, getNodeValue, getNoticeEntity, getNoticeEntityDestinyName, getNoticeEntityName, getNoticeTypes, getPasswordFromCert, getPasswordFromCert, getPrintingTemplateEntity, getPrivateEntity, getReference, getRemoteAdministrationMessages, getRemoteApplicationPreferences, getRemoteLogManager, getRemoteOperationManager, getRemotePreferencesFile, getRemoteReference, getRemoteReportStore, getReportEntityNames, getSentNotices, getServerTimeZone, getSessionId, getSessionInfo, getSpecialEntity, getStartSessionTime, getSuffixString, getSystemInfo, getToken, getUser, getUserFromCert, getUserFromCert, getUserId, getUserIds, getXMLForm, getXMLMenu, getXMLRules, getXMLToolbar, hasChat, initServerNotice, installClientRMIFailureHandler, installRMISocketFactory, isAllowCertificateLogin, isDevelopementL, isDynamicLocalEntity, isLocalMode, isMultiConnectionManager, loadEntity, ok, ok, ping, reloadXMLMenu, reloadXMLToolbar, removeEntity, removeEntity, removeReceivedNotices, removeRemoteReferences, removeSentNotices, restartServer, selectTimeZone, sendMessage, sendMessage, sendMessageToAll, sendNotice, sendRemoteAdministrationMessages, setDEBUGValueRemote, setDefaultLocaleId, setLocale, setLocalEntities, setMultiConnectionManager, setNoticesRead, setRemotePreferencesFile, setRemoteReportStore, showMessageDialog, ssoLogin, startAdministrationRemoteSession, startCheckMessagesThread, startCheckRemoteAdministratorMessagesThread, startLocalSession, startRemoteSession, startUserPasswordSession, stopServer, supportChangePassword, testConnectionSpeed, testConnectionSpeed, updateRemoteReferenceLocator, waitServerForRestartpublic static final String ENTITIES
public static final String SERVER_SECURITY_MANAGER_CLASS
public static final String PROFILE_COLUMN
public static final String BUSINESS_CALENDAR_FILE
public static final String SERVER_PERMISSION_COLUMN
public static final String CLIENT_PERMISSION_COLUMN
public static final String PROFILE_ENTITY
public static final String PERMISSION_ENTITY
public static String PERMISSION_GROUP_KEY_COLUMN
public static String USER_GROUP_ENTITY
protected String serverSecurityManagerClass
protected String permissionsEntity
protected String profileEntity
protected String clientPermissionsColumn
protected String serverPermissionsColumn
protected String userGroupsEntityName
protected String permissionGroupKeyColumnName
protected Vector entityNames
protected String profileColumn
protected String businessCalendarFile
protected boolean clientPermissionsInstalled
protected long currentServerTime
protected static int DEFAULT_TIME_THREAD_SLEEP
protected PermissionReferenceLocator.TimeThread updateHourServerThread
public PermissionReferenceLocator(Hashtable params)
params - the Hashtable with parameters
| attribute | values | default | required | meaning |
| PermissionEntity | User | yes | Permission entity name |
|
| ProfileEntity | UserProfile | no | Profile entity name | |
| ProfileColumn | Profile | no | User profile column name. Usually this is a common column between user entity and profile entity. | |
| ClientPermissionColumn | ClientPermission | yes | Name of the column which stores the xml with client permission description | |
| ServerPermissionColumn | ServerPermission | yes | Name of the column which stores the xml with the server permission description | |
| Entities | entityname1;entityname2;...;entitynameN | no | Entity names separated by ';' . This names are used to ask for the references. Only informative value. | |
| BusinessCalendarFile | no | File name for the business calendar, the file format is the same as bundles, for example: com.ontimize.filename. |
public PermissionReferenceLocator(boolean local,
String entityPackageOrRMIServer,
String entityReferenceLocatorName,
int port,
URL dbPropertiesUrl,
URL autonumericalUrl,
String loginEntity,
String permissionEntity,
String clientPermissionColumn)
public PermissionReferenceLocator(boolean local,
String entityPackageOrRMIServer,
String entityReferenceLocatorName,
int port,
URL dbPropertiesUrl,
URL autonumericalUrl,
String permissionEntity,
String clientPermissionColumn)
public PermissionReferenceLocator(boolean local,
String entityPackageOrRMIServer,
String entityReferenceLocatorName,
int port,
URL dbPropertiesUrl,
URL autonumericalUrl,
String loginEntity)
public int startSession(String user, String password, ClientWatch cw) throws Exception
ReferenceLocatorEntity.query(Hashtable, Vector, int) method). If this query
return one record te session starts.startSession in interface EntityReferenceLocatorstartSession in class ReferenceLocatoruser - User namepassword - User passwordcw - Object to checks if this session is openExceptionprotected void installServerSecurityManager()
protected void installServerPermissions(int sessionId,
StringBuffer permissions)
throws Exception
Exceptionprotected EntityResult queryGroupPermission(Hashtable userKeys, String columnName) throws Exception
Exceptionpublic EntityResult getClientPermissions(Hashtable userKeys, int userId) throws Exception
getClientPermissions in interface ClientPermissionManageruserKeys - This parameters allow to identify the user. In local locator
is not needed and can be a null value.Exceptionpublic String getClientPermissionColumn()
public void installClientPermissions(Hashtable keys, int sessionId) throws Exception
ClientPermissionManagerClientSecurityManager
object with all permissions information for the specified user.installClientPermissions in interface ClientPermissionManagerkeys - Keys to identify the usersessionId - User session identifierExceptionpublic long getTime()
throws Exception
getTime in interface ClientPermissionManagerExceptionpublic EntityResult getEntityList(int sessionId) throws Exception
getEntityList in interface ServerPermissionManagerExceptionpublic EntityResult setServerPermissions(Hashtable keys, int sessionId, StringBuffer permissions) throws Exception
ServerPermissionManagersetServerPermissions in interface ServerPermissionManagerkeys - Keys to identify the usersessionId - User session identifierpermissions - XML value to describes the server permissionsExceptionpublic EntityResult setServerPermissions(Hashtable keys, int sessionId, Hashtable permissions) throws Exception
Exceptionprotected StringBuffer getServerPermissions(Hashtable userKeys)
protected Hashtable joinServerPermissions(List permissions) throws Exception
Exceptionprotected Hashtable joinClientPermissions(List permissions) throws Exception
Exceptionpublic EntityResult getServerPermissions(Hashtable userKeys, int sessionId) throws Exception
ServerPermissionManagergetServerPermissions in interface ServerPermissionManageruserKeys - Keys to identify the usersessionId - User session identifierExceptionpublic EntityResult setUserProfileServerPermissions(Hashtable profileKeys, StringBuffer permissions, int sessionId) throws Exception
setUserProfileServerPermissions in interface ServerPermissionManagerExceptionpublic EntityResult getUserProfileServerPermissions(Hashtable profileKeys, int sessionId) throws Exception
ServerPermissionManagergetUserProfileServerPermissions in interface ServerPermissionManagerprofileKeys - Keys to identify a profilesessionId - User session identifierExceptionpublic boolean checkActionPermission(String entity, String action, int sessionId, long time) throws Exception
ServerPermissionManagercheckActionPermission in interface ServerPermissionManagerentity - Entity nameaction - Action to checksessionId - User session identifierExceptionpublic PermissionGroupInfo[] getPermissionGroupsInfo() throws Exception
getPermissionGroupsInfo in interface ServerPermissionManagerExceptionpublic String getBussinesCalendarFile()
public PermissionInfo getPermissionInfo(String entity, String action, int sessionId) throws Exception
getPermissionInfo in interface ServerPermissionManagerExceptionpublic Hashtable getParameters() throws Exception
getParameters in interface LControlExceptionprotected Hashtable getContextParams(String password)
getContextParams in class ReferenceLocatorpublic InitialContext retrieveInitialContext(int sessionId, Hashtable params) throws Exception
retrieveInitialContext in interface UtilReferenceLocatorretrieveInitialContext in class ReferenceLocatorExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.