@Override
    public void setConfiguration(String configuration) {

        m_userName = null;
        m_flags = null;
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(configuration)) {
            int flagsIndex = configuration.indexOf(CONFIGURATION_FLAGS);
            if (flagsIndex != -1) {
                // user is given
                String flags = configuration.substring(CONFIGURATION_FLAGS.length() + 1);
                if (flags.indexOf('|') != -1) {
                    // cut eventual following configuration values
                    flags = flags.substring(0, flags.indexOf('|'));
                }
                try {
                    m_flags = Integer.valueOf(flags);
                } catch (Throwable t) {
                    // invalid flags
                }
            }
            int groupIndex = configuration.indexOf(CONFIGURATION_USER);
            if (groupIndex != -1) {
                // user is given
                String user = configuration.substring(groupIndex + CONFIGURATION_USER.length() + 1);
                if (user.indexOf('|') != -1) {
                    // cut eventual following configuration values
                    user = user.substring(0, user.indexOf('|'));
                }
                m_userName = user;
            }
            int oufqnIndex = configuration.indexOf(CONFIGURATION_OUFQN);
            if (oufqnIndex != -1) {
                // user is given
                String oufqn = configuration.substring(oufqnIndex + CONFIGURATION_OUFQN.length() + 1);
                if (oufqn.indexOf('|') != -1) {
                    // cut eventual following configuration values
                    oufqn = oufqn.substring(0, oufqn.indexOf('|'));
                }
                m_ouFqn = oufqn;
            }
        }
        super.setConfiguration(configuration);
    }
@ Override public void setConfiguration ( String configuration ) { m_userName = null ; m_flags = null ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( configuration ) ) { int flagsIndex = configuration . indexOf ( CONFIGURATION_FLAGS ) ; if ( flagsIndex != - 1 ) { String flags = configuration . substring ( CONFIGURATION_FLAGS . length ( ) + 1 ) ; if ( flags . indexOf ( '|' ) != - 1 ) { flags = flags . substring ( 0 , flags . indexOf ( '|' ) ) ; } try { m_flags = Integer . valueOf ( flags ) ; } catch ( Throwable t ) { } } int groupIndex = configuration . indexOf ( CONFIGURATION_USER ) ; if ( groupIndex != - 1 ) { String user = configuration . substring ( groupIndex + CONFIGURATION_USER . length ( ) + 1 ) ; if ( user . indexOf ( '|' ) != - 1 ) { user = user . substring ( 0 , user . indexOf ( '|' ) ) ; } m_userName = user ; } int oufqnIndex = configuration . indexOf ( CONFIGURATION_OUFQN ) ; if ( oufqnIndex != - 1 ) { String oufqn = configuration . substring ( oufqnIndex + CONFIGURATION_OUFQN . length ( ) + 1 ) ; if ( oufqn . indexOf ( '|' ) != - 1 ) { oufqn = oufqn . substring ( 0 , oufqn . indexOf ( '|' ) ) ; } m_ouFqn = oufqn ; } } super . setConfiguration ( configuration ) ; }
@see org.opencms.widgets.A_CmsWidget#setConfiguration(java.lang.String)