public interface RemoteConfigurationAdvanced
extends java.rmi.Remote
RemoteConfigurationAdvanced
interface defines methods to configure advanced setting
of JReport Server via RMI, including user session timeout, view report timeout, etc.
This is an RMI-based interface, invocation on the method of this interface will bring an RMI call on the associated JReport Server.Modifier and Type | Method and Description |
---|---|
int |
getAccountLockDuration()
get the account lock duration(in minutes)
|
int |
getAdminPort()
Deprecated.
Since V8.1 replaced by
RemoteConfigurationService.getAdminPort() . |
int |
getAdvancedPasswordMinLength()
Get the password minimum length.
|
java.lang.String |
getAdvancedPasswordUserDefinedRuleClassName()
Get the advanced password user defined rule class name.
|
boolean |
getConnectionKeepAlive()
Gets to keep the http connection alive after it has connected to JReport Server.
|
boolean |
getEnableExposeMyFolders()
Gets setting that if administrator user can access other user's my folders (My Reports, My Components).
|
boolean |
getEnablePublishTempToVersion()
Gets whether to enable the "Publish to Version System" link when ondemand running a report.
|
boolean |
getEnableSecurityCheck()
Gets whether to enable security checking in a request.
|
java.lang.String |
getEngineDefaultLanguage()
Deprecated.
as of version 7, no replacement
|
int |
getEnginePriority()
Gets the CPU utilization priority for the engine.
|
java.lang.String |
getLinkedCatalog()
Gets the linked catalog defined on the server level.
|
int |
getMaxCompletedRecordCount()
Gets the maximum number of completed records that will be kept in the Completed table.
|
int |
getMaxLoginAttepmt()
get the maximum times of login attempt
|
int |
getMaxParameterValuesSize()
get the maximum size of parameter value list for bind column parameter
|
int |
getPermissionAlgorithmType()
Gets the server permission check algorithm.
|
long |
getReportResultLife()
Gets the time length for the temporary report result files to be kept in JReport Server temporary
folder after they have been generated.
|
boolean |
getScheduleShouldRun()
Deprecated.
obsolete method, no replacement
|
int |
getTaskDurationCheckPeriod()
Gets task duration check frequency in seconds.
|
int |
getUserSessionTimeout()
Gets user session timeout.
|
int |
getViewReportTimeout()
Gets the try-view time limit in seconds.
|
boolean |
isAdvancedPasswordContainsLowercase()
Check whether the password must contain at least one lower case letter.
|
boolean |
isAdvancedPasswordContainsNumber()
Check whether the password must contain at least one Number.
|
boolean |
isAdvancedPasswordContainsSymbols()
Check whether the password must contain at least one character that is not defined as letters , numerals and
spaces.
|
boolean |
isAdvancedPasswordContainsUppercase()
Check whether the password must contain at least one upper case letter.
|
boolean |
isAdvancedPasswordEnabled()
Check whether to support advanced password.
|
boolean |
isAdvancedPasswordLimitedMinLength()
Check whether the password length must greater than specified length.
|
boolean |
isAdvancedPasswordUserDefinedRule()
Check whether using user defined advanced password rule.
|
boolean |
isEnableDispalyGroupPermissionUI()
Indicates whether to display group permissions setting in the permission setting UI.
|
boolean |
isEnableDispalyRolePermissionUI()
Indicates whether to display role permissions setting in the permission setting UI.
|
boolean |
isEnableDispalyUserPermissionUI()
Indicates whether to display user permissions setting in the permission setting UI.
|
boolean |
isEnableDynamicResource()
Gets whether to enable getting server resources from their real disk paths.
|
boolean |
isEnableLinkedCatalog()
Gets whether to pre-define a linked catalog on the server level for the My Reports and
Public Reports folders to inherit.
|
boolean |
isEnableMultipleLogin()
Gets the multiple sessions created by one user, which can exist simultaneously.
|
boolean |
isEnableRoleBasedAuthorization()
Indicates whether to activate the role based security in replace of the default applied security
of setting permissions for users, groups and roles.
|
boolean |
isEnableTaskDuration()
Gets whether to enable setting a time duration for a task and checks if the task can finish running
in the duration.
|
boolean |
isPromptActionQueueFull()
Checks whether to prompt message when a user triggers an action on JReport Viewer which cannot be started immediately.
|
boolean |
isPromptTaskQueueFull()
Checks whether to prompt message when a user wants to run a report via web UI but the report task cannot be immediately started.
|
boolean |
isShowNameWithPostfix()
Gets whether to show the file name extensions for the catalog and report files
on JReport Console web UI.
|
boolean |
isShowNameWithPostfixForWebViewer()
Gets whether to show the file name extensions for the catalog and report files
on Web Viewer(Web Report Studio, Page Report Studio, JDashboard).
|
void |
loadProperties()
Loads JReport Server settings from <reporthome>/bin/server.properties.
|
void |
setAccountLockDuration(int minutes)
set the account lock duration(in minutes)
|
void |
setAdminPort(int adminPort)
Deprecated.
Since V8.1 replaced by
RemoteConfigurationService.setAdminPort(int adminPort) . |
void |
setAdvancedPasswordContainsLowercase(boolean containsLowercase)
Set whether the password must contain at least one lower case letter.
|
void |
setAdvancedPasswordContainsNumber(boolean containsNumber)
Set whether the password must contain at least one Number.
|
void |
setAdvancedPasswordContainsSymbols(boolean containsSymbols)
Set whether the password must contain at least one character that is not defined as letters , numerals and
spaces.
|
void |
setAdvancedPasswordContainsUppercase(boolean containsUppercase)
Set whether the password must contain at least one upper case letter.
|
void |
setAdvancedPasswordEnabled(boolean enabled)
Set whether to support advanced password.
|
void |
setAdvancedPasswordLimitedMinLength(boolean limitedMinLength)
Set whether the password length must greater than specified length.
|
void |
setAdvancedPasswordMinLength(int minLength)
Set the password minimum length.
|
void |
setAdvancedPasswordUserDefinedRule(boolean userDefinedRule)
Set whether using user defined advanced password rule.
|
void |
setAdvancedPasswordUserDefinedRuleClassName(java.lang.String className)
Set the advanced password user defined rule class name.
|
void |
setConnectionKeepAlive(boolean enableKeepAlive)
Sets to keep the http connection alive after it has connected to JReport Server.
|
void |
setEnableDisplayGroupPermissionUI(boolean enableDispaly)
Sets whether to display group permissions setting in the permission setting UI.
|
void |
setEnableDisplayRolePermissionUI(boolean enableDispaly)
Sets whether to display role permissions setting in the permission setting UI.
|
void |
setEnableDisplayUserPermissionUI(boolean enableDispaly)
Sets whether to display user permissions setting in the permission setting UI.
|
void |
setEnableDynamicResource(boolean enableDynamicResource)
Sets whether to enable getting server resources from their real disk paths.
|
void |
setEnableExposeMyFolders(boolean enableExpose)
Set if administrator user can access other user's my folders (My Reports, My Components).
|
void |
setEnableLinkedCatalog(boolean enableLinkedCatalog)
Sets whether to pre-define a linked catalog on the server level for the My Reports and
Public Reports folders to inherit.
|
void |
setEnableMultipleLogin(boolean enableMultipleLogin)
Sets that multiple sessions created by one user, which can exist simultaneously.
|
void |
setEnablePublishTempToVersion(boolean enablePublishTempToVersion)
Sets whether to enable the "Publish to Version System" link when ondemand running a report.
|
void |
setEnableRoleBasedAuthorization(boolean enableRoleBasedAuth)
Sets whether to activate the role based security in replace of the default applied security
of setting permissions for users, groups and roles.
|
void |
setEnableSecurityCheck(boolean enableSecurityCheck)
Sets whether to enable security checking in a request.
|
void |
setEnableTaskDuration(boolean enableTaskDuration)
Sets whether to enable setting a time duration for a task and checks if the task can finish running
in the duration.
|
void |
setEngineDefaultLanguage(java.lang.String useLanguage)
Deprecated.
as of version 7, no replacement
|
void |
setEnginePriority(int enginePriority)
Sets the CPU utilization priority for the engine.
|
void |
setLinkedCatalog(java.lang.String linkedCatalog)
Sets the linked catalog on the server level.
|
void |
setMaxCompletedRecordCount(int maxCompletedRecordCount)
Sets the maximum number of completed records that will be kept in the Completed table.
|
void |
setMaxLoginAttepmt(int times)
set the allow maximum login attempt
|
void |
setMaxParameterValuesSize(int size)
set the maximum size of parameter value list for bin column parameter
|
void |
setPermissionAlgorithmType(int algorithmType)
Sets the server permission check algorithm.
|
void |
setPromptActionQueueFull(boolean isSet)
Sets whether to prompt message when a user triggers an action on JReport Viewer which cannot be started immediately.
|
void |
setPromptTaskQueueFull(boolean isSet)
Sets whether to prompt message when a user wants to run a report via web UI but the report task cannot be immediately started.
|
void |
setReportResultLife(long rptResultLife)
Sets the time length for the temporary report result files to be kept in JReport Server temporary
folder after they have been generated.
|
void |
setScheduleShouldRun(boolean shouldRun)
Deprecated.
obsolete method, no replacement
|
void |
setShowNameWithPostfix(boolean isShowExtengsion)
Specifies whether to show the file name extensions for the catalogs and reports
on JReport Console & JReport Administration web UI.
|
void |
setShowNameWithPostfixForWebViewer(boolean isShowExtengsion)
Specifies whether to show the file name extensions for the catalogs and reports
on Web Viewer(Web Report Studio, Page Report Studio, JDashboard).
|
void |
setTaskDurationCheckPeriod(int checkPeriod)
Sets task duration check frequency in seconds.
|
void |
setUserSessionTimeout(int userSessionTimeout)
Sets user session timeout.
|
void |
setViewReportTimeout(int viewReportTimeout)
Sets the try-view time limit in seconds.
|
void setUserSessionTimeout(int userSessionTimeout) throws java.rmi.RemoteException
A user session will be created when a client logs in JReport Server via http. User session timeout is used to define an interval. If the client associated with a user session does not access JReport Server within the interval, this user session is expired.
This method works the same as modifying the value of
server.session.timeout
in <install_root>/bin/server.properties
.
userSessionTimeout
- user session timeout in seconds. The valid range is
0 to Integer.MAX_VALUE / 1000
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionUserSession
int getUserSessionTimeout() throws java.rmi.RemoteException
A user session will be created when a client logs in JReport Server via http. User session timeout is used to define an interval. If the client associated with a user session does not access JReport Server within the interval, this user session is expired.
Returned value is same as the value of
server.session.timeout
in file<install_root>/bin/server.properties
.
Integer.MAX_VALUE / 1000
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionUserSession
void setViewReportTimeout(int viewReportTimeout) throws java.rmi.RemoteException
This method works the same as modifying the value of
web.timeouts.reoprt_wait
in <install_root>/bin/server.properties
.
viewReportTimeout
- the try-view time limit in secondsjava.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getViewReportTimeout() throws java.rmi.RemoteException
Returned value is same as the value of
web.timeouts.report_wait
in file<install_root>/bin/server.properties
.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdminPort(int adminPort) throws java.rmi.RemoteException
RemoteConfigurationService.setAdminPort(int adminPort)
.This method works the same as modifying the value of
httpserver.admin.port
in <install_root>/bin/server.properties
.
adminPort
- the Administration Console port.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionRemoteConfigurationService.setAdminPort(int)
int getAdminPort() throws java.rmi.RemoteException
RemoteConfigurationService.getAdminPort()
.Returned value is same as the value of
httpserver.admin.port
in file<install_root>/bin/server.properties
.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionRemoteConfigurationService.getAdminPort(int)
void setReportResultLife(long rptResultLife) throws java.rmi.RemoteException
This method works the same as modifying the value of
resource.result.life
in <install_root>/bin/server.properties
.
rptResultLife
- the time length for keeping the temporary report result filesjava.rmi.RemoteException
- if communication-related error occurs during RMI call executionlong getReportResultLife() throws java.rmi.RemoteException
Returned value is same as the value of
resource.result.life
in file<install_root>/bin/server.properties
.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnginePriority(int enginePriority) throws java.rmi.RemoteException
It has 5 levels:
1 - Lowest Priority
2 - Low Priority
3 - Normal Priority
4 - High Priority
5 - Highest Priority
This method works the same as modifying the value of
engine.priority
in <install_root>/bin/server.properties
.
enginePriority
- the CPU utilization priority for the engine.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getEnginePriority() throws java.rmi.RemoteException
It has 5 levels:
1 - Lowest Priority
2 - Low Priority
3 - Normal Priority
4 - High Priority
5 - Highest Priority
Returned value is same as the value of
engine.priority
in file<install_root>/bin/server.properties
.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableSecurityCheck(boolean enableSecurityCheck) throws java.rmi.RemoteException
When it is set to false
, JReport Server will respond a request without any security
check, no user name required, no permission check, etc. Default value is true
.
This method works the same as modifying the value of
server.security
in <install_root>/bin/server.properties
in
non-cluster environment, and it will be stored in the system database in a cluster environment.
enableSecurityCheck
- whether to enable security checking, true
means to enable.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean getEnableSecurityCheck() throws java.rmi.RemoteException
When the returned value is false
, JReport Server will respond a request without any security
check, no user name required, no permission check, etc.
In non-cluster environment, the returned value is same as the value of
server.security
in file<install_root>/bin/server.properties
, and in a
cluster environment, it will be stored in the system database.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableExposeMyFolders(boolean enableExpose) throws java.rmi.RemoteException
This method will work the same as modifying the value of
server.security.expose_my_folders
in <install_root>/bin/server.properties
in
non-cluster environment, and it will be stored in the system database in a cluster environment.
enableExpose
- whether administrator user can access other user's my folders, true
means to enable.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean getEnableExposeMyFolders() throws java.rmi.RemoteException
In non-cluster environment, the returned value is same as the value of
server.security.expose_my_folders
in file<install_root>/bin/server.properties
, and in a
cluster environment, it will be stored in the system database.
true
if administrator user can access other user's my folders, otherwise return false
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnablePublishTempToVersion(boolean enablePublishTempToVersion) throws java.rmi.RemoteException
When it is set to true
, "Publish to Version System" link will be shown when ondemand
running a report (except running as dhtml/studio). after clicking this link, JReport Server
will add a result version into the resource system by using the result of the ondemand running.
This method works the same as modifying the value of
server.version.from.temp
in <install_root>/bin/server.properties
in
non-cluster environment, and it will be stored in the system database in a cluster environment.
enablePublishTempToVersion
- whether to enable publishing to version system when viewing a report.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean getEnablePublishTempToVersion() throws java.rmi.RemoteException
When it is true
, "Publish to Version System" link will be shown when ondemand
running a report (except running as dhtml/studio). After clicking this link, JReport Server
will add a result version into the resource system by using the result of the ondemand running.
In non-cluster environment, the returned value is same as the value of
server.version.from.temp
in file<install_root>/bin/server.properties
, and in a
cluster environment, it will be stored in the system database.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setConnectionKeepAlive(boolean enableKeepAlive) throws java.rmi.RemoteException
Setting it to false
will disconnect the connection once it has received the response.
This method works the same as modifying the value of
server.connection.keepalive
in <install_root>/bin/server.properties
.
enableKeepAlive
- true
if you want to keep the connection alive, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean getConnectionKeepAlive() throws java.rmi.RemoteException
If it is false
, JReport Server will disconnect the connection once it has received the response.
Returned value is same as the value of
server.connection.keepalive
in file<install_root>/bin/server.properties
.
false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setScheduleShouldRun(boolean shouldRun) throws java.rmi.RemoteException
shouldRun
- true
if it will run the schedule while starting up the server if the scheduled time has passed, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean getScheduleShouldRun() throws java.rmi.RemoteException
true
if it will run the schedule while starting up the server
if the scheduled time has passed, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEngineDefaultLanguage(java.lang.String useLanguage) throws java.rmi.RemoteException
useLanguage
- the language engine usesjava.rmi.RemoteException
- if communication-related error occurs during RMI call executionjava.lang.String getEngineDefaultLanguage() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid loadProperties() throws java.rmi.RemoteException
In a cluster environment, some settings are stored in the system database.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setMaxCompletedRecordCount(int maxCompletedRecordCount) throws java.rmi.RemoteException
Set the value to 0 if you do not want to limit the record count.
This method works the same as modifying the value of
server.completed.max_count
in <install_root>/bin/server.properties
in
non-cluster environment, and it will be stored in the system database in a cluster environment.
maxCompletedRecordCount
- the maximum number of completed recordsjava.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getMaxCompletedRecordCount() throws java.rmi.RemoteException
Returned value 0 means the record count is unlimited.
In non-cluster environment, the returned value is same as the value of
server.completed.max_count
in file<install_root>/bin/server.properties
, and in a
cluster environment, it will be stored in the system database.
Default value is 3000.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isEnableMultipleLogin() throws java.rmi.RemoteException
If the returned value is true
, a user can log onto JReport Server repeatedly
without having to terminate any of his/her former sessions until the number of sessions reaches the number
permitted by the license.
If the return value is false
, only the newly created session is active, and all the other former sessions
created by the same user will be terminated by JReport Server automatically.
Returned value is same as the value of
server.enableMultipleLogin
in file<install_root>/bin/server.properties
,
default value is true
true
means to enable creating multiple sessions by the same user simultaneously,
otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableMultipleLogin(boolean enableMultipleLogin) throws java.rmi.RemoteException
If the enableMultipleLogin
is true
, a user can log onto JReport Server repeatedly
without having to terminate any of his/her former sessions until the number of sessions reaches the number
permitted by the license.
If the value is false
, only the newly created session is active, and all the other former sessions
created by the same user will be terminated by JReport Server automatically.
This method works the same as modifying the value of
server.enableMultipleLogin
in <install_root>/bin/server.properties
.
enableMultipleLogin
- true
to enable creating multiple sessions by the same user simultaneously,
false
to disablejava.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isEnableDynamicResource() throws java.rmi.RemoteException
This setting only takes effect in non-cluster environment.
Returned value is same as the value of
server.enableDynamicResource
in file<install_root>/bin/server.properties
,
default value is false
(disable).
true
if getting server resources from real paths is enabled, otherwise return false
- Throws:
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution
- Since:
- version 7.1
void setEnableDynamicResource(boolean enableDynamicResource) throws java.rmi.RemoteException
This setting only takes effect in non-cluster environment.
This method works the same as modifying the value of
server.enableDynamicResource
in <install_root>/bin/server.properties
.
enableDynamicResource
- true
means to enable getting server resources from their
real disk paths, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableDisplayUserPermissionUI(boolean enableDispaly) throws java.rmi.RemoteException
Specifies whether to display user permissions in the permission setting UI for the server resource tree node and Version Properties, and the Scheduling to Version and Advanced Run dialogs.
This method works the same as modifying the value of
server.ui.set_permission.user
in <install_root>/bin/server.properties
.
enableDispaly
- true
to display user permission setting in UI, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableDisplayRolePermissionUI(boolean enableDispaly) throws java.rmi.RemoteException
Specifies whether to display role permissions in the permission setting UI for the server resource tree node and Version Properties, and the Scheduling to Version and Advanced Run dialogs.
This method works the same as modifying the value of
server.ui.set_permission.role
in <install_root>/bin/server.properties
.
enableDispaly
- true
to display role permission setting in UI, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableDisplayGroupPermissionUI(boolean enableDispaly) throws java.rmi.RemoteException
Specifies whether to display group permissions in the permission setting UI for the server resource tree node and Version Properties, and the Scheduling to Version and Advanced Run dialogs.
This method works the same as modifying the value of
server.ui.set_permission.group
in <install_root>/bin/server.properties
.
enableDispaly
- true
to display group permission setting in UI, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableRoleBasedAuthorization(boolean enableRoleBasedAuth) throws java.rmi.RemoteException
In the role based security, permissions are defined on roles only, and users and groups are mapped to roles. Only permissions defined on roles take effect when checking permission, and only permissions set to roles will apply when setting permission.
This method works the same as modifying the value of
server.rolebased.authorization
in <install_root>/bin/server.properties
.
enableRoleBasedAuth
- true
to activate role based security, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isEnableRoleBasedAuthorization() throws java.rmi.RemoteException
In the role based security, permissions are defined on roles only, and users and groups are mapped to roles. Only permissions defined on roles take effect when checking permission, and only permissions set to roles will apply when setting permission.
Returned value is same as the value of
server.rolebased.authorization
in file<install_root>/bin/server.properties
,
default value is false
(hide).
true
means to activate role based security, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isEnableDispalyUserPermissionUI() throws java.rmi.RemoteException
Indicates whether to display user permissions in the permission setting UI for the server resource tree node and Version Properties, and the Scheduling to Version and Advanced Run dialogs.
Returned value is same as the value of
server.ui.set_permission.user
in file<install_root>/bin/server.properties
,
default value is false
(hide).
true
means to display user permission setting in UI, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isEnableDispalyRolePermissionUI() throws java.rmi.RemoteException
Indicates whether to display role permissions in the permission setting UI for the server resource tree node and Version Properties, and the Scheduling to Version and Advanced Run dialogs.
Returned value is same as the value of
server.ui.set_permission.role
in file<install_root>/bin/server.properties
,
default value is true
(display).
true
means to display role permission setting in UI, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isEnableDispalyGroupPermissionUI() throws java.rmi.RemoteException
Indicates whether to display group permissions in the permission setting UI for the server resource tree node and Version Properties, and the Scheduling to Version and Advanced Run dialogs.
Returned value is same as the value of
server.ui.set_permission.group
in file<install_root>/bin/server.properties
,
default value is false
(hide).
true
means to display group permission setting in UI, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getPermissionAlgorithmType() throws java.rmi.RemoteException
There are two kinds of algorithm types:
Type 0
: The Permission Accumulation Algorithm: Like the algorithm name,
the permission algorithm will accumulate all permissions into the user permission
according to the user's inheritance relationship.
Type 1
: The User Permission Replacement Algorithm: Like the algorithm name,
when the administrator sets some permissions on a user, the user permissions will replace
the permissions calculated by inheritance relationship.
For example: There is a user named Sam and he is the member of the group DP.
The principal's permission settings: The user Sam - Schedule, The group DP - Visible, Read, Write
If using the permission algorithm type 0, the permissions calculated result is: Visible, Read, Write, Schedule
If using the permission algorithm type 1, the permissions calculated result is: Schedule.
Returned value is same as the value of
server.permission.algorithm
in file<install_root>/bin/server.properties
,
default value is 0
(The Permission Accumulation Algorithm).
0
: The Permission Accumulation Algorithm.
1
: The User Permission Replacement Algorithm
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setPermissionAlgorithmType(int algorithmType) throws java.rmi.RemoteException
There are two kinds of algorithm types:
Type 0
: The Permission Accumulation Algorithm: Like the algorithm name,
the permission algorithm will accumulate all permissions into the user permission
according to the user's inheritance relationship.
Type 1
: The User Permission Replacement Algorithm: Like the algorithm name,
when the administrator sets some permissions on a user, the user permissions will replace
the permissions calculated by inheritance relationship.
For example: There is a user named Sam and he is the member of the group DP.
The principal's permission settings: The user Sam - Schedule, The group DP - Visible, Read, Write
If using the permission algorithm type 0, the permissions calculated result is: Visible, Read, Write, Schedule
If using the permission algorithm type 1, the permissions calculated result is: Schedule.
This method works the same as modifying the value of
server.permission.algorithm
in <install_root>/bin/server.properties
.
algorithmType
- 0
: The Permission Accumulation Algorithm.
1
: The User Permission Replacement Algorithm
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isEnableTaskDuration() throws java.rmi.RemoteException
Specifies whether to enable setting a time duration for a task and asking JReport Server to cancel the task or to notify you or someone else of the task status via e-mail if the task has not yet finished running when the task duration is up.
If the value is set to true, the Duration tab will be available in the Advanced Run and Schedule dialogs on UI.
Returned value is same as the value of
task.duration.enable
in file<install_root>/bin/server.properties
,
default value is false
(disable task duration check).
true
if task duration check is enabled, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableTaskDuration(boolean enableTaskDuration) throws java.rmi.RemoteException
Specifies whether to enable setting a time duration for a task and asking JReport Server to cancel the task or to notify you or someone else of the task status via e-mail if the task has not yet finished running when the task duration is up.
If the value is set to true, the Duration tab will be available in the Advanced Run and Schedule dialogs on UI.
This method works the same as modifying the value of
task.duration.enable
in <install_root>/bin/server.properties
.
enableTaskDuration
- true
to enable task duration check, false
to disable it.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getTaskDurationCheckPeriod() throws java.rmi.RemoteException
By default, JReport Server checks task duration every 30 seconds.
Returned value is same as the value of
task.duration.check_cycle
in file<install_root>/bin/server.properties
,
default value is 30
.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setTaskDurationCheckPeriod(int checkPeriod) throws java.rmi.RemoteException
By default, JReport Server checks task duration every 30 seconds. Note that the value must be an integer greater than 0.
This method works the same as modifying the value of
task.duration.check_cycle
in <install_root>/bin/server.properties
.
checkPeriod
- the task duration check period, in seconds.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isEnableLinkedCatalog() throws java.rmi.RemoteException
If it is false
as default, the My Reports and the Public Reports folders
cannot inherit server level linked catalog.
Returned value is same as the value of
server.resource.enable_linked_catalog
in file<install_root>/bin/server.properties
,
default value is false
(disable server level linked catalog).
true
if linked catalog on the server level is enabled, otherwise return false
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setEnableLinkedCatalog(boolean enableLinkedCatalog) throws java.rmi.RemoteException
If it is set to false
, the My Reports and the Public Reports folders
cannot inherit server level linked catalog.
This method works the same as modifying the value of
task.duration.enable
in <install_root>/bin/server.properties
.
enableLinkedCatalog
- true
to enable linked catalog on the server level, otherwise false
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionjava.lang.String getLinkedCatalog() throws java.rmi.RemoteException
The server level linked catalog will be inherited by the My Reports and Public Reports folders, if
isEnableLinkedCatalog()
returns true
.
Returned value is same as the value of
server.resource.linked_catalog
in file<install_root>/bin/server.properties
.
null
if it is not set.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setLinkedCatalog(java.lang.String linkedCatalog) throws java.rmi.RemoteException
The server level linked catalog will be inherited by the My Reports and Public Reports folders, if
isEnableLinkedCatalog()
returns true
.
This method works the same as modifying the value of
server.resource.linked_catalog
in <install_root>/bin/server.properties
.
linkedCatalog
- the server level linked catalog.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isPromptTaskQueueFull() throws java.rmi.RemoteException
If a user triggered a report task (by directly clicking or using advance run), which cannot
be immediately started (because server running queue is 100% full or because the normal queue is full
or because the server accelerated queue still has room but such task is not qualified enough to be put into the server
accelerated queue), if this method returns true
, a message dialog will
pop up to ask the user if he wants to wait or cancel it and try it later.
Returned value is same as the value of
web.prompt.taskqueue_full
in file<install_root>/bin/server.properties
,
default value is true
(prompt message when the queue is full).
true
to prompt message, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setPromptTaskQueueFull(boolean isSet) throws java.rmi.RemoteException
If a user triggered a report task (by directly clicking or using advance run), which cannot
be immediately started (because the server running queue is 100% full or because the normal queue is full
or because the server accelerated queue still has room but such task is not qualified enough to be put into the server
accelerated queue), if this setting is true
, a message dialog will pop up to ask the user if
he wants to wait or cancel it and try it later
This method works the same as modifying the value of
web.prompt.taskqueue_full
in <install_root>/bin/server.properties
.
isSet
- true
to prompt message, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isPromptActionQueueFull() throws java.rmi.RemoteException
For JReport Viewer, there are two different scenarios, although both resulted action cannot be started immediately, but we should treat them differently.
One action cannot be started immediately because some other actions are running and the new action will be put into
JReport Viewer waiting queue. If this method return true
, a message box pops up and asks
the user if he wants to wait or cancel it and try it later.
The other action cannot be started immediately because JReport Viewer queue is totally full, and no more actions can
be put into it. If this method returns true
, a message box pops up, and simply tells user that there
is not room for more actions
Returned value is same as the value of
web.prompt.actionqueue_full
in file<install_root>/bin/server.properties
,
default value is true
(prompt message when the queue is full).
true
to prompt message, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setPromptActionQueueFull(boolean isSet) throws java.rmi.RemoteException
For JReport Viewer, there are two different scenarios, although both resulted action cannot be started immediately, but we should treat them differently.
One action cannot be started immediately because some other actions are running and the new action will be put into
JReport Viewer waiting queue. If this setting is true
, a message box pops up and asks
user if he wants to wait or cancel it and try it later.
The other action cannot be started immediately because JReport Viewer queue is totally full, and no more actions can
be put into it. If this setting is true
, a message box pops up, and simply tells user that there
is not room for more actions
This method works the same as modifying the value of
web.prompt.actionqueue_full
in <install_root>/bin/server.properties
.
isSet
- true
to prompt message, otherwise false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setShowNameWithPostfix(boolean isShowExtengsion) throws java.rmi.RemoteException
This method works the same as modifying the value of
web.page.option.show_name_with_postfix
in <install_root>/bin/server.properties
.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isShowNameWithPostfix() throws java.rmi.RemoteException
Returned value is same as the value of
web.page.option.show_name_with_postfix
in file<install_root>/bin/server.properties
,
default value is true
(show postfix).
true
if the file name extensions for
the catalogs and reports are shown, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setShowNameWithPostfixForWebViewer(boolean isShowExtengsion) throws java.rmi.RemoteException
This method works the same as modifying the value of
web.viewer.option.show_name_with_postfix
in <install_root>/bin/server.properties
.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isShowNameWithPostfixForWebViewer() throws java.rmi.RemoteException
Returned value is same as the value of
web.viewer.option.show_name_with_postfix
in file<install_root>/bin/server.properties
,
default value is true
(show postfix).
true
if the file name extensions for
the catalogs and reports are shown, otherwise return false
.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isAdvancedPasswordEnabled() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordEnabled(boolean enabled) throws java.rmi.RemoteException
enabled
- true means that support advanced password, otherwise don't support.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isAdvancedPasswordLimitedMinLength() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordLimitedMinLength(boolean limitedMinLength) throws java.rmi.RemoteException
limitedMinLength
- true means that the password length must greater than specified length.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getAdvancedPasswordMinLength() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordMinLength(int minLength) throws java.rmi.RemoteException
minLength
- the password minimum lengthjava.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isAdvancedPasswordContainsUppercase() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordContainsUppercase(boolean containsUppercase) throws java.rmi.RemoteException
containsUppercase
- true means that the password must contain at least one upper case letter.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isAdvancedPasswordContainsLowercase() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordContainsLowercase(boolean containsLowercase) throws java.rmi.RemoteException
containsLowercase
- true means that the password must contain at least one lower case letter.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isAdvancedPasswordContainsNumber() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordContainsNumber(boolean containsNumber) throws java.rmi.RemoteException
containsNumber
- true means that the password must contain at least one Number.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isAdvancedPasswordContainsSymbols() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordContainsSymbols(boolean containsSymbols) throws java.rmi.RemoteException
containsSymbols
- true means that the password must contain at least one character that is not defined as letters ,
numerals and spaces.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isAdvancedPasswordUserDefinedRule() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordUserDefinedRule(boolean userDefinedRule) throws java.rmi.RemoteException
userDefinedRule
- false means that using JReport Password Rule, true means that using User Defined Password Rule.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionjava.lang.String getAdvancedPasswordUserDefinedRuleClassName() throws java.rmi.RemoteException
AdvancedPasswordRule
.
The user will supply this implement JAVA class to validate the password.
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAdvancedPasswordUserDefinedRuleClassName(java.lang.String className) throws java.rmi.RemoteException
AdvancedPasswordRule
.
The user will supply the implement JAVA class to validate the password.
className
- the full class name.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getMaxParameterValuesSize() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setMaxParameterValuesSize(int size) throws java.rmi.RemoteException
size
- maximum size of parameter value listjava.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getMaxLoginAttepmt() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setMaxLoginAttepmt(int times) throws java.rmi.RemoteException
size
- maximum times of login attemptjava.rmi.RemoteException
- if communication-related error occurs during RMI call executionint getAccountLockDuration() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setAccountLockDuration(int minutes) throws java.rmi.RemoteException
the
- account lock duration(in minutes)java.rmi.RemoteException
- if communication-related error occurs during RMI call execution