public String buildCurrentPermissions() {

        StringBuffer result = new StringBuffer(
            dialogToggleStart(
                key(Messages.GUI_PERMISSION_USER_0),
                "userpermissions",
                getSettings().getUserSettings().getDialogExpandUserPermissions()));
        result.append(dialogWhiteBoxStart());
        try {
            result.append(buildPermissionEntryForm(
                getSettings().getUser().getId(),
                buildPermissionsForCurrentUser(),
                false,
                false));
        } catch (CmsException e) {
            // should never happen
            if (LOG.isErrorEnabled()) {
                LOG.error(e.getLocalizedMessage(), e);
            }
        }
        result.append(dialogWhiteBoxEnd());
        result.append("</div>\n");
        return result.toString();
    }
public String buildCurrentPermissions ( ) { StringBuffer result = new StringBuffer ( dialogToggleStart ( key ( Messages . GUI_PERMISSION_USER_0 ) , "userpermissions" , getSettings ( ) . getUserSettings ( ) . getDialogExpandUserPermissions ( ) ) ) ; result . append ( dialogWhiteBoxStart ( ) ) ; try { result . append ( buildPermissionEntryForm ( getSettings ( ) . getUser ( ) . getId ( ) , buildPermissionsForCurrentUser ( ) , false , false ) ) ; } catch ( CmsException e ) { if ( LOG . isErrorEnabled ( ) ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; } } result . append ( dialogWhiteBoxEnd ( ) ) ; result . append ( "</div>\n" ) ; return result . toString ( ) ; }
Builds a String with HTML code to display the users access rights for the current resource.<p>

@return HTML String with the access rights of the current user