Interface WebUser
- 
- All Superinterfaces:
- EnumWebPersistableState,- KeyedObject,- Persistable,- WebDisplayUnit,- WebFeatures,- WebObjectInfo,- WebPromptSite,- WebUserEntity
 
 public interface WebUser extends WebUserEntity The WebUser interface represents user-specific account information. The WebUser interface is obtained by casting theWebUserEntityinterface. This interface contains only those properties which apply to users. Any properties which apply to both users and groups are inherited from theWebUserEntityinterface.- Since:
- MicroStrategy Web 7.5.2
 
- 
- 
Field Summary- 
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableStateBARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateProfile()Create the profile folder for the particular user for the specified project Note that the profile folder will be created only when the user is saved.voiddeleteProfile()Delete the profile folder for the particular user for the specified project Note that the profile folder will be deleted only when the user is saved.WebSubscriptionUserAddressesgetAddresses()Returns aSimpleListcollection ofWebSubscriptionAddressobjects for the current user for all the delivery modes.WebSubscriptionContactsgetContacts()Returns aWebSubscriptionContactsinterface, which is a collection of contacts that is associated to the current user entity.java.lang.StringgetDefaultEmailAddress()Get the default email address of the user.java.lang.StringgetLoginName()Returns the login name of the user.WebNTLoginInfogetNTLoginInfo()Returns an interface which can be used to read and write NT-authentication-related information about the user.WebFoldergetProfile()Find the profile folder for the particular user.WebRDBMSLoginInfogetRDBMSLoginInfo()Returns an interface which can be used to read and write RDBMS-related information about the user.WebStandardLoginInfogetStandardLoginInfo()Returns an interface which can be used to read and write properties for the user relating to standard authentication.SimpleListgetSubscriptions(int deliveryMode)Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular user is subscribed to, for a specified delivery mode.SimpleListgetSubscriptions(int deliveryMode, int blockBegin, int blockCount)Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular user is subscribed to, for a specified delivery mode, from a specified begin block, up to a specified block count.SimpleListgetSubscriptions(WebSubscriptionsFilter filter, int blockBegin, int blockCount)Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular user is subscribed to, from a specified begin block, up to a specified block count.booleanisEnabled()Returns whether the user is enabled or not.voidsetEnabled(boolean isEnabled)Sets the user to be enabled/disabled.voidsetLoginName(java.lang.String lName)Sets the login name of the user.voidsetNewObjectID(java.lang.String newObjectID)set the id used to create a new user, the id would be used as the id of the user after saving in MD.- 
Methods inherited from interface com.microstrategy.utils.KeyedObject_getObKey
 - 
Methods inherited from interface com.microstrategy.utils.serialization.PersistablerestoreState, restoreState, saveState, saveState, saveState, saveState
 - 
Methods inherited from interface com.microstrategy.web.objects.WebDisplayUnitaddDetails, applyVisitor, canHighlight, getChildUnits, getDisplayName, getDisplayUnitType, hasDetails, highlightUnit, highlightUnit, isHighlighted, isObjectInfo, isSelected, setDisplayName, setSelected
 - 
Methods inherited from interface com.microstrategy.web.objects.WebFeaturesisFeatureAvailable, isFeatureAvailable
 - 
Methods inherited from interface com.microstrategy.web.objects.WebObjectInfobuildShortObjectAttributes, buildShortXML, getAbbreviation, getAccessGranted, getAncestors, getCardStatus, getCertifiedInfo, getComments, getContainerDid, getContainerType, getCreationTime, getCreationTimeStamp, getDataSources, getDescription, getExtendedType, getFactory, getFlags, getIconPath, getID, getModificationTime, getModificationTimeStamp, getName, getNonSchedulable, getOtherNameTransCount, getOwner, getParent, getPreSaveAsFlags, getProjectId, getProjectName, getPropertyFlags, getPropertySetFilter, getPropertySets, getRecommendationInfo, getSecurity, getState, getSubType, getType, getVersionID, getViewMediaSettings, getVisualizationViewMode, getXML, getXML, hasOwner, isAncestorNamedFolder, isDirty, isEmbedded, isHidden, isNew, isPopulated, populate, populate, setAbbreviation, setComments, setDataSources, setDescription, setExtendedType, setFlags, setHidden, setIconPath, setName, setNonSchedulable, setPreSaveAsFlags, setPropertyFlags
 - 
Methods inherited from interface com.microstrategy.web.objects.WebPromptSitegetPromptInstances
 - 
Methods inherited from interface com.microstrategy.web.objects.admin.users.WebUserEntitygetAccessibleProjects, getAllPrivileges, getAnalysisQuota, getAncestorGroups, getFullName, getLDAPLoginInfo, getLocalPrivileges, getParents, getSecurityFilters, getSecurityRoles, getSimpleSecurityPluginLoginInfo, getSourceType, hasInheritedSecurityRoles, isGroup, removeAnalysisQuota, setAnalysisQuota, setFullName
 
- 
 
