Class ContentUtil
java.lang.Object
com.aquima.interactions.portal.content.ContentUtil
Utility class used by
IContentManager
implementations.- Since:
- 9.7
- Author:
- Voicu Moldovan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAuthorized
(IUserData user, String[] requiredRoles) This method checks if the user allowed to access the content.
-
Constructor Details
-
ContentUtil
public ContentUtil()
-
-
Method Details
-
isAuthorized
This method checks if the user allowed to access the content.- Parameters:
user
- The user for which the access has to be granted, may not benull
.requiredRoles
- The list with the roles required for accessing the content, may not benull
.- Returns:
false
if user doesn't have any required role or the list of required roles is empty,true
if user has at least one require role.
-