public class FailedAccessMongoDoc extends Object implements FailedAccess, Cloneable
Data transfer object of a FailedAccess.
| Constructor and Description |
|---|
FailedAccessMongoDoc()
Default constructor.
|
FailedAccessMongoDoc(FailedAccess failedAccess)
Constructs a clone of the specified
FailedAccess. |
FailedAccessMongoDoc(String resourceId,
String remoteHost)
Constructs an instance with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
FailedAccessMongoDoc |
clone() |
int |
compareTo(FailedAccess o) |
boolean |
equals(Object obj) |
int |
getCounter() |
Date |
getCreationDate() |
String |
getId() |
Date |
getModificationDate() |
String |
getRemoteHost() |
String |
getResourceId() |
int |
hashCode() |
void |
setCounter(int failedAccessCounter)
Sets the counter.
|
void |
setCreationDate(Date creationDate)
Sets the creation date.
|
void |
setId(String id)
Sets the ID.
|
void |
setModificationDate(Date modificationDate)
Sets the last modification date.
|
void |
setRemoteHost(String remoteHost)
Sets the remote host.
|
void |
setResourceId(String resourceId)
Sets the ID of the resource.
|
String |
toString() |
void |
update(FailedAccess failedAccess)
Updates this failed access by another one.
|
public FailedAccessMongoDoc()
public FailedAccessMongoDoc(String resourceId, String remoteHost)
resourceId - the ID of the resourceremoteHost - the remote hostpublic FailedAccessMongoDoc(FailedAccess failedAccess)
FailedAccess.failedAccess - the failed accesspublic FailedAccessMongoDoc clone()
public int compareTo(FailedAccess o)
compareTo in interface Comparable<FailedAccess>public void update(FailedAccess failedAccess)
failedAccess - another failed accesspublic String getId()
getId in interface FailedAccesspublic void setId(String id)
id - the IDpublic String getResourceId()
getResourceId in interface FailedAccesspublic void setResourceId(String resourceId)
resourceId - the ID of the resourcepublic String getRemoteHost()
getRemoteHost in interface FailedAccesspublic void setRemoteHost(String remoteHost)
remoteHost - the remote hostpublic int getCounter()
getCounter in interface FailedAccesspublic void setCounter(int failedAccessCounter)
failedAccessCounter - the counterpublic Date getCreationDate()
getCreationDate in interface FailedAccesspublic void setCreationDate(Date creationDate)
creationDate - the creation datepublic Date getModificationDate()
getModificationDate in interface FailedAccesspublic void setModificationDate(Date modificationDate)
modificationDate - the last modification dateCopyright © 2017 bremersee.org. All rights reserved.