@Immutable public abstract class AbstractBaseObject extends Object implements IObject
IObject that handles everything
except IHasType.getTypeID(), Object.equals(Object) and Object.hashCode().| Constructor and Description |
|---|
AbstractBaseObject(IObject aObject) |
AbstractBaseObject(String sID,
org.joda.time.DateTime aCreationDT,
String sCreationUserID,
org.joda.time.DateTime aLastModificationDT,
String sLastModificationUserID,
org.joda.time.DateTime aDeletionDT,
String sDeletionUserID) |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
getCreationDateTime() |
String |
getCreationUserID() |
org.joda.time.DateTime |
getDeletionDateTime() |
String |
getDeletionUserID() |
String |
getID() |
org.joda.time.DateTime |
getLastModificationDateTime() |
String |
getLastModificationUserID() |
boolean |
isDeleted() |
boolean |
isDeleted(org.joda.time.DateTime aDT)
Check if the object was deleted at the specified date time.
|
boolean |
isDeleted(org.joda.time.LocalDateTime aDT)
Check if the object was deleted at the specified local date time.
|
com.helger.commons.state.EChange |
setDeletion(org.joda.time.DateTime aDeletionDT,
String sDeletionUserID) |
com.helger.commons.state.EChange |
setDeletionNow() |
void |
setLastModification(org.joda.time.DateTime aLastModificationDT,
String sLastModificationUserID) |
void |
setLastModificationNow() |
com.helger.commons.state.EChange |
setUndeletion(org.joda.time.DateTime aUndeletionDT,
String sUndeletionUserID) |
com.helger.commons.state.EChange |
setUndeletionNow() |
String |
toString() |
public AbstractBaseObject(@Nonnull@Nonempty String sID, @Nullable org.joda.time.DateTime aCreationDT, @Nullable String sCreationUserID, @Nullable org.joda.time.DateTime aLastModificationDT, @Nullable String sLastModificationUserID, @Nullable org.joda.time.DateTime aDeletionDT, @Nullable String sDeletionUserID)
@Nonnull @Nonempty public final String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nullable public final org.joda.time.DateTime getCreationDateTime()
getCreationDateTime in interface com.helger.datetime.IHasCreationDateTimegetCreationDateTime in interface IObjectnull-able creation date time of the object@Nullable public final String getCreationUserID()
getCreationUserID in interface IHasCreationInfogetCreationUserID in interface IObjectnull in
case of migrated content.@Nullable public final org.joda.time.DateTime getLastModificationDateTime()
getLastModificationDateTime in interface com.helger.datetime.IHasLastModificationDateTime@Nullable public final String getLastModificationUserID()
getLastModificationUserID in interface IHasLastModificationInfonull if
this object has not yet been modified.public final void setLastModificationNow()
public final void setLastModification(@Nonnull org.joda.time.DateTime aLastModificationDT, @Nonnull@Nonempty String sLastModificationUserID)
@Nullable public final org.joda.time.DateTime getDeletionDateTime()
getDeletionDateTime in interface com.helger.datetime.IHasDeletionDateTime@Nullable public final String getDeletionUserID()
getDeletionUserID in interface IHasDeletionInfonull if this
object has not yet been deleted.@Nonnull public final com.helger.commons.state.EChange setDeletionNow()
@Nonnull public final com.helger.commons.state.EChange setDeletion(@Nonnull org.joda.time.DateTime aDeletionDT, @Nonnull@Nonempty String sDeletionUserID)
@Nonnull public final com.helger.commons.state.EChange setUndeletionNow()
@Nonnull public final com.helger.commons.state.EChange setUndeletion(@Nonnull org.joda.time.DateTime aUndeletionDT, @Nonnull@Nonempty String sUndeletionUserID)
public final boolean isDeleted()
public final boolean isDeleted(@Nonnull org.joda.time.DateTime aDT)
IObjectpublic final boolean isDeleted(@Nonnull org.joda.time.LocalDateTime aDT)
IObjectCopyright © 2014–2015 Philip Helger. All rights reserved.