javax.persistence.Transient#com.fasterxml.jackson.annotation.JsonIgnore源码实例Demo

下面列出了javax.persistence.Transient#com.fasterxml.jackson.annotation.JsonIgnore 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: syncope   文件: SCIMUserAddressConf.java
@JsonIgnore
public Map<String, String> asMap() {
    Map<String, String> map = new HashMap<>();

    if (formatted != null) {
        map.put("formatted", formatted);
    }
    if (streetAddress != null) {
        map.put("streetAddress", streetAddress);
    }
    if (locality != null) {
        map.put("locality", locality);
    }
    if (region != null) {
        map.put("region", region);
    }
    if (postalCode != null) {
        map.put("postalCode", postalCode);
    }
    if (country != null) {
        map.put("country", country);
    }

    return Collections.unmodifiableMap(map);
}
 
源代码2 项目: tindroid   文件: Subscription.java
@JsonIgnore
public String getUnique() {
    if (topic == null) {
        return user;
    }
    if (user == null) {
        return topic;
    }
    return topic + ":" + user;
}
 
源代码3 项目: super-cloudops   文件: IamSession.java
@JsonIgnore
@Override
public Collection<Object> getAttributeKeys() throws InvalidSessionException {
	Map<Object, Object> attributes = getAttributes();
	if (isNull(attributes)) {
		return emptySet();
	}
	return attributes.keySet();
}
 
源代码4 项目: flow   文件: OpenApiObjectGenerator.java
private Map<String, Schema> getPropertiesFromClassDeclaration(
        TypeDeclaration<?> typeDeclaration) {
    Map<String, Schema> properties = new TreeMap<>();
    for (FieldDeclaration field : typeDeclaration.getFields()) {
        if (field.isTransient() || field.isStatic()
                || field.isAnnotationPresent(JsonIgnore.class)) {
            continue;
        }
        Optional<String> fieldDescription = field.getJavadoc()
                .map(javadoc -> javadoc.getDescription().toText());
        field.getVariables().forEach(variableDeclarator -> {
            Schema propertySchema = parseTypeToSchema(
                    variableDeclarator.getType(),
                    fieldDescription.orElse(""));
            if (field.isAnnotationPresent(Nullable.class)
                    || GeneratorUtils.isTrue(propertySchema.getNullable())) {
                // Temporarily set nullable to indicate this property is
                // not required
                propertySchema.setNullable(true);
            }
            addFieldAnnotationsToSchema(field, propertySchema);
            properties.put(variableDeclarator.getNameAsString(),
                    propertySchema);
        });
    }
    return properties;
}
 
源代码5 项目: qemu-java   文件: DisplayGTK.java
@JsonIgnore
@Override
public java.util.List<java.lang.String> getFieldNames() {
	java.util.List<java.lang.String> names = super.getFieldNames();
	names.add("grab-on-hover");
	return names;
}
 
源代码6 项目: quarkus   文件: ConfigDocItem.java
@JsonIgnore
@Override
public ConfigPhase getConfigPhase() {
    if (isConfigSection()) {
        return configDocSection.getConfigPhase();
    } else if (isConfigKey()) {
        return configDocKey.getConfigPhase();
    }

    return null;
}
 
源代码7 项目: render   文件: ListTransformSpec.java
@JsonIgnore
public TransformSpec getLastSpec() {
    final TransformSpec lastSpec;
    if ((specList.size() > 0)) {
        lastSpec = specList.get(specList.size() - 1);
    } else {
        lastSpec = null;
    }
    return lastSpec;
}
 
源代码8 项目: qemu-java   文件: QCryptoBlockOptionsBase.java
@JsonIgnore
@Override
public java.util.List<java.lang.String> getFieldNames() {
	java.util.List<java.lang.String> names = super.getFieldNames();
	names.add("format");
	return names;
}
 
