Java 类com.fasterxml.jackson.annotation.JsonIgnore 实例源码

项目:spring-cloud-skipper    文件:Status.java   
@JsonIgnore
public String getPlatformStatusPrettyPrint() {
    List<AppStatus> appStatusList = getAppStatusList();
    StringBuffer statusMsg = new StringBuffer();

    for (AppStatus appStatus : appStatusList) {
        statusMsg.append("[" + appStatus.getDeploymentId() + "]");
        if (appStatus.getInstances().isEmpty()) {
            statusMsg.append(", State = [" + appStatus.getState() + "]");
        }
        else {
            statusMsg.append(", State = [");
            for (AppInstanceStatus appInstanceStatus : appStatus.getInstances().values()) {
                statusMsg.append(appInstanceStatus.getId() + "=" + appInstanceStatus.getState() + "\n");
            }
            statusMsg.setLength(statusMsg.length() - 1);
            statusMsg.append("]\n");
        }
    }
    return statusMsg.toString();
}
项目:vos_instagram_bots    文件:RequestLoginEmail.java   
/**
   * Constructor - RequestLoginEmail
   * this is the constructor for all request's params (mandatory and optional)
   * @param devicetoken
   * @param email
   * @param password
   * @param requesttrackingid
   * @return new RequestLoginEmail Object
   * @throws Exception
   */
  @JsonIgnore
  public RequestLoginEmail (
    String devicetoken,
    String email,
    String password,
    String requesttrackingid) throws Exception {

    this.device_token =
      devicetoken;
    this.email =
      email;
    this.password =
      password;
    this.request_tracking_id =
      requesttrackingid;
}
项目:smarti    文件:ComponentConfiguration.java   
@JsonIgnore
public final float getConfiguration(String key, float defaultValue) {
    Object value = configuration.get(key);
    if (value instanceof Float) {
        return ((Number) value).floatValue();
    } else if (value instanceof String || value instanceof Number) {
        try {
            //this will also convert things like 4.0 to 4 but fail for 4.1
            return new BigDecimal(value.toString()).floatValue();
        } catch (NumberFormatException e) {
            return defaultValue;
        }
    } else {
        return defaultValue;
    }
}
项目:vos_instagram_bots    文件:RequestUpdateFacebookInfo.java   
/**
   * Constructor - RequestUpdateFacebookInfo
   * this is the constructor for all request's params (mandatory and optional)
   * @param devicetoken
   * @param userid
   * @param accesstoken
   * @param fbaccesstoken
   * @param requesttrackingid
   * @return new RequestUpdateFacebookInfo Object
   * @throws Exception
   */
  @JsonIgnore
  public RequestUpdateFacebookInfo (
    String devicetoken,
    String userid,
    String accesstoken,
    String fbaccesstoken,
    String requesttrackingid) throws Exception {

    this.device_token =
      devicetoken;
    this.user_id =
      userid;
    this.access_token =
      accesstoken;
    this.fb_access_token =
      fbaccesstoken;
    this.request_tracking_id =
      requesttrackingid;
}
项目:dropwizard-atomix    文件:AtomixNode.java   
@JsonIgnore
public Node toNode() {
    return Node.builder(id)
            .withEndpoint(
                    Endpoint.from(endpoint.getHost(), endpoint.getPort()))
            .withType(Type.valueOf(type.toUpperCase(Locale.ENGLISH)))
            .build();
}
项目:Cognizant-Intelligent-Test-Scripter    文件:ObjectGroup.java   
@JsonIgnore
public T addObject() {
    String oName = "Object";
    int i = 0;
    String objectName;
    do {
        objectName = oName + i++;
    } while (getObjectByName(objectName) != null);

    return addObject(objectName);
}
项目:vos_instagram    文件:ResponseGetPostPhotoId.java   
@JsonIgnore
public void set (
  String request_tracking_id,
  String photo_id) {

  this.request_tracking_id = request_tracking_id;
  this.photo_id = photo_id;
}
项目:simple-hostel-management    文件:Reservation.java   
@JsonIgnore
public void computeStandardTotalPrice() {

    DateTime dtBegin = new DateTime(begin);
    DateTime dtEnd = new DateTime(end);
    DateTime dayBegin = new DateTime(dtBegin.getYear(), dtBegin.getMonthOfYear(), dtBegin.getDayOfMonth(), 0, 0, 0);
    DateTime dayEnd = new DateTime(dtEnd.getYear(), dtEnd.getMonthOfYear(), dtEnd.getDayOfMonth(), 0, 0, 0);

    Duration duration = new Duration(dayBegin, dayEnd);
    double price = getAccommodation().getPricePerDay() * duration.getStandardDays();
    totalPrice = Math.round(price * 100) / 100;
}
项目:Cognizant-Intelligent-Test-Scripter    文件:WebORObject.java   
@JsonIgnore
@Override
public Object getValueAt(int row, int column) {
    if (column == 0) {
        return attributes.get(row).getName();
    } else if (column == 1) {
        return attributes.get(row).getValue();
    }
    return null;
}
项目:vos_instagram_bots    文件:RequestLoginFacebook.java   
/**
   * Constructor - RequestLoginFacebook
   * this is the constructor for mandatory request's params only
   * @param devicetoken
   * @param fbaccesstoken
   * @return new RequestLoginFacebook Object
   * @throws Exception
   */
  @JsonIgnore
  public RequestLoginFacebook (
    String devicetoken,
    String fbaccesstoken) throws Exception {

    this.device_token =
      devicetoken;
    this.fb_access_token =
      fbaccesstoken;
}
项目:Cognizant-Intelligent-Test-Scripter    文件:WebORPage.java   
@JsonIgnore
@Override
public ObjectGroup<WebORObject> addObjectGroup() {
    String oName = "WObjectGroup";
    int i = 0;
    String objectName;
    do {
        objectName = oName + i++;
    } while (getObjectGroupByName(objectName) != null);

    return addObjectGroup(objectName);
}
项目:QDrill    文件:HBaseStoragePluginConfig.java   
@JsonIgnore
public Configuration getHBaseConf() {
  if (hbaseConf == null) {
    hbaseConf = HBaseConfiguration.create();
    if (config != null) {
      for (Map.Entry<String, String> entry : config.entrySet()) {
        hbaseConf.set(entry.getKey(), entry.getValue());
      }
    }
  }
  return hbaseConf;
}
项目:vos_instagram_bots    文件:RequestPostPhoto.java   
/**
 * setLongitude
 * @param longitude
 * @throws Exception
 */
