Class PermissionSetRole

    • Constructor Detail

      • PermissionSetRole

        public PermissionSetRole()
        Constructs a new empty instance.
      • PermissionSetRole

        protected PermissionSetRole​(boolean noInit)
        Constructs a new empty instance.
      • PermissionSetRole

        public PermissionSetRole​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • PermissionSetRole

        public PermissionSetRole​(PermissionSetRole src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getId

        public String getId()
        Not a normal Clover ID
      • getRole

        public Reference getRole()
        The role
      • getPermissionSet

        public Reference getPermissionSet()
        The role
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullRole

        public boolean isNotNullRole()
        Checks whether the 'role' field is set and is not null
      • isNotNullPermissionSet

        public boolean isNotNullPermissionSet()
        Checks whether the 'permissionSet' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasRole

        public boolean hasRole()
        Checks whether the 'role' field has been set, however the value could be null
      • hasPermissionSet

        public boolean hasPermissionSet()
        Checks whether the 'permissionSet' field has been set, however the value could be null
      • setRole

        public PermissionSetRole setRole​(Reference role)
        Sets the field 'role'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setPermissionSet

        public PermissionSetRole setPermissionSet​(Reference permissionSet)
        Sets the field 'permissionSet'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearRole

        public void clearRole()
        Clears the 'role' field, the 'has' method for this field will now return false
      • clearPermissionSet

        public void clearPermissionSet()
        Clears the 'permissionSet' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public PermissionSetRole copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(PermissionSetRole src)
        Copy all the changed fields from the given source to this instance.