Class ContentUtil

java.lang.Object
com.aquima.interactions.portal.content.ContentUtil

public class ContentUtil extends Object
Utility class used by IContentManager implementations.
Since:
9.7
Author:
Voicu Moldovan
  • Constructor Details

    • ContentUtil

      public ContentUtil()
  • Method Details

    • isAuthorized

      public static boolean isAuthorized(IUserData user, String[] requiredRoles)
      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 be null.
      requiredRoles - The list with the roles required for accessing the content, may not be null.
      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.