Search in sources :

Example 1 with XWikiToStringBuilder

use of org.xwiki.text.XWikiToStringBuilder in project xwiki-platform by xwiki.

the class UsersAndGroupsSource method toString.

@Override
public String toString() {
    ToStringBuilder builder = new XWikiToStringBuilder(this);
    builder.append("includedUserAndGroupsReferences", getIncludedUserAndGroupReferences());
    builder.append("excludedUserAndGroupsReferences", getExcludedUserAndGroupReferences());
    builder.append("includedAddresses", getIncludedAddresses());
    builder.append("excludedAddresses", getExcludedAddresses());
    return builder.toString();
}
Also used : XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder) ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder)

Example 2 with XWikiToStringBuilder

use of org.xwiki.text.XWikiToStringBuilder in project xwiki-platform by xwiki.

the class EventsAndSubscribersSource method toString.

@Override
public String toString() {
    ToStringBuilder builder = new XWikiToStringBuilder(this);
    builder.append(EVENTS_PARAMETER, getEvents());
    builder.append(SUBSCRIBERS_PARAMETER, getSubscribers());
    return builder.toString();
}
Also used : XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder) ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder)

Example 3 with XWikiToStringBuilder

use of org.xwiki.text.XWikiToStringBuilder in project xwiki-platform by xwiki.

the class VfsResourceReference method toString.

@Override
public String toString() {
    ToStringBuilder builder = new XWikiToStringBuilder(this);
    builder.append("uri", getURI());
    builder.append("path", getPath());
    builder.append("parameters", getParameters());
    return builder.toString();
}
Also used : XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder) ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder)

Example 4 with XWikiToStringBuilder

use of org.xwiki.text.XWikiToStringBuilder in project xwiki-platform by xwiki.

the class AbstractMailQueueItem method prepareToString.

protected ToStringBuilder prepareToString() {
    ToStringBuilder builder = new XWikiToStringBuilder(this);
    builder.append("batchId", getBatchId());
    return builder;
}
Also used : XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder) ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder)

Example 5 with XWikiToStringBuilder

use of org.xwiki.text.XWikiToStringBuilder in project xwiki-platform by xwiki.

the class MailStatus method toString.

@Override
public String toString() {
    ToStringBuilder builder = new XWikiToStringBuilder(this);
    builder.append("messageId", getMessageId());
    builder.append("batchId", getBatchId());
    builder.append("state", getState());
    builder.append("date", getDate());
    builder.append("recipients", getRecipients());
    if (getType() != null) {
        builder.append("type", getType());
    }
    if (getErrorSummary() != null) {
        builder.append("errorSummary", getErrorSummary());
    }
    if (getErrorDescription() != null) {
        builder.append("errorDescription", getErrorDescription());
    }
    if (getWiki() != null) {
        builder.append("wiki", getWiki());
    }
    return builder.toString();
}
Also used : XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder) ToStringBuilder(org.apache.commons.lang3.builder.ToStringBuilder) XWikiToStringBuilder(org.xwiki.text.XWikiToStringBuilder)

Aggregations

ToStringBuilder (org.apache.commons.lang3.builder.ToStringBuilder)7 XWikiToStringBuilder (org.xwiki.text.XWikiToStringBuilder)7