|
|||||||||
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. |
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 |
isAuditableProperty(org.alfresco.service.namespace.QName qname)
|
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 |
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()
Method Detail |
---|
public static java.util.Set getAuditablePropertyQNames()
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 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 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 |