@NotThreadSafe @Entity public class WebCmsComponent extends WebCmsObjectSuperClass<WebCmsComponent>
WebCmsAsset| Modifier and Type | Class and Description |
|---|---|
static interface |
WebCmsComponent.SharedComponentValidation
Marker interface for validation related to creating a globally shared component without a specific owner.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_ID
Prefix that all object ids of a WebCmsComponent have.
|
| Constructor and Description |
|---|
WebCmsComponent() |
WebCmsComponent(Long id,
Long newEntityId,
String objectId,
String createdBy,
Date createdDate,
String lastModifiedBy,
Date lastModifiedDate,
WebCmsDomain domain,
WebCmsComponentType componentType,
String ownerObjectId,
String name,
int sortIndex,
String title,
String body,
String metadata,
WebCmsComponent proxyTarget) |
| Modifier and Type | Method and Description |
|---|---|
WebCmsComponent |
asTemplate() |
protected String |
getObjectCollectionId() |
boolean |
hasOwner() |
boolean |
isProxyComponent() |
void |
setOwner(WebCmsObject owner)
Set the owner of this component, will use
WebCmsObject.getObjectId() to get the owner object id. |
String |
toString() |
getObjectId, setObjectIdgetCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDateequals, getNewEntityId, hashCode, isNew, setId, setNewEntityId, toDtoclone, finalize, getClass, notify, notifyAll, wait, wait, waitforObjectId, isNewgetDomain, setDomainpublic static final String COLLECTION_ID
public WebCmsComponent()
public WebCmsComponent(Long id, Long newEntityId, String objectId, String createdBy, Date createdDate, String lastModifiedBy, Date lastModifiedDate, WebCmsDomain domain, WebCmsComponentType componentType, String ownerObjectId, String name, int sortIndex, String title, String body, String metadata, WebCmsComponent proxyTarget)
public void setOwner(WebCmsObject owner)
WebCmsObject.getObjectId() to get the owner object id.owner - or null to detachpublic boolean hasOwner()
public boolean isProxyComponent()
protected String getObjectCollectionId()
getObjectCollectionId in class WebCmsObjectSuperClass<WebCmsComponent>public WebCmsComponent asTemplate()
Copyright © 2020. All rights reserved.