@MetaProperty @Override public UUID getId() { return id; }
/** * @return locked object id */ @MetaProperty public String getEntityId() { return entityId; }
@MetaProperty public boolean isDeniedAll() { return (createPermissionVariant == PermissionVariant.DISALLOWED) && (readPermissionVariant == PermissionVariant.DISALLOWED) && (updatePermissionVariant == PermissionVariant.DISALLOWED) && (deletePermissionVariant == PermissionVariant.DISALLOWED); }
/** * @return when the lock occurred */ @MetaProperty public Date getSince() { return since; }
@MetaProperty(related = "snapshotDate") public Date getChangeDate() { return this.snapshotDate; }
@SuppressWarnings("UnusedReturnValue") @MetaProperty public String getCc() { return ccList != null ? ccList.toString() : ""; }
@SuppressWarnings("UnusedReturnValue") @MetaProperty public String getBcc() { return bccList != null ? bccList.toString() : ""; }
@MetaProperty public String getRecentStringValue() { if (recent == null) return ""; if (formatter == null) return recent.toString(); return formatter.apply(recent); }
@MetaProperty public String getAverageStringValue() { if (average == null) return ""; if (formatter == null) return average.toString(); return formatter.apply(average); }
@MetaProperty public String getLocName() { if (localeName == null) { localeName = LocaleHelper.getLocalizedName(localeNames); if (localeName == null) localeName = title; } return localeName; }
@MetaProperty @Transient public String getHierarchicalNameExceptRoot() { return entityTreeNode.getHierarchicalNameExceptRoot(); }
@MetaProperty @Transient public String getHierarchicalLocalizedName() { return entityTreeNode.getHierarchicalLocalizedName(); }
@MetaProperty @Transient public String getHierarchicalLocalizedNameExceptRoot() { return entityTreeNode.getHierarchicalLocalizedNameExceptRoot(); } }
@MetaProperty public String getValueString() { return AttributeHelper.convertToString(value); }
@Id @Override @MetaProperty public String getId() { return new StringBuilder(delegate.getStrategyName()) .append('/') .append(delegate.getId()).toString(); }
@MetaProperty public String getDatatypeCaption() { Messages messages = AppBeans.get(Messages.NAME); return messages.getMainMessage("Datatype." + datatype); } }
@MetaProperty @Transient public Integer getNodeDepth() { if (getParent() == null) { return 1; } else { return getParent().getNodeDepth() + 1; } }
/** * Method returns the default value that should be displayed in the UI. The method takes into account the {@link #secret} * property value and displays a value placeholder if it should not be visible */ @MetaProperty public String getDisplayedDefaultValue() { if (Boolean.TRUE.equals(secret) && isDatatypeMayBeHidden()) { return AppBeans.get(Messages.class).getMessage(AppPropertyEntity.class, "AppPropertyEntity.valueIsSecret"); } else { return defaultValue; } }
/** * Method returns the current value that should be displayed in the UI. The method takes into account the {@link #secret} * property value and displays a value placeholder if it should not be visible */ @MetaProperty public String getDisplayedCurrentValue() { if (Boolean.TRUE.equals(secret) && isDatatypeMayBeHidden()) { return AppBeans.get(Messages.class).getMessage(AppPropertyEntity.class, "AppPropertyEntity.valueIsSecret"); } else { return currentValue; } }
@MetaProperty @Transient public String getNameForBand() { return StringUtils.isEmpty(bandNameFromReport) ? getRegionPropertiesRootNode().getWrappedMetaClass().getJavaClass().getSimpleName() + (isTabulatedRegion() ? "s" : "") + (getReportData().getReportRegions().size() == 1 ? "" : getOrderNum().toString()) : bandNameFromReport; }