Class UserProductFeatures
UserProductFeatures is used to define product features that are allowed or enabled for a user.- Since:
- 25.00.000.000
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UserProductClientTypeDefines the type of the client software the user is allowed to use.protected List<UserProductClientType> Read-only list of client types that are effective for the user or group.static final String -
Constructor Summary
ConstructorsConstructorDescriptionUserProductFeatures(int userClientType) UserProductFeatures(UserProductClientType userClientType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedClientType(int userClientType) voidaddAllowedClientType(UserProductClientType allowedClientType) voidaddAllowedClientType(Set<UserProductClientType> allowedClientTypes) voidsetAllowedClientType(UserProductClientType allowedClientType) Sets the value ofallowedClientTypevoidsetAllowedClientTypes(List<UserProductClientType> allowedClientTypes) Sets the list of effective client types for the user or group.
-
Field Details
-
USER_TYPE_KEY
- See Also:
-
allowedClientType
Defines the type of the client software the user is allowed to use.When writing the user data you can directly assign a
UserProductClientTypevalue to this property. This property must not benull. In case of uncertainty useUserProductClientType.DEFAULT. Accordingly, when reading the user data, this field will always be notnull.You can assign a non-default value to this property for users as well as groups with different effects. For users, a non default setting will directly consume a license according to the type. For groups, the setting does not consume a license but the setting will be handed down to the users of the group and therefore consumes a license for every user that is in this group. The procedure works recursively for subgroups. If a user is member of multiple groups with different client types, all of them will be counted. You can find the effective client types in the field
allowedClientTypes. -
allowedClientTypes
Read-only list of client types that are effective for the user or group.This list is calculated by the server and contains the inherited client types from all groups the user is member of. Additionally, this list contains the own client type of the user according to
allowedClientType. This list is always notnulland contains at least the value ofallowedClientType. The list does not contain duplicate values, the sort order is not defined.
-
-
Constructor Details
-
UserProductFeatures
public UserProductFeatures() -
UserProductFeatures
public UserProductFeatures(int userClientType) -
UserProductFeatures
-
-
Method Details
-
getAllowedClientType
- Returns:
- the value of
allowedClientType
-
setAllowedClientType
Sets the value ofallowedClientType- Parameters:
allowedClientType-UserProductClientTypevalue to set
-
getAllowedClientTypes
- Returns:
- the list of effective client types for the user or group.
- See Also:
-
setAllowedClientTypes
Sets the list of effective client types for the user or group. This method is intended to be used by the server. Setting this property on the client side does not have any effect on the server.- Parameters:
allowedClientTypes- list ofUserProductClientTypevalues to set.
-
addAllowedClientType
-
addAllowedClientType
-
addAllowedClientType
public void addAllowedClientType(int userClientType)
-