Class ContentFolder
java.lang.Object
com.broadleafcommerce.content.domain.folder.ContentFolder
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
public class ContentFolder
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
A domain that is intended to replicate the concept of folders in a filesystem. Can hold ContentItems and other Folders.
This is only intended to be relevant in the admin - this is not a concept that is expected to be used in a storefront environment (no customer would ever see any representation of these folders).
- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAdditional attributes of the folder.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.getId()The context ID of the folder.getName()The user facing name of this folder.inthashCode()voidsetAttributes(Map<String, Attribute> attributes) Additional attributes of the folder.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidThe context ID of the folder.voidThe user facing name of this folder.voidsetParentFolderId(String parentFolderId) toString()
-
Constructor Details
-
ContentFolder
public ContentFolder()
-
-
Method Details
-
getId
The context ID of the folder.- Returns:
- the context ID of the folder
-
getName
The user facing name of this folder.- Returns:
- the user facing name of this folder
-
getParentFolderId
- Returns:
- the context ID of the parent folder (null if this is a root folder)
-
getAttributes
Additional attributes of the folder.- Returns:
- additional attributes of the folder
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setId
The context ID of the folder.- Parameters:
id- the context ID of the folder
-
setName
The user facing name of this folder.- Parameters:
name- the user facing name of this folder
-
setParentFolderId
- Parameters:
parentFolderId- the context ID of the parent folder (null if this is a root folder)
-
setAttributes
Additional attributes of the folder.- Parameters:
attributes- additional attributes of the folder
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-