All Implemented Interfaces:
GomCheckable, GomElement, GomFormElement, GomHideable, GomLangInfoProvider, GomSearchRelevancy, LineBreakable, Serializable

@NonExtendable public class GomPermission extends AbstractGomFormElement
GOM element implementation for permission definitions.
Since:
3.1
See Also:
  • Field Details

  • Constructor Details

    • GomPermission

      public GomPermission()
  • Method Details

    • getDefaultTag

      protected String getDefaultTag()
      Description copied from class: AbstractGomElement
      Return the default tag for a gom element.
      Specified by:
      getDefaultTag in class AbstractGomElement
      Returns:
      The elements default tag.
    • getActivities

      @NotNull public @NotNull GomActivityEntries getActivities()
      Activities definitions
      Since:
      3.1
    • getButtons

      @NotNull public @NotNull GomScriptButtons getButtons()
      Script button definitions
      Since:
      3.1
    • getGroup

      public String getGroup()
      The permission group
      Since:
      3.1
    • setGroup

      public void setGroup(String group)
      Sets the permission group
      Since:
      3.1
    • getAutoSave

      public YesNo getAutoSave()
      Switch to turn auto save on or off
      Since:
      3.1
    • setAutoSave

      public void setAutoSave(YesNo autoSave)
      Enables or disables auto save
      Since:
      3.1
    • getOnLoad

      public String getOnLoad()
      Name of validation script to be executed on load
      Since:
      3.1
    • setOnLoad

      public void setOnLoad(String onLoad)
      Sets the name of the validation script to be executed on load
      Since:
      3.1
    • getOnSave

      public String getOnSave()
      Name of validation script to be executed on save
      Since:
      3.1
    • setOnSave

      public void setOnSave(String onSave)
      Sets the name of the validation script to be executed on save
      Since:
      3.1
    • getOnClick

      public String getOnClick()
      Name of validation script to be executed on click
      Since:
      3.1
    • setOnClick

      public void setOnClick(String onClick)
      Sets the name of the validation script to be executed on click
      Since:
      3.1
    • getPriority

      public Priority getPriority()
      Permission priority
      Since:
      3.1
    • setPriority

      public void setPriority(Priority priority)
      Sets the permission priority
      Since:
      3.1
    • getUseLanguages

      @Deprecated public YesNo getUseLanguages()
      Deprecated.
      Description copied from class: AbstractGomFormElement
      Indicates, whether to have separate values in different languages.
      Overrides:
      getUseLanguages in class AbstractGomFormElement
      Returns:
      YES, if it has separate values. Default is YesNo.YES.
    • priority

      @NotNull public @NotNull Priority priority()
      Convenience API for getPriority() returning a non-null value
      Returns:
      the value of getPriority() or Priority.ALLOW if unset
      Since:
      3.1
    • autoSave

      public boolean autoSave()
      Convenience API for getAutoSave() returning a boolean value
      Since:
      3.1