@JsonIgnore
public void setLongitude (
  double longitude) throws Exception {

  this.longitude = longitude;
}
项目:vos_instagram    文件:ResponseLikePost.java   
@JsonIgnore
public void set (
  String request_tracking_id,
  long like_time) {

  this.request_tracking_id = request_tracking_id;
  this.like_time = like_time;
}
项目:Cognizant-Intelligent-Test-Scripter    文件:MobileORObject.java   
@JsonIgnore
@Override
public void removeFromParent() {
    changeSave();
    if (group.getObjects().size() == 1) {
        group.removeFromParent();
    } else {
        group.getObjects().remove(this);
        FileUtils.deleteFile(getRepLocation());
    }
}
项目:vos_instagram    文件:RequestSearchByEmail.java   
@Override
@JsonIgnore
public RequestSearchByEmail fromQueryString (
  Map<String, String[]> query) throws Exception {

  this.request_tracking_id = this.getString(kRequestTrackingIdName, query);
  this.device_token = this.getString(kDeviceTokenName, query);
  this.user_id = this.getString(kUserIdName, query);
  this.access_token = this.getString(kAccessTokenName, query);
  this.email = this.getString(kEmailName, query);

  return this;
}
项目:vos_instagram_bots    文件:RequestLoginEmail.java   
/**
 * setRequestTrackingId
 * @param requesttrackingid
 * @throws Exception
 */
@JsonIgnore
public void setRequestTrackingId (
  String requesttrackingid) throws Exception {

  this.request_tracking_id = requesttrackingid;
}
项目:vos_instagram    文件:ResponseGetUserPosts.java   
@JsonIgnore
public void set (
  String request_tracking_id,
  ResponseUserPost[] user_posts) {

  this.request_tracking_id = request_tracking_id;
  this.user_posts = user_posts;
}
项目:dremio-oss    文件:View.java   
@JsonIgnore
public boolean hasStar() {
  for (FieldType field : fields) {
    if (StarColumnHelper.isNonPrefixedStarColumn(field.getName())) {
      return true;
    }
  }
  return false;
}
项目:crnk-framework    文件:JacksonResourceFieldInformationProvider.java   
@Override
public Optional<Boolean> isIgnored(BeanAttributeInformation attributeDesc) {
    Optional<JsonIgnore> ignoreAnnotation = attributeDesc.getAnnotation(JsonIgnore.class);
    if (ignoreAnnotation.isPresent()) {
        return Optional.of(ignoreAnnotation.get().value());
    }
    return Optional.empty();
}
项目:vos_instagram    文件:RequestGetProfilePicture.java   
@Override
@JsonIgnore
public UUID getUserId () {

  try {

    return UUID.fromString(this.user_id);
  } catch (Exception e) {

    return super.getUserId();
  }
}
项目:vos_instagram    文件:ResponseFollower.java   
/**
 * Constructor - ResponseFollower
 * @param followerUserId
 * @param followTime
 * @return new ResponseFollower Object
 * @throws Exception
 */
