Examples of ModificationStatus


Examples of org.projectforge.core.ModificationStatus

    }
    checkAccess(dbObj);
    Validate.isTrue(ObjectUtils.equals(dbObj.getContactId(), obj.getContactId()));
    obj.setId(dbObj.getId());
    // Copy all values of modified user to database object.
    final ModificationStatus modified = dbObj.copyValuesFrom(obj, "owner", "address", "id");
    if (modified == ModificationStatus.MAJOR) {
      dbObj.setLastUpdate();
      log.info("Object updated: " + dbObj.toString());
    }
    return true;
View Full Code Here

Examples of org.projectforge.core.ModificationStatus

    }
    checkAccess(dbObj);
    Validate.isTrue(ObjectUtils.equals(dbObj.getAddressId(), obj.getAddressId()));
    obj.setId(dbObj.getId());
    // Copy all values of modified user to database object.
    final ModificationStatus modified = dbObj.copyValuesFrom(obj, "owner", "address", "id");
    if (modified == ModificationStatus.MAJOR) {
      dbObj.setLastUpdate();
      log.info("Object updated: " + dbObj.toString());
    }
    return true;
View Full Code Here

Examples of org.projectforge.core.ModificationStatus

   * @param src
   */
  @Override
  public ModificationStatus copyValuesFrom(final BaseDO< ? extends Serializable> source, final String... ignoreFields)
  {
    ModificationStatus modificationStatus = super.copyValuesFrom(source, ignoreFields);
    final GroupTaskAccessDO src = (GroupTaskAccessDO) source;
    if (src.getAccessEntries() != null) {
      for (final AccessEntryDO srcEntry : src.getAccessEntries()) {
        final AccessEntryDO destEntry = ensureAndGetAccessEntry(srcEntry.getAccessType());
        final ModificationStatus st = destEntry.copyValuesFrom(srcEntry);
        modificationStatus = getModificationStatus(modificationStatus, st);
      }
      final Iterator<AccessEntryDO> iterator = getAccessEntries().iterator();
      while (iterator.hasNext()) {
        final AccessEntryDO destEntry = iterator.next();
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.