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 |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
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.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public GetChangeLog()
GetChangeLog
request without filters (everything is returned).
The setter methods in this class can be used set filters.protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
protected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
public java.util.Iterator<GetChangeLog.Entry> iterator()
iterator
in interface java.lang.Iterable<GetChangeLog.Entry>
protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwisepublic 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.