Interface WebUserEntity
-
- All Superinterfaces:
EnumWebPersistableState
,KeyedObject
,Persistable
,WebDisplayUnit
,WebFeatures
,WebObjectInfo
,WebPromptSite
- All Known Subinterfaces:
WebUser
,WebUserGroup
public interface WebUserEntity extends WebObjectInfo, Persistable
The WebUserEntity interface represents a user or group object. This interface is derived fromWebObjectInfo
, because users are first class objects in metadata. The user object exposes additional properties in addition to theWebObjectInfo
interface's properties which can be used to modify the properties of the user. These properties can be changed by making the changes on this interface, then callingWebObjectSource
.save on the WebUserEntity object to save it to metadata.In order to create a new user or group, the getNewObject method on the
WebObjectSource
interface should be called. This will create a new WebUser object if the correct object type is passed to that method. For that method, the subtype must be passed to the getNewObject method to specify whether a user or group is being created. Once the new object is created, the properties of the object should be set. The minimal attributes that must be sent before saving the object are the login name and full name attributes - if these are not set, then the save will not succeed. In addition, any other properties can be set at that time. Once the WebUserEntity object's properties are set up, theWebObjectSource
.save method can be called, which will save the user or group in the appropriate folder, with an appropriate name. The save method with only the object as a parameter should be called - if the other overloaded methods are called, the correct folder must be specified manually.- Since:
- MicroStrategy Web 7.5.2
-
-
Field Summary
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebProject[]
getAccessibleProjects()
Returns an array of accessible projects for the current user entity.WebPrivileges
getAllPrivileges()
Returns the full list of privileges for the user entity within all projects.java.lang.String
getAnalysisQuota(WebProject project)
Get quota value for current user and specified project, return null indicate no analysis quota has been setWebUserGroup[]
getAncestorGroups()
Returns all parents, grandparents of this user/group.java.lang.String
getFullName()
Returns the full name of the user or group.WebLDAPLoginInfo
getLDAPLoginInfo()
Returns an interface which can be used to read and write LDAP-related information about the user entity.WebEditablePrivileges
getLocalPrivileges()
This method returns a read/write collection of privileges which are set directly on the user/group.WebUserList
getParents()
Returns an editable list ofWebUserEntity
objects which are considered to be parents of this user/group.WebUserSecurityFilters
getSecurityFilters()
Returns an editable list of security filter-project mappings for the current user account.WebUserSecurityRoles
getSecurityRoles()
Returns an editable list of security role-porject mappings for the current user account.WebSimpleSecurityPluginLoginInfo
getSimpleSecurityPluginLoginInfo()
java.util.List<EnumUserGroupSourceType>
getSourceType()
Return value determines, whether the relationship with user group with user is manually assign i.e created in MicroStrategy or imported from 3rd party repository such as from SAML or both.boolean
hasInheritedSecurityRoles(WebProject project)
Returnstrue
if for the given project any of the parent groups of the current user has a security role associated.boolean
isGroup()
Returns whether this WebUserEntity refers to a group.void
removeAnalysisQuota(WebProject project)
Remove existed quota link item for current user and specified project.void
setAnalysisQuota(int aq, WebProject project)
Set quota value for current user and specified project, it will create new analysis quota link item if current user, project has no quota be set.void
setFullName(java.lang.String fullName)
Sets the full name of the user or group.-
Methods inherited from interface com.microstrategy.utils.KeyedObject
_getObKey
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState, saveState, saveState, saveState, saveState
-
Methods inherited from interface com.microstrategy.web.objects.WebDisplayUnit
addDetails, applyVisitor, canHighlight, getChildUnits, getDisplayName, getDisplayUnitType, hasDetails, highlightUnit, highlightUnit, isHighlighted, isObjectInfo, isSelected, setDisplayName, setSelected
-
Methods inherited from interface com.microstrategy.web.objects.WebFeatures
isFeatureAvailable, isFeatureAvailable
-
Methods inherited from interface com.microstrategy.web.objects.WebObjectInfo
buildShortObjectAttributes, buildShortXML, getAbbreviation, getAccessGranted, getAncestors, getCardStatus, getCertifiedInfo, getComments, getContainerDid, getContainerType, getCreationTime, getCreationTimeStamp, getDataSources, getDefaultLanguage, getDescription, getExtendedType, getFactory, getFlags, getIconPath, getID, getModificationTime, getModificationTimeStamp, getName, getNonSchedulable, getOtherNameTransCount, getOwner, getParent, getPreSaveAsFlags, getProjectId, getProjectName, getPropertyFlags, getPropertySetFilter, getPropertySets, getRecommendationInfo, getSecurity, getState, getSubType, getTemplateInfo, getType, getVersionID, getViewMediaSettings, getVisualizationViewMode, getXML, getXML, hasOwner, isAncestorNamedFolder, isDirty, isEmbedded, isHidden, isNew, isPopulated, populate, populate, setAbbreviation, setComments, setDataSources, setDefaultLanguage, setDescription, setExtendedType, setFlags, setHidden, setIconPath, setName, setNonSchedulable, setPreSaveAsFlags, setPropertyFlags
-
Methods inherited from interface com.microstrategy.web.objects.WebPromptSite
getPromptInstances
-
-
-
-
Method Detail
-
getFullName
java.lang.String getFullName()
Returns the full name of the user or group.- Returns:
- The full name of the user or group.
-
setFullName
void setFullName(java.lang.String fullName)
Sets the full name of the user or group.- Parameters:
fullName
- The new full name to use for the user or group.
-
isGroup
boolean isGroup()
Returns whether this WebUserEntity refers to a group. Note that this can also be checked by looking at the subtype of the object. If this is true, then the WebUserEntity object can be cast into aWebUserGroup
object, otherwise, it can be cast into aWebUser
object.- Returns:
- True if the account refers to a group, false otherwise.
-
getParents
WebUserList getParents()
Returns an editable list ofWebUserEntity
objects which are considered to be parents of this user/group.- Returns:
- A
WebUserList
containing the parents of this user/group.
-
getAncestorGroups
WebUserGroup[] getAncestorGroups() throws WebObjectsException
Returns all parents, grandparents of this user/group.- Returns:
- An array of
WebUserGroup
, which contains all parents/grandparents of this user/group. - Throws:
WebObjectsException
- Thrown if an error occurs when retrieving data from the Intelligence Server.- Since:
- MicroStrategy Web 9.0.0
-
getLocalPrivileges
WebEditablePrivileges getLocalPrivileges()
This method returns a read/write collection of privileges which are set directly on the user/group.- Returns:
- A
WebEditablePrivileges
collection, representing a read/write list of privilege values.
-
getAllPrivileges
WebPrivileges getAllPrivileges() throws WebObjectsException
Returns the full list of privileges for the user entity within all projects. This list will include inherited privileges, and each privilege can be examined to determine its source.- Returns:
- A read-only
WebPrivileges
object, containing the full list of privileges for the user. - Throws:
WebObjectsException
- Thrown if an error occurs when retrieving data from the Intelligence Server.
-
getSecurityFilters
WebUserSecurityFilters getSecurityFilters() throws WebObjectsException
Returns an editable list of security filter-project mappings for the current user account.- Returns:
- A
WebUserSecurityFilters
collection containing the security filter-project mappings. - Throws:
WebObjectsException
- Thrown if an error occurs when retrieving data from the Intelligence Server.
-
getSecurityRoles
WebUserSecurityRoles getSecurityRoles() throws WebObjectsException
Returns an editable list of security role-porject mappings for the current user account.- Returns:
- A
WebUserSecurityRoles
collection containing the security role-project mappings. - Throws:
WebObjectsException
- Thrown if an error occurs when retrieving data from the Intelligence Server.
-
getAccessibleProjects
WebProject[] getAccessibleProjects() throws WebObjectsException
Returns an array of accessible projects for the current user entity. A project is accessible if the user has any roles, inherited or directly assigned, associated with the project.- Returns:
- An array of
WebProject
, which are accessible for current user. - Throws:
WebObjectsException
- Thrown if an error occurs when retrieving data from the Intelligence Server.
-
getLDAPLoginInfo
WebLDAPLoginInfo getLDAPLoginInfo()
Returns an interface which can be used to read and write LDAP-related information about the user entity.- Returns:
- A
WebLDAPLoginInfo
object which can be used to read and write LDAP-related information about the user entity.
-
getSimpleSecurityPluginLoginInfo
WebSimpleSecurityPluginLoginInfo getSimpleSecurityPluginLoginInfo()
- Since:
- MicroStrategy Web 9.0.0
-
hasInheritedSecurityRoles
boolean hasInheritedSecurityRoles(WebProject project) throws WebObjectsException
Returnstrue
if for the given project any of the parent groups of the current user has a security role associated.- Parameters:
project
-WebProject
object representing the project for which the security role should be checked- Returns:
- boolean stating whether the user inherits security roles
- Throws:
WebObjectsException
- Since:
- MicroStrategy Web 9.0.1
-
getAnalysisQuota
java.lang.String getAnalysisQuota(WebProject project) throws WebObjectsException
Get quota value for current user and specified project, return null indicate no analysis quota has been set- Parameters:
project
-WebProject
object used as the key to get the analysis quota- Returns:
- Throws:
WebObjectsException
-
setAnalysisQuota
void setAnalysisQuota(int aq, WebProject project) throws WebObjectsException
Set quota value for current user and specified project, it will create new analysis quota link item if current user, project has no quota be set.- Parameters:
project
-WebProject
object used as the key to set the analysis quota- Throws:
WebObjectsException
-
removeAnalysisQuota
void removeAnalysisQuota(WebProject project) throws WebObjectsException
Remove existed quota link item for current user and specified project.- Parameters:
project
-WebProject
object used as the key to remove the analysis quota- Throws:
WebObjectsException
-
getSourceType
java.util.List<EnumUserGroupSourceType> getSourceType()
Return value determines, whether the relationship with user group with user is manually assign i.e created in MicroStrategy or imported from 3rd party repository such as from SAML or both.
-
-