Class CmsAllPrincipalDependenciesList.ElementGenerator

    • Constructor Summary

      Constructors 
      Constructor Description
      ElementGenerator​(org.opencms.file.CmsObject cms)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addDirectEntries​(org.opencms.util.CmsUUID principalId, java.lang.String name, java.util.Locale locale)
      Helper method to add the direct ACEs for a principal.
      java.util.List<java.lang.String[]> generateEntries()
      Generates the list entries.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • generateEntries

        public java.util.List<java.lang.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,
                                        java.lang.String name,
                                        java.util.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