def getWidget(id, check_visibility=True, check_permissions=True,
    check_condition=True, retJson=True):
    """ Return the specific widget's information.

        @param id
        id of the wanted widget

        @param check_visibility
        if True, return only action whose "visible" flag is set.

        @param check_permissions
        if True, return only action for whose permissions the current user is
        authorized.

        @param check_condition
        if True, return only action whose condition expression evaluates True.

        @param retJson
        format return value to json format or not( default True )

        @return
        a dict with the following format:
        {
            'success': True,
            'msg': 'Get widget success.',
            'id': '',
            'title': '',
            'description': '',
            'icon': ''
        }

        """
