@NotThreadSafe @Entity public class WebCmsDomain extends com.foreach.across.modules.hibernate.business.SettableIdAuditableEntity<WebCmsDomain> implements WebCmsObject
WebCmsDomain represents a collection of other WebCmsObject entities.
Usually a domain represents an actual website or is linked to DNS records, however the domain
concept can be used for any arbitrary grouping of entities.| Modifier and Type | Class and Description |
|---|---|
static class |
WebCmsDomain.WebCmsDomainBuilder |
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_ID
Prefix that all object ids of a WebCmsDomain have.
|
static String |
NO_DOMAIN_KEY |
static WebCmsDomain |
NONE
Constant identifier for no-domain which is in fact a
null value. |
| Constructor and Description |
|---|
WebCmsDomain() |
WebCmsDomain(Long id,
Long newEntityId,
String objectId,
String createdBy,
Date createdDate,
String lastModifiedBy,
Date lastModifiedDate,
String name,
String domainKey,
String description,
Map<String,String> attributes,
boolean active) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String attributeKey) |
String |
getAttribute(String attributeKey,
String defaultValue) |
String |
getObjectId() |
boolean |
hasAttribute(String attributeKey) |
static boolean |
isNoDomain(WebCmsDomain domain) |
void |
setDomainKey(String domainKey)
Set the unique domain key for this domain.
|
void |
setObjectId(String objectId)
Manually set the unique object id.
|
String |
toString() |
getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDateequals, getNewEntityId, hashCode, isNew, setId, setNewEntityId, toDtoclone, finalize, getClass, notify, notifyAll, wait, wait, waitforObjectId, isNewpublic static final WebCmsDomain NONE
null value.public static final String NO_DOMAIN_KEY
public static final String COLLECTION_ID
public static boolean isNoDomain(WebCmsDomain domain)
domain - to checkNONE (null value)public String getObjectId()
getObjectId in interface WebCmsObjectpublic void setObjectId(String objectId)
objectId - to usepublic void setDomainKey(String domainKey)
domainKey - identifying the domainpublic final String getAttribute(String attributeKey)
public final String getAttribute(String attributeKey, String defaultValue)
public boolean hasAttribute(String attributeKey)
Copyright © 2020. All rights reserved.