- 
- 
- 
Method Detail- 
isEnabledboolean isEnabled() Returns whether the user is enabled or not.- Returns:
- True if the user is enabled, false otherwise.
 
 - 
setEnabledvoid setEnabled(boolean isEnabled) Sets the user to be enabled/disabled.- Parameters:
- isEnabled- This should be whether the user should be enabled or not.
 
 - 
getRDBMSLoginInfoWebRDBMSLoginInfo getRDBMSLoginInfo() Returns an interface which can be used to read and write RDBMS-related information about the user.- Returns:
- A WebRDBMSLoginInfoobject which can be used to read and write RDBMS-related information about the user.
 
 - 
getLoginNamejava.lang.String getLoginName() Returns the login name of the user.- Returns:
- The current login name of the user.
 
 - 
setLoginNamevoid setLoginName(java.lang.String lName) Sets the login name of the user.- Parameters:
- lName- The login name to use for the user.
 
 - 
getNTLoginInfoWebNTLoginInfo getNTLoginInfo() Returns an interface which can be used to read and write NT-authentication-related information about the user.- Returns:
- A WebNTLoginInfoobject which can be used to read and write NT-related authentication information about the user.
 
 - 
getStandardLoginInfoWebStandardLoginInfo getStandardLoginInfo() Returns an interface which can be used to read and write properties for the user relating to standard authentication.- Returns:
- A WebStandardLoginInfoobject which can be used to read and write standard authentication-related information about the user.
 
 - 
getContactsWebSubscriptionContacts getContacts() throws WebObjectsException Returns aWebSubscriptionContactsinterface, which is a collection of contacts that is associated to the current user entity.- Returns:
- A WebSubscriptionContactsobject
- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
getAddressesWebSubscriptionUserAddresses getAddresses() throws WebObjectsException Returns aSimpleListcollection ofWebSubscriptionAddressobjects for the current user for all the delivery modes. This collection is read-only.- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
getSubscriptionsSimpleList getSubscriptions(int deliveryMode) throws WebObjectsException Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular user is subscribed to, for a specified delivery mode.- Parameters:
- deliveryMode- , from- EnumDSSXMLSubscriptionDeliveryType
- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
getSubscriptionsSimpleList getSubscriptions(int deliveryMode, int blockBegin, int blockCount) throws WebObjectsException Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular user is subscribed to, for a specified delivery mode, from a specified begin block, up to a specified block count.- Parameters:
- deliveryMode- , from- EnumDSSXMLSubscriptionDeliveryType
- blockBegin- , the starting count of subscription, it is 0-based index which means set it N will return subscriptions from the (N+1)th subscription.
- blockCount- , block size for the incremental fetch of subscription. If set it 0, will return all subscriptions from the starting count
- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
getSubscriptionsSimpleList getSubscriptions(WebSubscriptionsFilter filter, int blockBegin, int blockCount) throws WebObjectsException Returns aSimpleListcollection ofWebSubscriptionobjects to which this particular user is subscribed to, from a specified begin block, up to a specified block count. These results will be filtered by the passed inWebSubscriptionsFilter- Parameters:
- filter-- WebSubscriptionsFilterto restrict the results of this call. A blank filter can be retrieved from- WebSubscriptionsSource.getNewSubscriptionsFilter()
- blockBegin- , the starting count of subscription, it is 0-based index which means set it N will return subscriptions from the (N+1)th subscription.
- blockCount- , block size for the incremental fetch of subscription. If set it 0, will return all subscriptions from the starting count
- Returns:
- SimpleListof- WebSubscriptionobjects
- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.1
 
 - 
createProfilevoid createProfile() throws WebObjectsExceptionCreate the profile folder for the particular user for the specified project Note that the profile folder will be created only when the user is saved. This operation requires a valid project session. The profile folder is created for the project to which the session is created.- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
deleteProfilevoid deleteProfile() throws WebObjectsExceptionDelete the profile folder for the particular user for the specified project Note that the profile folder will be deleted only when the user is saved. This operation requires a valid project session. The profile folder is deleted for the project to which the session is created.- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
getProfileWebFolder getProfile() throws WebObjectsException Find the profile folder for the particular user. This operation requires a valid project session. The profile folder is returned for the project to which the session is created. An error is thrown if there is no profile folder in the project for this user.- Returns:
- A WebFolderthat points to the profile folder for the user
- Throws:
- WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
 
 - 
setNewObjectIDvoid setNewObjectID(java.lang.String newObjectID) set the id used to create a new user, the id would be used as the id of the user after saving in MD. It can't be called from an existing user.- Parameters:
- newObjectID-
- Since:
- Cloud Pro
 
 - 
getDefaultEmailAddressjava.lang.String getDefaultEmailAddress() throws WebObjectsExceptionGet the default email address of the user. If the user is not generated from a quick search result, there will be a call made on the IServer to get the email address- Throws:
- WebObjectsException- if you are getting the result from quick search, you can ignore this exception as it can not happen
 
 
- 
 
-