public void publish() {

        CmsDirectPublishDialogAction action = new CmsDirectPublishDialogAction();
        List<CmsResource> resources = getBundleResources();
        I_CmsDialogContext context = new A_CmsDialogContext("", ContextType.appToolbar, resources) {

            public void focus(CmsUUID structureId) {

                //Nothing to do.
            }

            public List<CmsUUID> getAllStructureIdsInView() {

                return null;
            }

            public void updateUserInfo() {

                //Nothing to do.
            }
        };
        action.executeAction(context);
        updateLockInformation();

    }
public void publish ( ) { CmsDirectPublishDialogAction action = new CmsDirectPublishDialogAction ( ) ; List < CmsResource > resources = getBundleResources ( ) ; I_CmsDialogContext context = new A_CmsDialogContext ( "" , ContextType . appToolbar , resources ) { public void focus ( CmsUUID structureId ) { } public List < CmsUUID > getAllStructureIdsInView ( ) { return null ; } public void updateUserInfo ( ) { } } ; action . executeAction ( context ) ; updateLockInformation ( ) ; }
Publish the bundle resources directly.