Package org.olat.core.util.coordinate

Examples of org.olat.core.util.coordinate.SyncerExecutor


  @Override
  public void setProjectState(final Project project, final String state) {
    final Long projectBrokerId = project.getProjectBroker().getKey();
    OLATResourceable projectBrokerOres = OresHelper.createOLATResourceableInstance(this.getClass(),projectBrokerId);
    CoordinatorManager.getCoordinator().getSyncer().doInSync( projectBrokerOres, new SyncerExecutor() {
      public void execute() {
        // For cluster-safe : reload project object here another node might have changed this in the meantime
        Project reloadedProject = (Project) DBFactory.getInstance().loadObject(project, true);   
        reloadedProject.setState(state);
        DBFactory.getInstance().updateObject(reloadedProject);
View Full Code Here


   
    // handle Boolean Values via String Field in Property DB Table
    final String toolValueStr = toolValue ? TRUE : FALSE;
    final PropertyManager pm = PropertyManager.getInstance();
    //
    CoordinatorManager.getCoordinator().getSyncer().doInSync(ores, new SyncerExecutor() {
      public void execute() {       
        //was: synchronized (CollaborationTools.class) {
        Property property = getPropertyOf(selectedTool);
        if (property == null) {
          // not existing -> create it
View Full Code Here

    if (resourceableId == null) throw new AssertException("No resourceable ID found.");
       
    PersistingCourseImpl theCourse = getCourseEditSession(resourceableId);
    if(theCourse!=null) {
      //o_clusterOK by: ld (although the course is locked for editing, we still have to insure that load course is synchronized)
      CoordinatorManager.getCoordinator().getSyncer().doInSync(theCourse, new SyncerExecutor(){
        public void execute() {
          final PersistingCourseImpl course = getCourseEditSession(resourceableId);
          if(course!=null && course.isReadAndWrite()) {
            course.initHasAssessableNodes();
            course.saveRunStructure();
View Full Code Here

    if (resourceableId == null) throw new AssertException("No resourceable ID found.");
   
    PersistingCourseImpl theCourse = getCourseEditSession(resourceableId);
    if(theCourse!=null) {
      //o_clusterOK by: ld (although the course is locked for editing, we still have to insure that load course is synchronized)
      CoordinatorManager.getCoordinator().getSyncer().doInSync(theCourse, new SyncerExecutor(){
        public void execute() {
          PersistingCourseImpl course = getCourseEditSession(resourceableId);
          if(course!=null) {
            course.setCourseConfig(cc);
             
View Full Code Here

TOP

Related Classes of org.olat.core.util.coordinate.SyncerExecutor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.