Class SecuredAjaxButton

    • Constructor Detail

      • SecuredAjaxButton

        public SecuredAjaxButton​(String id,
                                 String... roles)
        Constructor
        Parameters:
        id - the markup id
        roles - list of roles allowed to enable the button
      • SecuredAjaxButton

        public SecuredAjaxButton​(String id,
                                 com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider,
                                 String... roles)
        Constructor
        Parameters:
        id - the markup id
        provider - the IJQuerySecurityProvider that will check roles
        roles - list of roles allowed to enable the button
      • SecuredAjaxButton

        public SecuredAjaxButton​(String id,
                                 Form<?> form,
                                 String... roles)
        Constructor
        Parameters:
        id - the markup id
        form - the Form
        roles - list of roles allowed to enable the button
      • SecuredAjaxButton

        public SecuredAjaxButton​(String id,
                                 Form<?> form,
                                 com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider,
                                 String... roles)
        Constructor
        Parameters:
        id - the markup id
        form - the Form
        provider - the IJQuerySecurityProvider that will check roles
        roles - list of roles allowed to enable the button
      • SecuredAjaxButton

        public SecuredAjaxButton​(String id,
                                 IModel<String> model,
                                 String... roles)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
        roles - list of roles allowed to enable the button
      • SecuredAjaxButton

        public SecuredAjaxButton​(String id,
                                 IModel<String> model,
                                 com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider,
                                 String... roles)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
        provider - the IJQuerySecurityProvider that will check roles
        roles - list of roles allowed to enable the button
      • SecuredAjaxButton

        public SecuredAjaxButton​(String id,
                                 IModel<String> model,
                                 Form<?> form,
                                 String... roles)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
        form - the Form
        roles - list of roles allowed to enable the button
      • SecuredAjaxButton

        public SecuredAjaxButton​(String id,
                                 IModel<String> model,
                                 Form<?> form,
                                 com.googlecode.wicket.jquery.core.IJQuerySecurityProvider provider,
                                 String... roles)
        Constructor
        Parameters:
        id - the markup id
        model - the IModel
        form - the Form
        provider - the IJQuerySecurityProvider that will check roles
        roles - list of roles allowed to enable the button
    • Method Detail

      • setRoles

        public void setRoles​(String[] roles)
        Sets the roles if there are not transmitted to the constructor
        Parameters:
        roles - the role list
      • isLocked

        public final boolean isLocked()
        Indicates whether the button is locked.
        Returns:
        the result of IJQuerySecurityProvider.hasRole(String...)