Class CmsAllPrincipalDependenciesList.ElementGenerator

java.lang.Object
org.opencms.workplace.tools.accounts.CmsAllPrincipalDependenciesList.ElementGenerator
Enclosing class:
CmsAllPrincipalDependenciesList

Helper class for generating the list entries.
  • Constructor Details

    • ElementGenerator

      public ElementGenerator(org.opencms.file.CmsObject cms) throws org.opencms.main.CmsException
      Creates a new instance.

      Parameters:
      cms - the CMS context to use for file operations
      Throws:
      org.opencms.main.CmsException - if something goes wrong
  • Method Details

    • generateEntries

      public List<String[]> generateEntries() throws org.opencms.main.CmsException
      Generates the list entries.

      Returns:
      a list of string arrays of the form ( name, credential, permissions, path )
      Throws:
      org.opencms.main.CmsException - if something goes wrong
    • addDirectEntries

      protected void addDirectEntries(org.opencms.util.CmsUUID principalId, String name, Locale locale) throws org.opencms.main.CmsException
      Helper method to add the direct ACEs for a principal.

      Parameters:
      principalId - the principal id
      name - the principal name
      locale - the locale
      Throws:
      org.opencms.main.CmsException - if something goes wrong