Java Code Examples for com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion#NON_NULL

The following examples show how to use com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion#NON_NULL . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Results.java    From usergrid with Apache License 2.0 6 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public EntityRef getRef() {
    if ( ref != null ) {
        return ref;
    }
    ref = getEntity();
    if ( ref != null ) {
        return ref;
    }
    UUID u = getId();
    if ( u != null ) {
        String type= null;
        if(refs!=null && refs.size()>0){
            type = refs.get(0).getType();
        }
        return ref( type,u );
    }
    return null;
}
 
Example 2
Source File: Application.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public String getClientId() {
    return clientId;
}
 
Example 3
Source File: Folder.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public UUID getOwner() {
    return owner;
}
 
Example 4
Source File: AggregateCounterSet.java    From apigee-android-sdk with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public String getName() {
	return name;
}
 
Example 5
Source File: User.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public List<UUID> getActivities() {
    return activities;
}
 
Example 6
Source File: ApiResponse.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonProperty( "error_id" )
@JsonSerialize( include = Inclusion.NON_NULL )
public UUID getErrorId() {
    return errorId;
}
 
Example 7
Source File: ApiResponse.java    From apigee-android-sdk with Apache License 2.0 4 votes vote down vote up
/**
 * Returns the OAuth refresh token that was sent with the request
 *
 * @return the OAuth token
 */
@JsonProperty("refresh_token")
@JsonSerialize(include = Inclusion.NON_NULL)
public String getRefreshToken() {
    return refreshToken;
}
 
Example 8
Source File: Group.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public Map<String, String> getRolenames() {
    return rolenames;
}
 
Example 9
Source File: Activity.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public String getUrl() {
    return url;
}
 
Example 10
Source File: ApiResponse.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize( include = Inclusion.NON_NULL )
public String getCallback() {
    return callback;
}
 
Example 11
Source File: ApiResponse.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize( include = Inclusion.NON_NULL )
public String getAction() {
    return action;
}
 
Example 12
Source File: Activity.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public Date getPublished() {
    return published;
}
 
Example 13
Source File: Application.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public List<UUID> getEvents() {
    return events;
}
 
Example 14
Source File: Group.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public List<UUID> getRoles() {
    return roles;
}
 
Example 15
Source File: Application.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public Map<String, OAuthProvider> getOauthproviders() {
    return oauthproviders;
}
 
Example 16
Source File: Application.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public Set<String> getCollections() {
    return collections;
}
 
Example 17
Source File: RestVariable.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@JsonSerialize(include = Inclusion.NON_NULL)
public String getValueUrl() {
  return valueUrl;
}
 
Example 18
Source File: ApiResponse.java    From apigee-android-sdk with Apache License 2.0 2 votes vote down vote up
/**
 * For requests to retrieve the admin users in an organization, returns 
 * the 'user' property from the response.
 *
 * @return  a User object
 */
@JsonSerialize(include = Inclusion.NON_NULL)
public User getUser() {
	return user;
}
 
Example 19
Source File: ApiResponse.java    From apigee-android-sdk with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the counters from the response.
 *
 * @return a List of the counters
 */
@JsonSerialize(include = Inclusion.NON_NULL)
public List<AggregateCounterSet> getCounters() {
	return counters;
}
 
Example 20
Source File: ApiResponse.java    From apigee-android-sdk with Apache License 2.0 2 votes vote down vote up
/**
 * For messaging queue requests, returns the 'messages' property.
 *
 * @return  the 'messages' property
 */
@JsonSerialize(include = Inclusion.NON_NULL)
public List<Message> getMessages() {
	return messages;
}