/** * Returns <code>true</code> if this is a publish lock.<p> * * @return <code>true</code> if this is a publish lock */ public boolean isPublish() { return m_type.isPublish(); }
/** * Returns <code>true</code> if this is a system (2nd level) lock.<p> * * @return <code>true</code> if this is a system (2nd level) lock */ public boolean isSystem() { return (isPublish() || (this == CmsLockType.SYSTEM_UNLOCKED)); }
/** * Returns <code>true</code> if this is a persistent lock that should be saved when the systems shuts down.<p> * * @return <code>true</code> if this is a persistent lock that should be saved when the systems shuts down */ public boolean isPersistent() { return (this == CmsLockType.EXCLUSIVE) || isPublish(); }
/** * Returns <code>true</code> if this is a publish lock.<p> * * @return <code>true</code> if this is a publish lock */ public boolean isPublish() { return m_type.isPublish(); }
/** * Returns <code>true</code> if this is a persistent lock that should be saved when the systems shuts down.<p> * * @return <code>true</code> if this is a persistent lock that should be saved when the systems shuts down */ public boolean isPersistent() { return (this == CmsLockType.EXCLUSIVE) || isPublish(); }
/** * Returns <code>true</code> if this is a system (2nd level) lock.<p> * * @return <code>true</code> if this is a system (2nd level) lock */ public boolean isSystem() { return (isPublish() || (this == CmsLockType.SYSTEM_UNLOCKED)); }