Class CmsToolMacroResolver

  • All Implemented Interfaces:
    I_CmsMacroResolver

    public class CmsToolMacroResolver
    extends java.lang.Object
    implements I_CmsMacroResolver
    Resolves special macros for the admin view.

    Supported macros are:

    • admin.userName|id
    • admin.groupName|id
    • admin.jobName|id
    • admin.projectName|id
    • admin.ouDescription|fqn
    • admin.ouType|fqn
    • admin.roleName|id

    Since:
    6.0.0
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMacroValue​(java.lang.String macro)
      Resolves a single macro to the macro value, returns null if the macro could not be resolved.
      boolean isKeepEmptyMacros()
      Returns true if macros that could not be resolved are kept "as is" in the input String, false if they are replaced by an empty String.
      java.lang.String resolveMacros​(java.lang.String input)
      Resolves the macros in the given input.
      static java.lang.String resolveMacros​(java.lang.String input, CmsWorkplace wp)
      Resolves the macros in the given input using the provided parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait