else if (filter.startsWith("locked:") && filter.length() > "locked:".length()) {
String lockOwner = StringUtils.trim(filter.substring("locked:".length()));
if ("me".equals(lockOwner))
q.withLockOwner(securityService.getUser());
else
q.withLockOwner(new UserImpl(lockOwner));
} else if (filter.startsWith("creator:") && filter.length() > "creator:".length()) {
String creator = StringUtils.trim(filter.substring("creator:".length()));
if ("me".equals(creator))
q.withCreator(securityService.getUser());
else
q.withCreator(new UserImpl(creator));
} else if (filter.startsWith("modifier:") && filter.length() > "modifier:".length()) {
String modifier = StringUtils.trim(filter.substring("modifier:".length()));
if ("me".equals(modifier))
q.withModifier(securityService.getUser());
else
q.withModifier(new UserImpl(modifier));
} else if (filter.startsWith("publisher:") && filter.length() > "publisher:".length()) {
String publisher = StringUtils.trim(filter.substring("publisher:".length()));
if ("me".equals(publisher))
q.withPublisher(securityService.getUser());
else
q.withPublisher(new UserImpl(publisher));
}
// by date
else if (filter.startsWith("created:") && filter.length() > "created:".length()) {