Class Folder
java.lang.Object
com.broadleafcommerce.asset.domain.Folder
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class Folder
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 Asset 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). These folders are not on display in the admin Product page by default. They are only in the global asset library.
- Author:
- Samarth Dhruva
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional attributes of the folder.User who created this folder.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.getId()
The context ID of the folder.Date the folder was last updated.getName()
The user facing name of this folder.int
hashCode()
void
setAttributes
(Map<String, Attribute> attributes) Additional attributes of the folder.void
User who created this folder.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
The context ID of the folder.void
setLastUpdatedDate
(Instant lastUpdatedDate) Date the folder was last updated.void
The user facing name of this folder.void
setParentFolderId
(String parentFolderId) toString()
-
Constructor Details
-
Folder
public Folder()
-
-
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
-
getLastUpdatedDate
Date the folder was last updated.- Returns:
- the lastUpdatedDate for this folder
-
getAuthor
User who created this folder.- Returns:
- the author for 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 ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information 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
-
setLastUpdatedDate
Date the folder was last updated.- Parameters:
lastUpdatedDate
- the value to set as the lastUpdatedDate for this folder
-
setAuthor
User who created this folder.- Parameters:
author
- the value to set as the author for 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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-