@JsonIgnore
public ResponseFollower (
  String followerUserId,
  long followTime) throws Exception {

  this.follower_user_id = followerUserId;
  this.follow_time = followTime;
}
项目:loom    文件:OsItem.java   
@Override
@JsonIgnore
public String getQualifiedName() {
    String thisToProjectRelName = RelationshipUtil.getRelationshipNameBetweenLocalTypeIds(getProviderType(),
            getItemType().getLocalId(), OsProjectType.TYPE_LOCAL_ID);
    String thisToRegionRelName = RelationshipUtil.getRelationshipNameBetweenLocalTypeIds(getProviderType(),
            getItemType().getLocalId(), OsRegionType.TYPE_LOCAL_ID);
    Item project = getFirstConnectedItemWithRelationshipName(thisToProjectRelName);
    Item region = getFirstConnectedItemWithRelationshipName(thisToRegionRelName);
    String prefix = null;
    if (project != null) {
        prefix = project.getName();
    }
    if (region != null) {
        if (prefix == null) {
            prefix = region.getName();
        } else {
            prefix += "/" + region.getName();
        }
    }
    if (prefix != null) {
        qualifiedName = prefix + "/" + getName();
    }

    // if (project == null) {
    // if (region == null) {
    // qualifiedName = null;
    // } else {
    // qualifiedName = region.getName() + "/" + getName();
    // }
    // } else {
    // qualifiedName = project.getName() + "/" + region.getName() + "/" + getName();
    // }
    return qualifiedName;
}
项目:vos_instagram    文件:RequestSignupEmail.java   
@Override
@JsonIgnore
public String getMinRequestAsString () throws Exception {

  RequestSignupEmail minRequestSignupEmail = new RequestSignupEmail();

  minRequestSignupEmail.request_tracking_id = this.request_tracking_id;
  minRequestSignupEmail.device_token = this.device_token;
  minRequestSignupEmail.email = this.email;
  minRequestSignupEmail.password = this.password;
  minRequestSignupEmail.name = this.name;
  minRequestSignupEmail.profile_picture = "";

  return minRequestSignupEmail.toString();
}
项目:vos_instagram_bots    文件:RequestLoginEmail.java   
@Override
@JsonIgnore
protected String getName() throws Exception {

  return "login_email";
}
项目:spring-boot-readiness    文件:HealthResponse.java   
@JsonIgnore
public List<ChildStatus> getChildrenStatus() {
    return children.entrySet().stream()
            .map(ChildStatus::new)
            .collect(toList());
}
项目:email-service    文件:ApiKey.java   
@Override @JsonIgnore
public boolean isAccountNonExpired() {
    return true;
}
项目:spring-rest-commons-options    文件:CollectionResources.java   
@JsonIgnore
public Map<String, Resource> getResources() {
    return this.resources;
}
项目:hibernate-ogm-redis    文件:HashEntity.java   
@JsonIgnore
public boolean has(String column) {
    return properties.containsKey( column );
}
项目:SpaceInvasion-09-2017    文件:User.java   
@JsonIgnore
public void setScore(int score) {
    this.score = score;
}
项目:easycms    文件:Data.java   
@JsonIgnore
public Date getDate1() {
    return date1;
}
项目:vos_instagram    文件:ResponseRefreshAccessToken.java   
@Override
@JsonIgnore
protected ResponseRefreshAccessToken getThis () throws Exception {

  return this;
}
项目:springboot-rest-api-skeleton    文件:JwtUser.java   
@JsonIgnore
@Override
public boolean isCredentialsNonExpired() {
    return true;
}
项目:alexa    文件:Properties.java   
@JsonIgnore
public String getCapabilityId() {
    return capabilityId;
}
项目:dremio-oss    文件:AbstractGroupScan.java   
@JsonIgnore
public List<String> getTableSchemaPath(){
  return dataset.getName().getPathComponents();
}
项目:spring-jwt-starter    文件:JwtUser.java   
@JsonIgnore
@Override
public String getPassword() {
    return password;
}
项目:vos_instagram    文件:RequestSignupEmail.java   
@Override
@JsonIgnore
protected RequestSignupEmail getThis () throws Exception {

  return this;
}
项目:Cognizant-Intelligent-Test-Scripter    文件:WebORObject.java   
@JsonIgnore
@Override
public ObjectGroup<WebORObject> getParent() {
    return group;
}
项目:scoold    文件:Post.java   
@JsonIgnore
public List<Comment> getComments() {
    return this.comments;
}
项目:simulacron    文件:BoundTopic.java   
@JsonIgnore
StubStore getStubStore();