@Override
    public boolean isVisible() {

        try {
            String groupName = (String)getItem().get(A_CmsUserGroupsList.LIST_COLUMN_NAME);
            List<CmsGroup> dGroups = getCms().getGroupsOfUser(getUserName(), true);
            CmsGroup group = getCms().readGroup(groupName);
            if (isDirect()) {
                return dGroups.contains(group);
            } else {
                return !dGroups.contains(group);
            }
        } catch (Exception e) {
            return false;
        }
    }
@ Override public boolean isVisible ( ) { try { String groupName = ( String ) getItem ( ) . get ( A_CmsUserGroupsList . LIST_COLUMN_NAME ) ; List < CmsGroup > dGroups = getCms ( ) . getGroupsOfUser ( getUserName ( ) , true ) ; CmsGroup group = getCms ( ) . readGroup ( groupName ) ; if ( isDirect ( ) ) { return dGroups . contains ( group ) ; } else { return ! dGroups . contains ( group ) ; } } catch ( Exception e ) { return false ; } }
@see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()