Class PageRoleRemovalListener

    • Constructor Detail

      • PageRoleRemovalListener

        public PageRoleRemovalListener()
    • Method Detail

      • canBeRemoved

        public boolean canBeRemoved​(String strId)
        Check if the object can be safely removed
        Specified by:
        canBeRemoved in interface RemovalListener
        Parameters:
        strId - The object id
        Returns:
        true if the object can be removed otherwise false
      • getRemovalRefusedMessage

        public String getRemovalRefusedMessage​(String strId,
                                               Locale locale)
        Gives a message explaining why the object can't be removed
        Specified by:
        getRemovalRefusedMessage in interface RemovalListener
        Parameters:
        strId - The object id
        locale - The current locale
        Returns:
        The message