Package com.enonic.xp.content
Class Content.Builder<BUILDER extends Content.Builder>
- java.lang.Object
-
- com.enonic.xp.content.Content.Builder<BUILDER>
-
- Direct Known Subclasses:
Media.Builder
,PageTemplate.Builder
,Site.Builder
- Enclosing class:
- Content
public static class Content.Builder<BUILDER extends Content.Builder> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Attachments
attachments
protected ChildOrder
childOrder
protected ContentState
contentState
protected java.time.Instant
createdTime
protected PrincipalKey
creator
protected PropertyTree
data
protected java.lang.String
displayName
protected ExtraDatas
extraDatas
protected boolean
hasChildren
protected ContentId
id
protected boolean
inheritPermissions
protected java.util.Locale
language
protected java.time.Instant
modifiedTime
protected PrincipalKey
modifier
protected ContentName
name
protected PrincipalKey
owner
protected Page
page
protected ContentPath
parentPath
protected AccessControlList
permissions
protected ContentIds.Builder
processedReferences
protected ContentPublishInfo
publishInfo
protected Thumbnail
thumbnail
protected ContentTypeName
type
protected boolean
valid
protected WorkflowInfo
workflowInfo
-
Method Summary
-
-
-
Field Detail
-
id
protected ContentId id
-
data
protected PropertyTree data
-
page
protected Page page
-
valid
protected boolean valid
-
parentPath
protected ContentPath parentPath
-
name
protected ContentName name
-
type
protected ContentTypeName type
-
attachments
protected Attachments attachments
-
extraDatas
protected ExtraDatas extraDatas
-
displayName
protected java.lang.String displayName
-
owner
protected PrincipalKey owner
-
createdTime
protected java.time.Instant createdTime
-
modifiedTime
protected java.time.Instant modifiedTime
-
publishInfo
protected ContentPublishInfo publishInfo
-
creator
protected PrincipalKey creator
-
modifier
protected PrincipalKey modifier
-
thumbnail
protected Thumbnail thumbnail
-
hasChildren
protected boolean hasChildren
-
childOrder
protected ChildOrder childOrder
-
permissions
protected AccessControlList permissions
-
inheritPermissions
protected boolean inheritPermissions
-
language
protected java.util.Locale language
-
contentState
protected ContentState contentState
-
processedReferences
protected ContentIds.Builder processedReferences
-
workflowInfo
protected WorkflowInfo workflowInfo
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(Content source)
-
-
Method Detail
-
parentPath
public BUILDER parentPath(ContentPath path)
-
name
public BUILDER name(java.lang.String name)
-
name
public BUILDER name(ContentName name)
-
path
public BUILDER path(java.lang.String path)
-
path
public BUILDER path(ContentPath path)
-
valid
public BUILDER valid(boolean valid)
-
type
public BUILDER type(ContentTypeName type)
-
data
public BUILDER data(PropertyTree data)
-
attachments
public BUILDER attachments(Attachments attachments)
-
extraDatas
public BUILDER extraDatas(ExtraDatas extraDatas)
-
displayName
public BUILDER displayName(java.lang.String displayName)
-
owner
public BUILDER owner(PrincipalKey owner)
-
creator
public BUILDER creator(PrincipalKey modifier)
-
modifier
public BUILDER modifier(PrincipalKey modifier)
-
createdTime
public BUILDER createdTime(java.time.Instant createdTime)
-
modifiedTime
public BUILDER modifiedTime(java.time.Instant modifiedTime)
-
publishInfo
public BUILDER publishInfo(ContentPublishInfo publishInfo)
-
hasChildren
public BUILDER hasChildren(boolean hasChildren)
-
childOrder
public BUILDER childOrder(ChildOrder childOrder)
-
permissions
public BUILDER permissions(AccessControlList permissions)
-
inheritPermissions
public BUILDER inheritPermissions(boolean inheritPermissions)
-
language
public BUILDER language(java.util.Locale language)
-
contentState
public BUILDER contentState(ContentState contentState)
-
processedReferences
public BUILDER processedReferences(ContentIds references)
-
workflowInfo
public BUILDER workflowInfo(WorkflowInfo workflowInfo)
-
build
public Content build()
-
-