void copyLocales(final Set<String> targetLocales) {

        final CmsEntity entity = m_entityBackend.getEntity(m_entityId);
        CmsRpcAction<Void> action = new CmsRpcAction<Void>() {

            @Override
            public void execute() {

                start(200, true);
                getService().copyLocale(targetLocales, entity, this);
            }

            @Override
            protected void onResponse(Void result) {

                stop(false);
            }
        };
        action.execute();
        for (String targetLocale : targetLocales) {
            String targetId = getIdForLocale(targetLocale);
            if (!m_entityId.equals(targetId)) {
                if (m_registeredEntities.contains(targetId)) {
                    unregistereEntity(targetId);
                }
                registerClonedEntity(m_entityId, targetId);
                m_registeredEntities.add(targetId);
                m_changedEntityIds.add(targetId);
                m_contentLocales.add(targetLocale);
                m_deletedEntities.remove(targetId);
                enableSave();
            }
        }
        initLocaleSelect();
    }
void copyLocales ( final Set < String > targetLocales ) { final CmsEntity entity = m_entityBackend . getEntity ( m_entityId ) ; CmsRpcAction < Void > action = new CmsRpcAction < Void > ( ) { @ Override public void execute ( ) { start ( 200 , true ) ; getService ( ) . copyLocale ( targetLocales , entity , this ) ; } @ Override protected void onResponse ( Void result ) { stop ( false ) ; } } ; action . execute ( ) ; for ( String targetLocale : targetLocales ) { String targetId = getIdForLocale ( targetLocale ) ; if ( ! m_entityId . equals ( targetId ) ) { if ( m_registeredEntities . contains ( targetId ) ) { unregistereEntity ( targetId ) ; } registerClonedEntity ( m_entityId , targetId ) ; m_registeredEntities . add ( targetId ) ; m_changedEntityIds . add ( targetId ) ; m_contentLocales . add ( targetLocale ) ; m_deletedEntities . remove ( targetId ) ; enableSave ( ) ; } } initLocaleSelect ( ) ; }
Copies the current entity values to the given locales.<p>

@param targetLocales the target locales