public class PermissionSecureReferenceLocator extends SecureReferenceLocator implements ClientPermissionManager, ServerPermissionManager, RemoteLControl
SecureReferenceLocator.BMessage, SecureReferenceLocator.LogStream, SecureReferenceLocator.SMessage, SecureReferenceLocator.TWatchDog, SecureReferenceLocator.UpdateListThreadUtilReferenceLocator.Message| Modifier and Type | Field and Description |
|---|---|
protected String |
businessCalendarFile |
protected String |
clientPermissionsColumn |
protected String |
definitionPermissionsGroupsFile |
protected Vector |
entityNames |
protected String |
licensePermission |
protected Locale |
locale |
static String |
PERMISSION_GROUP_DEFINITION |
protected String |
permissionEntity |
protected String |
permissionGroupKeyColumnName |
protected String |
profileColumn |
protected String |
profileEntity |
protected String |
serverPermissionsColumn |
protected String |
serverSecurityManagerClass |
protected String |
userGroupsEntityName |
ADMIN_PASSWORD, ADMIN_USER, ALLOW_CERTIFICATE_LOGIN, allowSSOLogin, attachmentEntity, attachmentPath, baseLogFileName, buffWriterLog, CA_CERTIFICATES_PROP, CHECK_SESSIONS_TIME, checkSessionsTime, CLASS_ELEMENT, clientWatchUserList, CLOSE_WAIT_TIME, closedServer, compressionEnabled, compressionThresholds, CONTROL_ACCESS_ATTEMPTS, controlAccessAttempt, CRL_CERTIFICATES_PROP, currentUserList, DATABASE_PROPERTIES, databaseEntityManager, defaultNoticeDestinyEntityClass, defaultNoticeEntityClass, domain, DOMAIN, encrypt, entitiesClass, entitiesclasses_extends, errorAccessControl, fileLogExtension, fileWriterLog, FORM_MANAGER_PROVIDER_ENTITY, FORM_MANAGER_PROVIDER_ENTITY_FORM_NAME_COLUMN, FORM_MANAGER_PROVIDER_ENTITY_ID_COLUMN, FORM_MANAGER_PROVIDER_ENTITY_INTERACTION_MANAGER_COLUMN, FORM_PROVIDER_ENTITY, FORM_PROVIDER_ENTITY_FORMNAME_COLUMN, FORM_PROVIDER_ENTITY_FORMRULE_COLUMN, FORM_PROVIDER_ENTITY_FORMXML_COLUMN, formManagerProviderEntity, formManagerProviderEntityFormNameColumn, formManagerProviderEntityIdColumn, formManagerProviderEntityInteractionManagerColumn, formProviderEntity, formProviderEntityFormNameColumn, formProviderEntityFormRuleColumn, formProviderEntityFormXMLColumn, ID_CARD_COLUMN, idCardColumn, idHostList, IMAGE_PROVIDER_ENTITY, IMAGE_PROVIDER_ENTITY_IMAGEBYTES_COLUMN, IMAGE_PROVIDER_ENTITY_IMAGENAME_COLUMN, imageProviderEntity, imageProviderEntityImageBytesColumn, imageProviderEntityImageNameColumn, isZipLogFile, JAAS_CONFIG_FILE, jaasconfigfile, kdc, KDC, krealm, KREALM, lastSessionAccessTimeList, lcms, LDAP_HOST, LDAP_PORT, LDAP_SSL, LDAP_USERDN_KEY, ldaphost, ldapport, ldapSSL, loadedEntities, LOCALE_ENTITY, LOCALE_SUFFIX, localeEntity, localeSuffix, LOG_BUFFER_SIZE, LOG_FILE, logBuffer, logBufferSize, logFile, LOGIN_ENTITY, loginEntity, logSessionEvents, logStreamErr, logStreamOut, manager, MAX_INACTIVE_SESSION_TIME, MAX_LOG_FILE_SIZE, maximumLogFileSize, maximumSessionTime, maximumUsers, MAXUSERS, MENU_PROVIDER_ENTITY, MENU_PROVIDER_ENTITY_XML_COLUMN, menuProviderEntity, menuProviderEntityXMLColumn, messagesBuffer, MIN_COMPRESSION_THRESHOLD, MISSING_PARAMETER, MODULE_DISCOVERY, moduleManager, MODULES, MULTICONNECTION_MANAGER, multiConnectionManager, multiConnectionManagerPath, NAME_ELEMENT, NOTICE_ENTITY_DESTINY_NAME, NOTICE_ENTITY_NAME, noticesPath, noticeSystem, NUMBER_ACCESS_ATTEMPTS, numberAccessAttemps, oneSessionAllowed, PACKAGE, packageS, PARAM_ELEMENT, parserProperties, pathProperties, port, PREFERENCE_CLASS, PRINTING_TEMPLATE_ENTITY, printingTemplatesEntity, PRIVATE_REPORT_STORE, privilegedId, propertiesEntities, REFERENCE_ELEMENT, referenceClassNames, referenceInstances, referenceParameters, REFERENCES, REFERENCES_ELEMENT, REMOTE_OPERATION_MANAGER, REMOTE_PREFERENCES_CONFIGURATION_FILE, REMOTE_REFERENCE_ELEMENT, REMOTE_REFERENCES, REMOTE_REFERENCES_ELEMENT, remoteAdministrationMessagesBuffer, remoteLogManager, remoteReferenceClassNames, remoteReferenceInstances, remoteReferenceParameters, remoteStoreList, REPORT_STORE, REPORT_STORE_PATH, reportEntities, RESTART_COMMAND, rOperationManager, rPrefs, SEARCH_USER, SEARCH_USER_PASSWORD, SEARCH_USER_STRING, searchUser, searchUserPassword, searchUserString, sendMailThread, serverTimeZone, sessionLocale, sessionLocaleId, SSO_CONFIG_FILE, ssoconfigfile, ssoServer, startSessionTimeList, TEMPORARY_PASSWORDS_DURATION, temporaryUsersPasswords, temporaryUsersTimestamps, testRE, TOOLBAR_PROVIDER_ENTITY, TOOLBAR_PROVIDER_ENTITY_XML_COLUMN, toolbarProviderEntity, toolbarProviderEntityXMLColumn, updateListThread, USE_APPLICATION_USER, useApplicationUser, USER_DN_STRING, USER_DNS_STRING, userDNString, userIdList, userInfoListModel, VALUE_ELEMENT, watchDog, xmlDynamicMenu, xmlDynamicToolbar, ZIP_LOG_FILErefPERMISSIONS_KEYENTITY_LIST_KEY, USER_PERMISSIONS_KEY, USER_PROFILE_PERMISSIONS_KEYACCESS_DENIEDADMINISTRATION_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 |
|---|
PermissionSecureReferenceLocator(DatabaseConnectionManager dbManager,
String pe,
int p) |
PermissionSecureReferenceLocator(DatabaseConnectionManager dbManager,
String pe,
int p,
boolean su) |
PermissionSecureReferenceLocator(DatabaseConnectionManager dbManager,
String pe,
int p,
boolean su,
String loginEntity) |
PermissionSecureReferenceLocator(DatabaseConnectionManager dbManager,
String pe,
int p,
boolean su,
String loginEntity,
String permissionEntity,
String clientPermissionColumn,
String serverPermissionColumn,
Vector entityNames) |
PermissionSecureReferenceLocator(int port,
Hashtable parameters)
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
|
void |
endSession(int sessionId)
This method finishes a client session.
|
String |
getBussinesCalendarFile() |
EntityResult |
getClientPermissions(Hashtable userKeys,
int userId)
Gets an object representing client permissions.
|
String |
getClientPermissionsColumn() |
EntityResult |
getEntityList(int sessionId) |
Hashtable |
getParameters(int sessionId) |
PermissionGroupInfo[] |
getPermissionGroupsInfo() |
PermissionInfo |
getPermissionInfo(String entity,
String action,
int sessionId) |
String |
getProfileColumn() |
String |
getProfileEntity() |
protected StringBuffer |
getServerPermissions(Hashtable userKeys) |
EntityResult |
getServerPermissions(Hashtable userKeys,
int sessionId)
Get the user permissions
|
String |
getServerPermissionsColumn() |
long |
getTime() |
protected StringBuffer |
getUserProfileServerPermissions(Hashtable profileKeys) |
EntityResult |
getUserProfileServerPermissions(Hashtable profileKeys,
int sessionId)
Get the permission definition for a specified profile
|
void |
installClientPermissions(Hashtable userKeys,
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)
Method to start a client session.
|
protected String |
startTemporalAdminitrationSession(String user,
String password) |
Hashtable |
updateL(Hashtable h,
int sessionId) |
addRemoteReportStore, blockUserDB, changePassword, checkBlockUserDB, checkLogFileChange, checkNoticeAsSend, checkNoticeSent, checkTemporaryPassword, checkToken, closeLockedConnections, closeServer, closeServer, closeSession, closeSession, configureConnectionManager, configureModuleRemoteReferences, configureMultiConnectionManager, configureReference, configureReferences, configureRemoteReference, configureRemoteReferences, createConnectionManager, createConnectionManager, createDatabaseEntityManager, createEntity, createReference, createRemoteReference, endAdministrationSession, finishAdministrationRemoteSession, flushLogBuffer, forceFinishSession, foundModuleEntityClass, freeServerResources, generatePrivilegedId, getAccessControl, getAttachmentEntity, getCertificateFromText, getConfigurationParameters, getConnectedSessionIds, getConnectedUsers, getConnectionInfo, getConnectionManager, getDataCompressionThreshold, getDEBUGValueRemote, getDefaultPackage, getEntity, getEntity, getEntityReference, getEntityReference, getEntityReferenceFromServer, getErrorAccessControl, getFormManagerParameters, getImage, getInternalNotices, getLastNCharactersFromLogFile, getLContent, getLInfoObject, getLoadedEntities, getLoadedEntities, getLocale, getLocaleEntity, getLocaleId, getLogFile, getLoginEntityName, getLValue, getMessages, getNewMailNotice, getNextLogFileIndex, getNodeValue, getNoticeEntity, getNoticeEntityDestinyName, getNoticeEntityName, getNoticeTypes, getParameters, getPasswordFromCert, getPasswordFromCert, getPrintingTemplateEntity, getReference, getRemoteAdministrationMessages, getRemoteApplicationPreferences, getRemoteLogManager, getRemoteOperationManager, getRemotePreferencesFile, getRemoteReference, getRemoteReference, getRemoteReportStore, getReportEntityNames, getSentNotices, getSerial, getServerServiceName, getServerTimeZone, getSessionId, getSessionInfo, getSpecialEntity, getStartSessionTime, getSuffixString, getSystemInfo, getTemporaryPassword, getToken, getUser, getUserFromCert, getUserFromCert, getUserId, getUserIds, getUserInfoListModel, getXMLForm, getXMLMenu, getXMLRules, getXMLToolbar, hasSession, hasSession, isAllowCertificateLogin, isDevelopementL, isLDAPUser, isMultiConnectionManager, isValidCertificateText, loadEntity, localAuthenticate, ok, ok, ok, ping, reloadXMLMenu, reloadXMLToolbar, removeEntity, removeEntity, removeEntity, removeReceivedNotices, removeSentNotices, restartServer, returnMessage, sendMessage, sendMessage, sendMessageToAll, sendNotice, sendRemoteAdministrationMessages, setCompressionEnabled, setDataCompressionThreshold, setDEBUGValueRemote, setDefaultLocaleId, setLocale, setMultiConnectionManager, setNoticesRead, setRemotePreferencesFile, setSessionIdLastAccessTime, startAdministrationRemoteSession, startCertificateSession, startSessionInner, stopServer, supportChangePassword, testConnectionSpeed, updateL, updateListInfo, zipLogFileclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic static final String PERMISSION_GROUP_DEFINITION
protected String permissionEntity
protected String profileEntity
protected String clientPermissionsColumn
protected String serverPermissionsColumn
protected String userGroupsEntityName
protected String permissionGroupKeyColumnName
protected String profileColumn
protected Vector entityNames
protected String licensePermission
protected String serverSecurityManagerClass
protected String businessCalendarFile
protected Locale locale
protected String definitionPermissionsGroupsFile
public PermissionSecureReferenceLocator(int port,
Hashtable parameters)
throws Exception
port - the portparameters - 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 | |
| PermissionGroupDefinition | no | Name of the file for defines the permission groups. | ||
| ServerSecurityManagerClass | no | Complete name of the ServerSecurityManager class.
This class must extends ServerSecurityManager and must
have an empty constructor. |
||
| BusinessCalendarFile | no | File name for the business calendar, the file format is the same as bundles, for example: com.ontimize.filename. |
Exception - when Exception occurspublic PermissionSecureReferenceLocator(DatabaseConnectionManager dbManager, String pe, int p, boolean su, String loginEntity, String permissionEntity, String clientPermissionColumn, String serverPermissionColumn, Vector entityNames) throws Exception
Exceptionpublic PermissionSecureReferenceLocator(DatabaseConnectionManager dbManager, String pe, int p) throws Exception
Exceptionpublic PermissionSecureReferenceLocator(DatabaseConnectionManager dbManager, String pe, int p, boolean su) throws Exception
Exceptionpublic PermissionSecureReferenceLocator(DatabaseConnectionManager dbManager, String pe, int p, boolean su, String loginEntity) throws Exception
Exceptionpublic int startSession(String user, String password, ClientWatch cw) throws Exception
EntityReferenceLocatorstartSession in interface EntityReferenceLocatorstartSession in class SecureReferenceLocatoruser - User namepassword - User passwordcw - Object to checks if this session is openExceptionpublic EntityResult getClientPermissions(Hashtable userKeys, int userId) throws Exception
ClientPermissionManagergetClientPermissions in interface ClientPermissionManageruserKeys - This parameters allow to identify the user. In local locator
is not needed and can be a null value.Exceptionpublic void installClientPermissions(Hashtable userKeys, int sessionId) throws Exception
ClientPermissionManagerClientSecurityManager
object with all permissions information for the specified user.installClientPermissions in interface ClientPermissionManageruserKeys - Keys to identify the usersessionId - User session identifierExceptionpublic void endSession(int sessionId)
throws Exception
EntityReferenceLocatorendSession in interface EntityReferenceLocatorendSession in class SecureReferenceLocatorsessionId - Client session identifierExceptionpublic EntityResult getEntityList(int sessionId) throws Exception
getEntityList in interface ServerPermissionManagerExceptionpublic String getProfileColumn()
public String getProfileEntity()
public String getClientPermissionsColumn()
public String getServerPermissionsColumn()
protected EntityResult queryGroupPermission(Hashtable userKeys, String columnName) throws Exception
Exceptionpublic EntityResult setServerPermissions(Hashtable keys, int sessionId, Hashtable permissions) throws Exception
Exceptionpublic 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 getServerPermissions(Hashtable userKeys, int sessionId) throws Exception
ServerPermissionManagergetServerPermissions in interface ServerPermissionManageruserKeys - Keys to identify the usersessionId - User session identifierExceptionprotected StringBuffer getServerPermissions(Hashtable userKeys)
protected Hashtable joinServerPermissions(List permissions) throws Exception
Exceptionprotected Hashtable joinClientPermissions(List permissions) throws Exception
Exceptionprotected void installServerSecurityManager()
protected void installServerPermissions(int sessionId,
StringBuffer permissions)
throws Exception
Exceptionpublic EntityResult setUserProfileServerPermissions(Hashtable profileKeys, StringBuffer permissions, int sessionId)
setUserProfileServerPermissions in interface ServerPermissionManagerpublic EntityResult getUserProfileServerPermissions(Hashtable profileKeys, int sessionId) throws Exception
ServerPermissionManagergetUserProfileServerPermissions in interface ServerPermissionManagerprofileKeys - Keys to identify a profilesessionId - User session identifierExceptionprotected StringBuffer getUserProfileServerPermissions(Hashtable profileKeys)
public long getTime()
throws Exception
getTime in interface ClientPermissionManagerExceptionpublic 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(int sessionId) throws Exception
getParameters in interface RemoteLControlExceptionpublic Hashtable updateL(Hashtable h, int sessionId) throws Exception
updateL in interface RemoteLControlExceptionprotected String startTemporalAdminitrationSession(String user, String password) throws Exception
startTemporalAdminitrationSession in class SecureReferenceLocatorExceptionpublic InitialContext retrieveInitialContext(int sessionId, Hashtable params) throws Exception
retrieveInitialContext in interface UtilReferenceLocatorretrieveInitialContext in class SecureReferenceLocatorExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.