@Immutable public abstract class AbstractBaseObject extends Object implements IObject
IObject that handles everything
except IHasObjectType.getObjectType(), Object.equals(Object) and
Object.hashCode().| Constructor and Description |
|---|
AbstractBaseObject(IObject aObject) |
AbstractBaseObject(String sID,
org.joda.time.LocalDateTime aCreationDT,
String sCreationUserID,
org.joda.time.LocalDateTime aLastModificationDT,
String sLastModificationUserID,
org.joda.time.LocalDateTime aDeletionDT,
String sDeletionUserID) |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.LocalDateTime |
getCreationDateTime() |
String |
getCreationUserID() |
org.joda.time.LocalDateTime |
getDeletionDateTime() |
String |
getDeletionUserID() |
String |
getID() |
org.joda.time.LocalDateTime |
getLastModificationDateTime() |
String |
getLastModificationUserID() |
boolean |
isDeleted() |
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.LocalDateTime aDeletionDT,
String sDeletionUserID) |
void |
setLastModification(org.joda.time.LocalDateTime aLastModificationDT,
String sLastModificationUserID) |
com.helger.commons.state.EChange |
setUndeletion(org.joda.time.LocalDateTime aUndeletionDT,
String sUndeletionUserID) |
String |
toString() |
public AbstractBaseObject(@Nonnull @Nonempty String sID, @Nullable org.joda.time.LocalDateTime aCreationDT, @Nullable String sCreationUserID, @Nullable org.joda.time.LocalDateTime aLastModificationDT, @Nullable String sLastModificationUserID, @Nullable org.joda.time.LocalDateTime 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.LocalDateTime getCreationDateTime()
getCreationDateTime in interface com.helger.datetime.domain.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.LocalDateTime getLastModificationDateTime()
getLastModificationDateTime in interface com.helger.datetime.domain.IHasLastModificationDateTime@Nullable public final String getLastModificationUserID()
getLastModificationUserID in interface IHasLastModificationInfonull if
this object has not yet been modified.public final void setLastModification(@Nonnull org.joda.time.LocalDateTime aLastModificationDT, @Nonnull @Nonempty String sLastModificationUserID)
@Nullable public final org.joda.time.LocalDateTime getDeletionDateTime()
getDeletionDateTime in interface com.helger.datetime.domain.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 setDeletion(@Nonnull org.joda.time.LocalDateTime aDeletionDT, @Nonnull @Nonempty String sDeletionUserID)
@Nonnull public final com.helger.commons.state.EChange setUndeletion(@Nonnull org.joda.time.LocalDateTime aUndeletionDT, @Nonnull @Nonempty String sUndeletionUserID)
public final boolean isDeleted()
public final boolean isDeleted(@Nonnull org.joda.time.LocalDateTime aDT)
IObjectCopyright © 2014–2015 Philip Helger. All rights reserved.