Class AccessDeniedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AccessDeniedException
    extends SystemException
    Access denied exception
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • AccessDeniedException

        public AccessDeniedException​(java.lang.String messageId,
                                     java.lang.Object[] params)
        Constructor. The messageId is not localized, resource bundle will be used to translate the message.
        Parameters:
        messageId - message key in resource bundle whose value can contain parameters {n}.
        params - an array of parameter values
      • AccessDeniedException

        public AccessDeniedException​(java.lang.String messageId,
                                     boolean localized,
                                     java.lang.Object[] params)
        Constructor. if the message is not localized, resource bundle will be used to translate the message.
        Parameters:
        messageId - if localized is false, message key in resource bundle whose value can contain parameters {n}. if localized is true, a message that can contain parameters {n}.
        localized - whether the messageId is localized.
        params - an array of parameter values
      • AccessDeniedException

        public AccessDeniedException​(java.lang.String message)
        Constructor.
        Parameters:
        message - a localized message. Resource bundle will not be used.
      • AccessDeniedException

        public AccessDeniedException​(java.lang.Throwable t)
        Constructor: wrapper over a Throwable
        Parameters:
        t - a Throwable
      • AccessDeniedException

        public AccessDeniedException​(java.lang.String messageId,
                                     AccessType accessType,
                                     java.lang.Class entityType,
                                     java.lang.String property)
        Constructor with access denied for accessing the property.
        Parameters:
        messageId - message key in resource bundle whose value can contain parameters {n}.
        accessType - access type
        entityType - entity type
        property - property name
      • AccessDeniedException

        public AccessDeniedException​(java.lang.String messageId,
                                     AccessType accessType,
                                     java.lang.Class entityType)
        Constructor with access denied for accessing the entity type.
        Parameters:
        messageId - message key in resource bundle whose value can contain parameters {n}.
        accessType - access type
        entityType - entity type
      • AccessDeniedException

        public AccessDeniedException​(java.lang.String messageId,
                                     AccessType accessType,
                                     DataDescriptor dataDescriptor,
                                     java.lang.String property,
                                     DataAccessUnit dataAccessUnit)
        Constructor with access denied for accessing data described by the dataDescriptor.
        Parameters:
        messageId - message key in resource bundle whose value can contain parameters {n}.
        accessType - access type
        dataDescriptor - the data being accessed
        property - the property being accessed if not null
        dataAccessUnit - the associated dataAccessUnit
        Since:
        5.16
    • Method Detail

      • getAccessType

        public AccessType getAccessType()
        Get access type for access denied
        Returns:
        access type, can be null.
      • setAccessType

        public void setAccessType​(AccessType accessType)
        Set access type for access denied
        Parameters:
        accessType - access type
      • getEntityType

        public java.lang.Class getEntityType()
        Get entity type for access denied
        Returns:
        entity type
      • setEntityType

        public void setEntityType​(java.lang.Class entityType)
        Set entity type for access denied
        Parameters:
        entityType - entity type
      • getProperty

        public java.lang.String getProperty()
        Get the name of the property for access denied
        Returns:
        property name
      • setProperty

        public void setProperty​(java.lang.String property)
        Set the name of the property for access denied
        Parameters:
        property - property name
      • getLocalizedMessage

        public java.lang.String getLocalizedMessage()
        Overrides:
        getLocalizedMessage in class java.lang.Throwable
        Since:
        5.16