當前位置: 首頁>>代碼示例>>Java>>正文


Java Ignore類代碼示例

本文整理匯總了Java中org.motechproject.mds.annotations.Ignore的典型用法代碼示例。如果您正苦於以下問題:Java Ignore類的具體用法?Java Ignore怎麽用?Java Ignore使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Ignore類屬於org.motechproject.mds.annotations包,在下文中一共展示了Ignore類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getCurrentMilestoneStartDate

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
/**
 * Returns the start date and time of the current milestone.
 *
 * @return the start date and time of the current milestone
 */
@Ignore
public DateTime getCurrentMilestoneStartDate() {
    if (schedule.isBasedOnAbsoluteWindows()) {
        DateTime startOfMilestone = getStartOfSchedule();
        List<Milestone> milestones = schedule.getMilestones();
        for (Milestone milestone : milestones) {
            if (milestone.getName().equals(currentMilestoneName)) {
                break;
            }
            startOfMilestone = startOfMilestone.plus(milestone.getMaximumDuration());
        }
        return startOfMilestone;
    }
    if (currentMilestoneName.equals(schedule.getFirstMilestone().getName())) {
        return getStartOfSchedule();
    }
    return (fulfillments.isEmpty()) ? getEnrolledOn() : getLastFulfilledDate();
}
 
開發者ID:motech,項目名稱:modules,代碼行數:24,代碼來源:Enrollment.java

示例2: getEndDate

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
/**
 * Gets the end date for taking this dosage. It will check all the medicines for the latest end date.
 * @return the end date for taking this dosage, or null if there are no medicines with end dates
 */
@Ignore
public LocalDate getEndDate() {
    Set<Medicine> medicinesWithNonNullEndDate = getMedicinesWithNonNullEndDate();
    if (medicinesWithNonNullEndDate.isEmpty()) {
        return null;
    }

    List<Medicine> sortedList = new ArrayList<>(medicinesWithNonNullEndDate);
    Collections.sort(sortedList, new Comparator<Medicine>() {
        @Override
        public int compare(Medicine o1, Medicine o2) {
            return o2.getEndDate().compareTo(o1.getEndDate());
        }
    });
    return sortedList.isEmpty() ? null : sortedList.get(0).getEndDate();
}
 
開發者ID:motech,項目名稱:modules,代碼行數:21,代碼來源:Dosage.java

示例3: getSteps

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
public SortedSet<TaskConfigStep> getSteps() {
    SortedSet<TaskConfigStep> steps = new TreeSet<>();

    steps.addAll(getFilters());
    steps.addAll(getDataSources());

    return steps;
}
 
開發者ID:motech,項目名稱:motech,代碼行數:10,代碼來源:TaskConfig.java

示例4: getNextOrderNumber

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
private Integer getNextOrderNumber() {
    Integer order;

    try {
        order = getSteps().last().getOrder() + 1;
    } catch (NoSuchElementException e) {
        order = 0;
    }

    return order;
}
 
開發者ID:motech,項目名稱:motech,代碼行數:13,代碼來源:TaskConfig.java

示例5: setField

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
public void setField(String field) {
    if (fields == null) {
        fields = new ArrayList<>();
    } else {
        fields.clear();
    }
    fields.add(field);
}
 
開發者ID:motech,項目名稱:motech,代碼行數:10,代碼來源:TaskActivity.java

示例6: updateFromProperties

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
@Override
public void updateFromProperties(final Properties props) {
    if (props != null) {
        for (Object key : props.keySet()) {
            savePlatformSetting(key.toString(), props.get(key).toString());
        }
    }
}
 
開發者ID:motech,項目名稱:motech,代碼行數:10,代碼來源:SettingsRecord.java

示例7: load

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
@Override
public synchronized void load(DigestInputStream dis) throws IOException {
    Properties props = new Properties();
    props.load(dis);
    for (Object key : props.keySet()) {
        savePlatformSetting(key.toString(), props.get(key).toString());
    }
}
 
開發者ID:motech,項目名稱:motech,代碼行數:10,代碼來源:SettingsRecord.java

示例8: updateSettings

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
@Override
public void updateSettings(final String configFileChecksum, String filePath, Properties platformSettings) {
    setConfigFileChecksum(configFileChecksum);
    this.filePath = filePath;
    updateFromProperties(platformSettings);
}
 
開發者ID:motech,項目名稱:motech,代碼行數:8,代碼來源:SettingsRecord.java

示例9: mergeWithDefaults

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
/**
 * Merges given default configuration into existing platform settings. Keys that already exists won't be overwritten.
 *
 * @param defaultConfig  the default configuration to be merged.
 */
@Ignore
public void mergeWithDefaults(Properties defaultConfig) {
    if (defaultConfig != null) {
        for (Object key : defaultConfig.keySet()) {
            if (!platformSettings.containsKey(key.toString())) {
                savePlatformSetting(key.toString(), defaultConfig.get(key).toString());
            }
        }
    }
}
 
開發者ID:motech,項目名稱:motech,代碼行數:16,代碼來源:SettingsRecord.java

示例10: removeDefaults

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
/**
 * Removes settings specified in defaultConfig.
 *
 * @param defaultConfig
 */
@Ignore
public void removeDefaults(Properties defaultConfig) {
    for (Map.Entry<Object, Object> entry : defaultConfig.entrySet()) {
        String key = (String) entry.getKey();
        Object defaultValue = entry.getValue();

        Object currentVal = platformSettings.get(key);

        if (currentVal != null && Objects.equals(currentVal, defaultValue)) {
            platformSettings.remove(key);
        }
    }
}
 
開發者ID:motech,項目名稱:motech,代碼行數:19,代碼來源:SettingsRecord.java

示例11: getSafeLastPasswordChange

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
public DateTime getSafeLastPasswordChange() {
    if (lastPasswordChange == null) {
        return modificationDate;
    }
    return lastPasswordChange;
}
 
開發者ID:motech,項目名稱:motech,代碼行數:8,代碼來源:MotechUser.java

示例12: isActive

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
public boolean isActive() {
    if (UserStatus.BLOCKED.equals(this.userStatus)) {
        return false;
    }
    return true;
}
 
開發者ID:motech,項目名稱:motech,代碼行數:8,代碼來源:MotechUser.java

示例13: getProviderOrganizationSet

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
public Set<ProviderOrganization> getProviderOrganizationSet() {
    if (providerOrganizations != null && providerOrganizations.isEmpty()) {
        return null;
    }
    return providerOrganizations;
}
 
開發者ID:motech,項目名稱:modules,代碼行數:8,代碼來源:Provider.java

示例14: getProviderFacilitySet

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
public Set<ProviderFacility> getProviderFacilitySet() {
    if (providerFacilities != null && providerFacilities.isEmpty()) {
        return null;
    }
    return providerFacilities;
}
 
開發者ID:motech,項目名稱:modules,代碼行數:8,代碼來源:Provider.java

示例15: getFacilityOrganizationSet

import org.motechproject.mds.annotations.Ignore; //導入依賴的package包/類
@Ignore
public Set<FacilityOrganization> getFacilityOrganizationSet() {
    if (facilityOrganizations != null && facilityOrganizations.isEmpty()) {
        return null;
    }
    return facilityOrganizations;
}
 
開發者ID:motech,項目名稱:modules,代碼行數:8,代碼來源:Facility.java


注:本文中的org.motechproject.mds.annotations.Ignore類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。