Class CMAPermissions


  • public class CMAPermissions
    extends java.lang.Object
    What can the user change? The content structure? The content values? The space?
    • Constructor Detail

      • CMAPermissions

        public CMAPermissions()
    • Method Detail

      • getContentModel

        public java.lang.Object getContentModel()
        Return what the user can do with the content model aka content type.
        Returns:
        a string of 'all', null or an empty list if not set.
      • setContentModel

        public CMAPermissions setContentModel​(java.lang.Object contentModel)
        Set the permission to change the content model.
        Parameters:
        contentModel - only a string of `"all"` or an array like `["manage"]` is allowed.
        Returns:
        this instance for chaining.
      • getContentDelivery

        public java.lang.Object getContentDelivery()
        Returns:
        a string of 'all' if this role is allowed to change the values of entries' fields.
      • setContentDelivery

        public CMAPermissions setContentDelivery​(java.lang.Object contentDelivery)
        Set the permission of content delivery changes.
        Parameters:
        contentDelivery - of 'all' to affect all of the content delivery values.
        Returns:
        this instance for chaining.
        See Also:
        setContentModel(Object)
      • getSettings

        public java.lang.Object getSettings()
        Returns:
        'all' String if this role is allowed to change the space settings.
      • setSettings

        public CMAPermissions setSettings​(java.lang.Object settings)
        Update the space settings changing ability of the current role.
        Parameters:
        settings - an object representing the permissions of changing the settings.
        Returns:
        this instance for chaining.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a human readable string, representing the object.