Class CmsAllPrincipalDependenciesList.ElementGenerator
- java.lang.Object
-
- org.opencms.workplace.tools.accounts.CmsAllPrincipalDependenciesList.ElementGenerator
-
- Enclosing class:
- CmsAllPrincipalDependenciesList
protected static class CmsAllPrincipalDependenciesList.ElementGenerator extends java.lang.Object
Helper class for generating the list entries.
-
-
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.
-
-
-
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 idname
- the principal namelocale
- the locale- Throws:
org.opencms.main.CmsException
- if something goes wrong
-
-