@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(); }
/** * 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; }
@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; } }
/** * 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; }
@JsonIgnore public Node toNode() { return Node.builder(id) .withEndpoint( Endpoint.from(endpoint.getHost(), endpoint.getPort())) .withType(Type.valueOf(type.toUpperCase(Locale.ENGLISH))) .build(); }
@JsonIgnore public T addObject() { String oName = "Object"; int i = 0; String objectName; do { objectName = oName + i++; } while (getObjectByName(objectName) != null); return addObject(objectName); }
@JsonIgnore public void set ( String request_tracking_id, String photo_id) { this.request_tracking_id = request_tracking_id; this.photo_id = photo_id; }
@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; }
@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; }
/** * 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; }
@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); }
@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; }
/** * setLongitude * @param longitude * @throws Exception */ @JsonIgnore public void setLongitude ( double longitude) throws Exception { this.longitude = longitude; }
@JsonIgnore public void set ( String request_tracking_id, long like_time) { this.request_tracking_id = request_tracking_id; this.like_time = like_time; }
@JsonIgnore @Override public void removeFromParent() { changeSave(); if (group.getObjects().size() == 1) { group.removeFromParent(); } else { group.getObjects().remove(this); FileUtils.deleteFile(getRepLocation()); } }
@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; }
/** * setRequestTrackingId * @param requesttrackingid * @throws Exception */ @JsonIgnore public void setRequestTrackingId ( String requesttrackingid) throws Exception { this.request_tracking_id = requesttrackingid; }
@JsonIgnore public void set ( String request_tracking_id, ResponseUserPost[] user_posts) { this.request_tracking_id = request_tracking_id; this.user_posts = user_posts; }
@JsonIgnore public boolean hasStar() { for (FieldType field : fields) { if (StarColumnHelper.isNonPrefixedStarColumn(field.getName())) { return true; } } return false; }
@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(); }
@Override @JsonIgnore public UUID getUserId () { try { return UUID.fromString(this.user_id); } catch (Exception e) { return super.getUserId(); } }
/** * 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; }
@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; }
@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(); }
@Override @JsonIgnore protected String getName() throws Exception { return "login_email"; }
@JsonIgnore public List<ChildStatus> getChildrenStatus() { return children.entrySet().stream() .map(ChildStatus::new) .collect(toList()); }
@Override @JsonIgnore public boolean isAccountNonExpired() { return true; }
@JsonIgnore public Map<String, Resource> getResources() { return this.resources; }
@JsonIgnore public boolean has(String column) { return properties.containsKey( column ); }
@JsonIgnore public void setScore(int score) { this.score = score; }
@JsonIgnore public Date getDate1() { return date1; }
@Override @JsonIgnore protected ResponseRefreshAccessToken getThis () throws Exception { return this; }
@JsonIgnore @Override public boolean isCredentialsNonExpired() { return true; }
@JsonIgnore public String getCapabilityId() { return capabilityId; }
@JsonIgnore public List<String> getTableSchemaPath(){ return dataset.getName().getPathComponents(); }
@JsonIgnore @Override public String getPassword() { return password; }
@Override @JsonIgnore protected RequestSignupEmail getThis () throws Exception { return this; }
@JsonIgnore @Override public ObjectGroup<WebORObject> getParent() { return group; }
@JsonIgnore public List<Comment> getComments() { return this.comments; }
@JsonIgnore StubStore getStubStore();