Examples of updateProperty()


Examples of org.apache.jetspeed.om.page.ContentFragment.updateProperty()

        assertEquals(newDefinition1Id, newFragmentDefinition1ContentPage.getDefId());       

        // update pages via content pages and fragments
        newFragmentDefinition1ContentPage.updateTitles(null, "new-fragment-definition-1-updated");
        ContentFragment updateContentFragment = (ContentFragment)(newFragmentDefinition1ContentPage.getFragmentsByName("new-fake-fragment-definition-1").get(0));
        updateContentFragment.updateProperty("global-prop", "global-fragment-definition");
        updateContentFragment.updateProperty("prop", "global-fragment-definition");
        updateContentFragment.updateProperty("prop", "user-fragment-definition", ContentFragment.USER_PROPERTY_SCOPE, "user");
        updateContentFragment.updateProperty("user-prop", "user-fragment-definition", ContentFragment.USER_PROPERTY_SCOPE, "user");
        updateContentFragment.updateProperty("global-fragment-definition-prop", "global-fragment-definition");
        updateContentFragment.updateProperty("fragment-definition-prop", "global-fragment-definition");
View Full Code Here

Examples of org.apache.muse.ws.resource.WsResourceCapability.updateProperty()

        for (int n = 0; n < lcd; ++n)
            changeRequested(qname, current[n], valuesXML[n], securityToken);
       
        WsResourceCapability capability = getCapability(qname);
        capability.updateProperty(qname, valuesXML);

        for (int n = 0; n < lcd; ++n)
            changeCompleted(qname, current[n], valuesXML[n]);
       
        //
View Full Code Here

Examples of org.apache.ws.resource.properties.SetResourcePropertyCallback.updateProperty()

        SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
        if ( setResourcePropertyCallback != null )
        {
            try
            {
                setResourcePropertyCallback.updateProperty( newPropElems );
            }
            catch (Exception e)
            {
                LOG.debug(MSG.getMessage( Keys.ERROR_DURING_UPDATE_CALLBACK, setResourcePropertyCallback),e);
                throw new SetResourcePropertyRequestFailedFaultException(getNamespaceSet(), MSG.getMessage( Keys.ERROR_DURING_UPDATE));
View Full Code Here

Examples of org.apache.ws.resource.properties.SetResourcePropertyCallback.updateProperty()

                                         XmlObject[] newPropElems )
    {
        SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
        if ( setResourcePropertyCallback != null )
        {
            setResourcePropertyCallback.updateProperty( newPropElems );
        }
    }
}
View Full Code Here

Examples of org.apache.ws.resource.properties.SetResourcePropertyCallback.updateProperty()

                                         XmlObject[] newPropElems )
    {
        SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
        if ( setResourcePropertyCallback != null )
        {
            setResourcePropertyCallback.updateProperty( newPropElems );
        }
    }

    private void throwFaultIfDeletionViolatesSchema( ResourceProperty prop )
    {
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.updateProperty()

    if (statusProperty == null) {
      statusProperty = cpm.createCourseNodePropertyInstance(node, identity, null, PROPERTY_KEY_STATUS, null, null,selectedKey, null);
      cpm.saveProperty(statusProperty);
    } else {
      statusProperty.setStringValue(selectedKey);
      cpm.updateProperty(statusProperty);
    }   
  }
 
}
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.updateProperty()

          attemptsProperty = cpm.createCourseNodePropertyInstance(courseNode, assessedIdentity, null, ATTEMPTS,
              null, new Long(attempts.intValue()), null, null);
          cpm.saveProperty(attemptsProperty);
        } else {
          attemptsProperty.setLongValue(new Long(attempts.intValue()));
          cpm.updateProperty(attemptsProperty);
        }
        // add to cache
        putPropertyIntoCache(assessedIdentity, attemptsProperty);
      }
    });
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.updateProperty()

        if (commentProperty == null) {
          commentProperty = cpm.createCourseNodePropertyInstance(courseNode, assessedIdentity, null, COMMENT, null, null, null, comment);
          cpm.saveProperty(commentProperty);
        } else {
          commentProperty.setTextValue(comment);
          cpm.updateProperty(commentProperty);
        }
        // add to cache
        putPropertyIntoCache(assessedIdentity, commentProperty);
      }
    });
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.updateProperty()

        if (commentProperty == null) {
          commentProperty = cpm.createCourseNodePropertyInstance(courseNode, assessedIdentity, null, COACH_COMMENT, null, null, null, comment);
          cpm.saveProperty(commentProperty);
        } else {
          commentProperty.setTextValue(comment);
          cpm.updateProperty(commentProperty);
        }
        // add to cache
        putPropertyIntoCache(assessedIdentity, commentProperty);
      }
    });
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.updateProperty()

      cpm.saveProperty(logProperty);
    } else {
      String newLog = logProperty.getTextValue() + sb.toString();
      String limitedLogContent = createLimitedLogContent(newLog,60000);
      logProperty.setTextValue(limitedLogContent);
      cpm.updateProperty(logProperty);
    }

  }

  protected String createLimitedLogContent(String logContent, int maxLength) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.