Class BwOwnedDbentity<T>

Type Parameters:
T -
All Implemented Interfaces:
Serializable, Comparable<T>, OwnedEntity, org.bedework.util.logging.Logged
Direct Known Subclasses:
BwAlarm, BwPreferences, BwShareableDbentity

public abstract class BwOwnedDbentity<T> extends BwDbentity<T> implements OwnedEntity
Base class for database entities with an owner.
Version:
1.0
Author:
Mike Douglass
See Also:
  • Constructor Details

    • BwOwnedDbentity

      public BwOwnedDbentity()
      No-arg constructor
  • Method Details

    • setOwnerHref

      public void setOwnerHref(String val)
      Description copied from interface: OwnedEntity
      Set the owner
      Specified by:
      setOwnerHref in interface OwnedEntity
      Parameters:
      val - String owner path of the entity e.g. /principals/users/jim
    • getOwnerHref

      public String getOwnerHref()
      Specified by:
      getOwnerHref in interface OwnedEntity
      Returns:
      String owner of the entity
    • setPublick

      public void setPublick(Boolean val)
      Specified by:
      setPublick in interface OwnedEntity
      Parameters:
      val - public/not public
    • getPublick

      public Boolean getPublick()
      Specified by:
      getPublick in interface OwnedEntity
      Returns:
      Boolean true for public
    • toStringSegment

      protected void toStringSegment(org.bedework.util.misc.ToString ts)
      Add our stuff to the ToString object
      Overrides:
      toStringSegment in class BwUnversionedDbentity<T>
      Parameters:
      ts - ToString for result
    • shallowCopyTo

      public void shallowCopyTo(BwOwnedDbentity<?> val)
      Copy this objects fields into the parameter. Don't clone many of the referenced objects
      Parameters:
      val - to copy to
    • copyTo

      public void copyTo(BwOwnedDbentity<?> val)
      Copy this objects fields into the parameter
      Parameters:
      val - to copy to