|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.node.AuditablePropertiesEntity
public class AuditablePropertiesEntity
Class holding properties associated with the cm:auditable aspect. This aspect is common enough to warrant direct inclusion on the Node entity.
Constructor Summary | |
---|---|
AuditablePropertiesEntity()
Default constructor with all null values. |
|
AuditablePropertiesEntity(AuditablePropertiesEntity that)
Copy constructor to create an unlocked instance |
Method Summary | |
---|---|
java.util.Map |
getAuditableProperties()
|
java.io.Serializable |
getAuditableProperty(org.alfresco.service.namespace.QName qname)
|
static java.util.Set |
getAuditablePropertyQNames()
|
java.lang.String |
getAuditAccessed()
For persistance use |
java.lang.String |
getAuditCreated()
For persistance use |
java.lang.String |
getAuditCreator()
For persistance use |
java.lang.String |
getAuditModified()
For persistance use |
java.lang.String |
getAuditModifier()
For persistance use |
static boolean |
hasAuditableAspect(org.alfresco.service.namespace.QName typeQName,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
|
static boolean |
hasAuditableProperty(java.util.Set qnames)
|
static boolean |
isAuditableProperty(org.alfresco.service.namespace.QName qname)
|
void |
lock()
Lock the entity against further updates to prevent accidental modification |
void |
setAuditAccessed(java.lang.String auditAccessed)
For persistance use |
void |
setAuditCreated(java.lang.String auditCreated)
For persistance use |
void |
setAuditCreator(java.lang.String auditCreator)
For persistance use |
boolean |
setAuditModified(java.util.Date date,
long modifiedDateToleranceMs)
|
void |
setAuditModified(java.lang.String auditModified)
For persistance use |
void |
setAuditModifier(java.lang.String auditModifier)
For persistance use |
boolean |
setAuditValues(java.lang.String user,
java.util.Date date,
boolean force,
long modifiedDateToleranceMs)
Set all cm:auditable parameters as required. |
boolean |
setAuditValues(java.lang.String user,
java.util.Date date,
java.util.Map properties)
Set all cm:auditable parameters as required, giving precedence to the supplied property map. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AuditablePropertiesEntity()
public AuditablePropertiesEntity(AuditablePropertiesEntity that)
Method Detail |
---|
public static java.util.Set getAuditablePropertyQNames()
public static boolean hasAuditableProperty(java.util.Set qnames)
qnames
- the property names to check
public static boolean isAuditableProperty(org.alfresco.service.namespace.QName qname)
public static boolean hasAuditableAspect(org.alfresco.service.namespace.QName typeQName, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
typeQName
- a node type
public java.lang.String toString()
toString
in class java.lang.Object
public void lock()
public java.io.Serializable getAuditableProperty(org.alfresco.service.namespace.QName qname)
qname
- the property name
public java.util.Map getAuditableProperties()
public boolean setAuditValues(java.lang.String user, java.util.Date date, boolean force, long modifiedDateToleranceMs)
user
- the username; null to use the
fully-authenticated user
date
- the creation or modification date; null to use the current system timeforce
- true to force the values to overwrite any pre-existing valuesmodifiedDateToleranceMs
- the number of milliseconds' to tolerate before updating the
modification date.
Setting this to 1000L (say) will mean that the modification time will not be
changed if the existing value is withing 1000 ms of the new time.
public boolean setAuditValues(java.lang.String user, java.util.Date date, java.util.Map properties)
user
- the usernamedate
- the creation or modification dateproperties
- the properties to override the user and date
public java.lang.String getAuditCreator()
public void setAuditCreator(java.lang.String auditCreator)
public java.lang.String getAuditCreated()
public void setAuditCreated(java.lang.String auditCreated)
public java.lang.String getAuditModifier()
public void setAuditModifier(java.lang.String auditModifier)
public java.lang.String getAuditModified()
public void setAuditModified(java.lang.String auditModified)
public boolean setAuditModified(java.util.Date date, long modifiedDateToleranceMs)
modifiedDateToleranceMs
- the number of milliseconds' to tolerate before updating the
modification date.
Setting this to 1000L (say) will mean that the modification time will not be
changed if the existing value is withing 1000 ms of the new time.
public java.lang.String getAuditAccessed()
public void setAuditAccessed(java.lang.String auditAccessed)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |