com.microstrategy.web.objects.admin.licensing.LicenseSource |
The LicenseSource interface is the source interface for all license auditing-related functionality.
It contains methods to determine overall I-Server compliance, CPU compliance, named user compliance,
audit users, and retrieve full privilege lists for users sorted by license type.
This interface is obtained from the WebObjectsFactory
object, and uses the
WebIServerSession
object associated with that factory.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebLicenseDetails |
GetComplianceLevel(int category)
Checks compliance level and days of expiration for specified category.
| ||||||||||
abstract UserLicenseAudit |
auditUsers(WebUserEntity group)
Audits the given user groups.
| ||||||||||
abstract BatchLicenseAudit |
getBatchAudit(int auditID, int blockCount)
Returns the
BatchLicenseAudit object with the specified auditing handle ID. | ||||||||||
abstract BatchLicenseAudit |
getBatchAudit(int auditID, int blockCount, int auditorType)
Returns the
BatchLicenseAudit object with the specified auditing handle ID and auditor type. | ||||||||||
abstract CPULicenseDetails |
getCPUCompliance()
This method evaluates the CPU compliance status of the Intelligence Server
that the session is created on.
| ||||||||||
abstract NamedUserLicense[] |
getNamedUserCompliance()
Returns the current named user compliance of the Intelligence Server.
| ||||||||||
abstract int[] |
getPrivilegesForLicenseType(int type)
Returns the list of privileges which belong to the given license type.
| ||||||||||
abstract String |
getServerComplianceDetail(int category)
If the Intelligence Server is out of compliance, then this method will return
a string describing why it is out of compliance.
| ||||||||||
abstract WebPrivilegeCategories |
getUserCategorizedPrivileges(WebUserEntity user)
Returns a
WebPrivilegeCategories object, which contains all the privileges for
the given user and their sources, sorted by license type. | ||||||||||
abstract boolean |
isServerCompliant(int category)
Returns whether the Intelligence Server is out of compliance in any way.
| ||||||||||
abstract BatchLicenseAudit |
newBatchAudit(WebUserEntity group, int blockCount, int auditHandle)
Starts a new batch auditing operation, which can reuse a pre-existing auditor.
| ||||||||||
abstract BatchLicenseAudit |
newBatchAudit(WebUserEntity group, int blockCount)
Starts a new batch auditing operation.
| ||||||||||
abstract BatchLicenseAudit |
newBatchAudit(WebUserEntity group, int blockCount, int auditHandle, int auditorType)
Starts a new batch auditing operation, which can reuse a pre-existing auditor, and can also specify an auditor type from
EnumDSSXMLAuditorTypes . | ||||||||||
abstract void |
refreshCompliance()
Forces the Intelligence Server to refresh all compliance information that it has
gathered - it will recalculate all licenses used and compare them with the
existing licenses and update the internal data structures on the server with that information.
|
Checks compliance level and days of expiration for specified category. When there there is out of compliance for the specified
category, the returned WebLicenseDetails will record the out of compliance level and days information. NOTE that
the license type information in WebLicneseDetails is not applicable in this case. When there is no out of compliance
for the specified category, an null
object will be returned.
category | The category of compliance to check, from EnumDSSXMLLicenseComplianceCategory . |
---|
null
when there is no out of compliance. Otherwise, a WebLicenseDetails
returned for compliance
leve and days information.WebObjectsException | if there was an error in IServer while validating the licenses. |
---|
Audits the given user groups. The result of the audit will be returned as a
UserLicenseAudit
interface.
group | The group to audit. All users in this group will be audited. |
---|
UserLicenseAudit
interface, which can be used to examine the
result of the audit.WebObjectsException | Thrown if an error occurs. |
---|
Returns the BatchLicenseAudit
object with the specified auditing handle ID.
This is used when getting results of a currently processing audit.
auditID | a batch auditing handle ID. |
---|---|
blockCount | the number of users to be audited. |
BatchLicenseAudit
object with the specified auditing handle ID.WebObjectsException | thrown if an error occurs. |
---|
Returns the BatchLicenseAudit
object with the specified auditing handle ID and auditor type.
This is used when getting results of a currently processing audit.
auditID | a batch auditing handle ID. |
---|---|
blockCount | the number of users to be audited. |
auditorType | the auditor type from EnumDSSXMLAuditorTypes |
BatchLicenseAudit
object with the specified auditing handle ID.WebObjectsException | thrown if an error occurs. |
---|
This method evaluates the CPU compliance status of the Intelligence Server
that the session is created on. This call will return the CPULicenseDetails
interface, which will contain the details of the CPU compliance status.
CPULicenseDetails
interface containing the
information about CPU license compliance.WebObjectsException | Thrown if an error occurs. |
---|
Returns the current named user compliance of the Intelligence Server. This is
presented as a SimpleList
containing NamedUserLicense
objects.
NamedUserLicense
objects, which
can be used to determine the named user licensing of the server.WebObjectsException | Thrown if an error occurs. |
---|
Returns the list of privileges which belong to the given license type.
type | The license type to return the privileges for, from EnumDSSXMLLicenseType . |
---|
WebObjectsException | Thrown if an error occurs. |
---|
If the Intelligence Server is out of compliance, then this method will return a string describing why it is out of compliance.
category | The category of compliance to check, from EnumDSSXMLLicenseComplianceCategory . |
---|
WebObjectsException | Thrown if an error occurs. |
---|
Returns a WebPrivilegeCategories
object, which contains all the privileges for
the given user and their sources, sorted by license type.
user | The user object to get the full privilege list for. |
---|
WebObjectsException | Thrown if an error occurs. |
---|
Returns whether the Intelligence Server is out of compliance in any way. If this is true, then getServerComplianceDetail will not return a useful result; if it is false, then getServerComplianceDetail will contain a reason why the server is not in compliance.
category | The category of compliance to check, from EnumDSSXMLLicenseComplianceCategory . |
---|
WebObjectsException | Thrown if an error occurs. |
---|
Starts a new batch auditing operation, which can reuse a pre-existing auditor. This is an asynchronous operation.
group | the user or user group to be audited. |
---|---|
blockCount | the number of users to be audited. |
auditHandle | the int handle of an existing auditor |
BatchLicenseAudit
object containing the first auditing result and a new
auditing handle for further batch auditing as needed. WebObjectsException | thrown if an error occurs during auditing or if auditHandle refers to non-exisiting auditor |
---|
Starts a new batch auditing operation. This is an asynchronous operation.
group | the user or user group to be audited. |
---|---|
blockCount | the number of users to be audited. |
BatchLicenseAudit
object containing the first auditing result and a new
auditing handle for further batch auditing as needed. WebObjectsException | thrown if an error occurs during auditing. |
---|
Starts a new batch auditing operation, which can reuse a pre-existing auditor, and can also specify an auditor type from EnumDSSXMLAuditorTypes
. This is an asynchronous operation.
group | the user or user group to be audited. |
---|---|
blockCount | the number of users to be audited. |
auditHandle | the int handle of an existing auditor |
auditorType | the auditor type from EnumDSSXMLAuditorTypes } |
BatchLicenseAudit
object containing the first auditing result and a new
auditing handle for further batch auditing as needed. WebObjectsException | thrown if an error occurs during auditing or if auditHandle refers to non-exisiting auditor |
---|
Forces the Intelligence Server to refresh all compliance information that it has gathered - it will recalculate all licenses used and compare them with the existing licenses and update the internal data structures on the server with that information.
WebObjectsException | Thrown if an error occurs when requesting the refresh. |
---|