源代码9 项目: camel-k-runtime   文件: WireTapStepParser.java
@JsonIgnore
public String getEndpointUri() {
    String answer = getUri();

    if (parameters != null) {
        try {
            answer = URISupport.appendParametersToURI(answer, parameters);
        } catch (URISyntaxException | UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }

    return answer;
}
 
源代码10 项目: xyz-hub   文件: Space.java
@JsonIgnore
public CacheProfile getCacheProfile(boolean skipCache, boolean autoConfig) {
  // Cache is manually deactivated, either for the space or for this specific request
  if (getCacheTTL() == 0 || skipCache) {
    return CacheProfile.NO_CACHE;
  }

  // Cache is manually set -> use those settings instead
  if (getCacheTTL() > 0) {
    return new CacheProfile(getCacheTTL() / 3, getCacheTTL(), Long.MAX_VALUE, getContentUpdatedAt());
  }

  // Automatic cache configuration is not active.
  if (!autoConfig) {
    return CacheProfile.NO_CACHE;
  }

  double volatility = getVolatility();
  long timeSinceLastUpdate = Service.currentTimeMillis() - getContentUpdatedAt();

  // 0 min to 2 min -> no cache
  if (timeSinceLastUpdate < 2 * CONTENT_UPDATED_AT_INTERVAL_MILLIS) {
    return CacheProfile.NO_CACHE;
  }

  // 2 min to (1 hour + volatility penalty time ) -> cache only in the service
  long volatilityPenalty = (long) (volatility * volatility * TimeUnit.DAYS.toMillis(7));
  if (timeSinceLastUpdate < TimeUnit.HOURS.toMillis(1) + volatilityPenalty) {
    return new CacheProfile(0, 0, CacheProfile.MAX_SERVICE_TTL, getContentUpdatedAt());
  }

  // no changes for more than (1 hour + volatility penalty time ) -> cache in the service and in the browser
  return new CacheProfile(TimeUnit.MINUTES.toMillis(3), TimeUnit.HOURS.toMillis(24), CacheProfile.MAX_SERVICE_TTL,
      getContentUpdatedAt());
}
 
源代码11 项目: docker-java   文件: CreateContainerCmd.java
/**
 *
 * @deprecated see {@link #getHostConfig()}
 */
@Deprecated
@CheckForNull
@JsonIgnore
default Long getMemory() {
    return getHostConfig().getMemory();
}
 
源代码12 项目: okapi   文件: InterfaceDescriptor.java
/**
 * checks if interface descriptor is certain type.
 * @param type type to check
 */
@JsonIgnore
public boolean isType(String type) {
  String haveType;
  if (id.startsWith("_")) {
    haveType = "system";
  } else if (interfaceType == null) {
    haveType = "proxy";
  } else {
    haveType = interfaceType;
  }
  return type.equals(haveType);
}
 
源代码13 项目: MantaroBot   文件: PlayerEquipment.java
@JsonIgnore
public boolean equipItem(Item item) {
    EquipmentType type = getTypeFor(item);
    if (type == null || type.getType() != 0)
        return false;

    equipment.put(type, Items.idOf(item));
    if (item instanceof Breakable) //should always be?
        durability.put(type, ((Breakable) item).getMaxDurability());

    return true;
}
 
源代码14 项目: incubator-taverna-language   文件: PathMetadata.java
@JsonIgnore
@Deprecated
public Path getFolder() {
	Proxy bundledAs = getBundledAs();
	if (bundledAs == null) {
		return null;
	}
	return bundledAs.getFolder();
}
 
源代码15 项目: batfish   文件: SnapshotRuntimeData.java
/**
 * Returns set of {@link NodeInterfacePair}s representing all interfaces with {@link
 * InterfaceRuntimeData#getLineUp() lineUp} set to {@code false}.
 */
@JsonIgnore
@Nonnull
public Set<NodeInterfacePair> getBlacklistedInterfaces() {
  return _runtimeData.entrySet().stream()
      .flatMap(
          nodeEntry ->
              nodeEntry.getValue().getInterfaces().entrySet().stream()
                  .filter(ifaceEntry -> Objects.equals(ifaceEntry.getValue().getLineUp(), false))
                  .map(
                      ifaceEntry ->
                          NodeInterfacePair.of(nodeEntry.getKey(), ifaceEntry.getKey())))
      .collect(ImmutableSet.toImmutableSet());
}
 
源代码16 项目: qemu-java   文件: SchemaInfoAlternate.java
@JsonIgnore
@Override
public java.util.List<java.lang.String> getFieldNames() {
	java.util.List<java.lang.String> names = super.getFieldNames();
	names.add("members");
	return names;
}
 
源代码17 项目: okapi   文件: InterfaceDescriptor.java
/**
 * Get routing entries as list.
 */
@JsonIgnore
public List<RoutingEntry> getAllRoutingEntries() {
  List<RoutingEntry> all = new ArrayList<>();
  if (handlers != null) {
    Collections.addAll(all, handlers);
  }
  return all;
}
 
源代码18 项目: qemu-java   文件: CpuModelCompareInfo.java
@JsonIgnore
@Override
public java.util.List<java.lang.String> getFieldNames() {
	java.util.List<java.lang.String> names = super.getFieldNames();
	names.add("result");
	names.add("responsible-properties");
	return names;
}
 
源代码19 项目: Knowage-Server   文件: MeasureCatalogueMeasure.java
/**
 * Get the hierarchies of the associated dataset
 * @return
 */
@JsonIgnore
public Set<HierarchyWrapper> getHierarchies(){
	Set<HierarchyWrapper> hierarchies = new HashSet<HierarchyWrapper>();
	for (Iterator<MeasureCatalogueDimension> iterator = datasetDimensions.iterator(); iterator.hasNext();) {
		MeasureCatalogueDimension dimensionWrapper = (MeasureCatalogueDimension) iterator.next();
		hierarchies.add(dimensionWrapper.getHierarchy());
	}
	return hierarchies;
}
 
源代码20 项目: qemu-java   文件: CpuInfoS390.java
@JsonIgnore
@Override
public java.util.List<java.lang.String> getFieldNames() {
	java.util.List<java.lang.String> names = super.getFieldNames();
	names.add("cpu-state");
	return names;
}
 
源代码21 项目: sdk-rest   文件: CorporateUser.java
@JsonIgnore
public void setOccupation(String occupation) {
	this.occupation = occupation;
}
 
源代码22 项目: Wikidata-Toolkit   文件: TimeValueImpl.java
@JsonIgnore
@Override
public byte getSecond() {
	return this.value.getSecond();
}
 
源代码23 项目: TelegramBots   文件: SendChatAction.java
@JsonIgnore
public ActionType getAction() {
    return ActionType.get(action);
}
 
源代码24 项目: green_android   文件: TransactionData.java
@JsonIgnore
public String getAddressee() {
    return getAddressees().isEmpty() ? "" : getAddressees().get(0);
}
 
源代码25 项目: ltr4l   文件: AbstractSVM.java
@JsonIgnore
public boolean dataIsSVMFormat() {
  return getBoolean(params, "isSVMData", false);
}
 
源代码26 项目: dremio-oss   文件: UnorderedReceiver.java
@JsonIgnore
public List<MinorFragmentIndexEndpoint> getProvidingEndpoints() {
  return senders;
}
 
@JsonIgnore
@Override
public String getToken() {
  return getAccessToken();
}
 
@JsonIgnore
@Override
default Map<String, String> getSourceFileFields() {
    return ImmutableMap.of("source", "Output files (.zip)");
}
 
@JsonIgnore
public boolean isEmpty()
{
	return elements.isEmpty();
}
 
源代码30 项目: quartz-redis-jobstore   文件: TriggerMixin.java
@JsonIgnore
public abstract JobKey getJobKey();