public class GetChangeLog extends XMLRequest implements java.lang.Iterable<GetChangeLog.Entry>
Modifier and Type | Class and Description |
---|---|
static class |
GetChangeLog.Entry
Represents a row in the result of the change list.
|
Constructor and Description |
---|
GetChangeLog()
Creates a new
GetChangeLog request without filters (everything is returned). |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<GetChangeLog.Entry> |
iterator() |
void |
selectAllChangeTypes()
Select all types of changes.
|
void |
selectAllObjects()
Select all object types.
|
boolean |
setChangeType(java.lang.String type,
boolean value)
Sets the filter for the type of the change (Object modified, Objects created, ...).
|
void |
setFirstNameFilter(java.lang.String firstNameFilter)
Sets the filter for the first name of the user who did the change.
|
void |
setLastNameFilter(java.lang.String lastNameFilter)
Sets the filter for the last name of the user who did the change.
|
void |
setMaxResultCount(int max)
Sets the maximum number of rows in the returned result list.
|
void |
setMessagesBefore(DateTime offsetTimestamp)
Sets a filter for the message timestamp.
|
void |
setObjectName(java.lang.String objectName)
Sets a filter for the object name.
|
boolean |
setObjectType(java.lang.String objectType,
boolean value)
Sets the filter for object types.
|
void |
setUserObjectName(java.lang.String userObjectName)
Sets a filter for the object name of the user who did the change (for example USER/DEPARTMENT).
|
int |
size()
Returns the number of rows in the result list.
|
void |
unselectAllChangeTypes()
Unselect all types of changes.
|
void |
unselectAllObjects()
Unselect all object types.
|
getMessageBox, getRequestID, handleResponse, send
public GetChangeLog()
GetChangeLog
request without filters (everything is returned).
The setter methods in this class can be used set filters.public java.util.Iterator<GetChangeLog.Entry> iterator()
iterator
in interface java.lang.Iterable<GetChangeLog.Entry>
public int size()
public void setMaxResultCount(int max)
max
- Max number of rows or zero to disable the limit.public void setMessagesBefore(DateTime offsetTimestamp)
offsetTimestamp
- Max date and timepublic void setUserObjectName(java.lang.String userObjectName)
userObjectName
- Filter for User objectpublic void setFirstNameFilter(java.lang.String firstNameFilter)
firstNameFilter
- First name filter, max. 20 characterspublic void setLastNameFilter(java.lang.String lastNameFilter)
lastNameFilter
- Last name, max. 20 characterspublic void setObjectName(java.lang.String objectName)
objectName
- Filter for the object namepublic boolean setChangeType(java.lang.String type, boolean value)
type
- Possible values are:
value
- true to enable the filter for the specified type and false to disable it.public void unselectAllChangeTypes()
public void selectAllChangeTypes()
public void selectAllObjects()
public void unselectAllObjects()
public boolean setObjectType(java.lang.String objectType, boolean value)
objectType
- Object type, for example JOBS or JOBPvalue
- true to enable the filter for the specified object type or false to disable it.