本文整理汇总了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();
}
示例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();
}
示例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;
}
示例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;
}
示例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);
}
示例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());
}
}
}
示例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());
}
}
示例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);
}
示例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());
}
}
}
}
示例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);
}
}
}
示例11: getSafeLastPasswordChange
import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public DateTime getSafeLastPasswordChange() {
if (lastPasswordChange == null) {
return modificationDate;
}
return lastPasswordChange;
}
示例12: isActive
import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public boolean isActive() {
if (UserStatus.BLOCKED.equals(this.userStatus)) {
return false;
}
return true;
}
示例13: getProviderOrganizationSet
import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public Set<ProviderOrganization> getProviderOrganizationSet() {
if (providerOrganizations != null && providerOrganizations.isEmpty()) {
return null;
}
return providerOrganizations;
}
示例14: getProviderFacilitySet
import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public Set<ProviderFacility> getProviderFacilitySet() {
if (providerFacilities != null && providerFacilities.isEmpty()) {
return null;
}
return providerFacilities;
}
示例15: getFacilityOrganizationSet
import org.motechproject.mds.annotations.Ignore; //导入依赖的package包/类
@Ignore
public Set<FacilityOrganization> getFacilityOrganizationSet() {
if (facilityOrganizations != null && facilityOrganizations.isEmpty()) {
return null;
}
return facilityOrganizations;
}