@Override
public String toString() {
MapBuilder mb = new MapBuilder();
if (!isEmptyArray(users)) {
mb.append("users", new CollectionBuilder().appendAll(users).setOneLine(true));
}
if (!isEmptyArray(roles)) {
mb.append("roles", new CollectionBuilder().appendAll(roles).setOneLine(true));
}
if (!allowedActions.isEmpty()) {
mb.append("allow", new CollectionBuilder().appendAll(allowedActions).setOneLine(true));
}
if (!deniedActions.isEmpty()) {
mb.append("deny", new CollectionBuilder().appendAll(deniedActions).setOneLine(true));
}
return new ToStringBuilder().append("Grant").append(mb).toString();
}