public ResourceHistoryTag(ResourceHistoryTable theResourceHistoryTable, TagDefinition theTag) { setTag(theTag); setResource(theResourceHistoryTable); setResourceId(theResourceHistoryTable.getResourceId()); setResourceType(theResourceHistoryTable.getResourceType()); }
public BaseResourceIndexedSearchParam setResource(ResourceTable theResource) { clearHashes(); myResource = theResource; myResourceType = theResource.getResourceType(); return this; }
public ResourceTag(ResourceTable theResourceTable, TagDefinition theTag) { setTag(theTag); setResource(theResourceTable); setResourceId(theResourceTable.getId()); setResourceType(theResourceTable.getResourceType()); }
public void addTag(ResourceTag theTag) { ResourceHistoryTag tag = new ResourceHistoryTag(this, theTag.getTag()); tag.setResourceType(theTag.getResourceType()); getTags().add(tag); }
@Override public ResourceTag addTag(TagDefinition theTag) { for (ResourceTag next : getTags()) { if (next.getTag().equals(theTag)) { return next; } } ResourceTag tag = new ResourceTag(this, theTag); getTags().add(tag); return tag; }
public ResourceIndexedSearchParamString(ModelConfig theModelConfig, String theName, String theValueNormalized, String theValueExact) { setModelConfig(theModelConfig); setParamName(theName); setValueNormalized(theValueNormalized); setValueExact(theValueExact); }
@Override public ResourceHistoryTag addTag(TagDefinition theTag) { for (ResourceHistoryTag next : getTags()) { if (next.getTag().equals(theTag)) { return next; } } ResourceHistoryTag historyTag = new ResourceHistoryTag(this, theTag); getTags().add(historyTag); return historyTag; }
public TagDefinition(TagTypeEnum theTagType, String theSystem, String theCode, String theDisplay) { setTagType(theTagType); setCode(theCode); setSystem(theSystem); setDisplay(theDisplay); }
public ResourceIndexedSearchParamQuantity(String theParamName, BigDecimal theValue, String theSystem, String theUnits) { this(); setParamName(theParamName); setSystem(theSystem); setValue(theValue); setUnits(theUnits); }
public ResourceIndexedSearchParamCoords(String theName, double theLatitude, double theLongitude) { setParamName(theName); setLatitude(theLatitude); setLongitude(theLongitude); }
/** * Constructor */ public ResourceIndexedSearchParamDate(String theName, Date theLow, Date theHigh, String theOriginalValue) { setParamName(theName); setValueLow(theLow); setValueHigh(theHigh); myOriginalValue = theOriginalValue; }
public Long getResourcePid() { if (myResourcePid == null) { return myResource.getId(); } return myResourcePid; }
/** * Constructor */ public ResourceIndexedSearchParamUri(String theName, String theUri) { setParamName(theName); setUri(theUri); }
/** * If set to <code>true</code> (default is true) the server will match incoming resources against active subscriptions * and send them to the subscription channel. If set to <code>false</code> no matching or sending occurs. * @since 3.7.0 */ public boolean isSubscriptionMatchingEnabled() { return myModelConfig.isSubscriptionMatchingEnabled(); }
/** * Add a value to the {@link #setTreatReferencesAsLogical(Set) logical references list}. * * @see #setTreatReferencesAsLogical(Set) */ public void addTreatReferencesAsLogical(String theTreatReferencesAsLogical) { myModelConfig.addTreatReferencesAsLogical(theTreatReferencesAsLogical); }
/** * This setting indicates which subscription channel types are supported by the server. Any subscriptions submitted * to the server matching these types will be activated. */ public Set<Subscription.SubscriptionChannelType> getSupportedSubscriptionTypes() { return myModelConfig.getSupportedSubscriptionTypes(); }
public void calculateHashes(Collection<? extends BaseResourceIndex> theStringParams) { for (BaseResourceIndex next : theStringParams) { next.calculateHashes(); } }
/** * If set to <code>true</code> (default is true) the server will match incoming resources against active subscriptions * and send them to the subscription channel. If set to <code>false</code> no matching or sending occurs. * @since 3.7.0 */ public void setSubscriptionMatchingEnabled(boolean theSubscriptionMatchingEnabled) { myModelConfig.setSubscriptionMatchingEnabled(theSubscriptionMatchingEnabled); }