public final class AuditCertificate extends Object implements Serializable, LooselyBoundedCacheable
Constructor and Description |
---|
AuditCertificate()
Constructs an AuditCertificate.
|
AuditCertificate(long targetId,
long targetClassId,
boolean objectFreed,
long createDate,
long creatorId,
long domainId,
boolean secured,
long freeDate,
long deletorId,
String targetName,
String targetClassName)
Constructs an AuditCertificate.
|
Modifier and Type | Method and Description |
---|---|
void |
added(Object id)
Called when an instance is added to the cache.
|
boolean |
canPurge()
Gets whether the item can be purged from the
the BoundedCache.
|
Date |
getCreateDate()
Gets the date the target object was created.
|
long |
getCreatorId()
Gets the ID of the effective user that created the object.
|
long |
getDeletorId()
Gets the ID of the effective user that freed the object.
|
long |
getDomainId()
Gets the Domain identifier for the target object.
|
Date |
getFreeDate()
Gets the date the target object was freed.
|
long |
getTargetClassId()
Gets the Class ID of the target object.
|
String |
getTargetClassName()
Gets the name of the target object's class.
|
long |
getTargetId()
Gets the ID of the target object.
|
String |
getTargetName()
Gets the name of the target object.
|
boolean |
isObjectFreed()
Returns indication as to whether the object has been freed.
|
boolean |
isSecured()
Returns indication as to whether the certificate is secured.
|
void |
overrideTargetClassName(AuditExecutor executor,
String targetClass)
Sets the target's class name.
|
void |
overrideTargetName(AuditExecutor executor,
String targetName)
Sets the target name.
|
void |
removed(Object id)
Called when an instance is removed to the cache.
|
public AuditCertificate()
public AuditCertificate(long targetId, long targetClassId, boolean objectFreed, long createDate, long creatorId, long domainId, boolean secured, long freeDate, long deletorId, String targetName, String targetClassName) throws IfsException
targetId
- the target object IDtargetClassId
- the target object class IDobjectFreed
- whether the target object has been freedcreateDate
- the time the target object was createdcreatorId
- the ID of the user that created the target objectdomainId
- the ID of the domain context for the target objectsecured
- whether the certificate is considered securedfreeDate
- the time the target object was freeddeletorId
- the ID of the user that freed the target objecttargetName
- the name of the target objecttargetClassName
- the name of the target object's classIfsException
public long getTargetId()
public long getTargetClassId()
public boolean isObjectFreed()
public long getCreatorId()
public long getDomainId()
public boolean isSecured()
public Date getCreateDate()
public Date getFreeDate()
public long getDeletorId()
public String getTargetName()
public String getTargetClassName()
public boolean canPurge() throws IfsException
The caller of this method indicates a desire to purge the object. The implementation should treat this as a purge request, but can return false if the item should not be purged.
canPurge
in interface LooselyBoundedCacheable
IfsException
- if operation fails.public void added(Object id)
added
in interface LooselyBoundedCacheable
id
- the id used for this entry in the cachepublic void removed(Object id)
removed
in interface LooselyBoundedCacheable
id
- the id used for this entry in the cachepublic void overrideTargetName(AuditExecutor executor, String targetName)
This is called before returning a certificate for an object that is not yet freed.
executor
- the executor constructing this event;
must not be nulltargetName
- the name of the target objectpublic void overrideTargetClassName(AuditExecutor executor, String targetClass)
This is called before returning a certificate for an object that is not yet freed.
executor
- the executor constructing this event;
must not be nulltargetClass
- the class name of the target objectCopyright © 2023. All rights reserved.