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 Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Attachments
attachments
protected ChildOrder
childOrder
protected ContentState
contentState
protected Instant
createdTime
protected PrincipalKey
creator
protected PropertyTree
data
protected String
displayName
protected ExtraDatas
extraDatas
protected boolean
hasChildren
protected ContentId
id
protected EnumSet<ContentInheritType>
inherit
protected boolean
inheritPermissions
protected Locale
language
protected Long
manualOrderValue
protected Instant
modifiedTime
protected PrincipalKey
modifier
protected ContentName
name
protected ProjectName
originProject
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 String displayName
-
owner
protected PrincipalKey owner
-
createdTime
protected Instant createdTime
-
modifiedTime
protected Instant modifiedTime
-
publishInfo
protected ContentPublishInfo publishInfo
-
creator
protected PrincipalKey creator
-
modifier
protected PrincipalKey modifier
-
thumbnail
protected Thumbnail thumbnail
-
hasChildren
protected boolean hasChildren
-
inherit
protected EnumSet<ContentInheritType> inherit
-
originProject
protected ProjectName originProject
-
childOrder
protected ChildOrder childOrder
-
permissions
protected AccessControlList permissions
-
inheritPermissions
protected boolean inheritPermissions
-
language
protected Locale language
-
contentState
protected ContentState contentState
-
processedReferences
protected ContentIds.Builder processedReferences
-
workflowInfo
protected WorkflowInfo workflowInfo
-
manualOrderValue
protected Long manualOrderValue
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(Content source)
-
-
Method Detail
-
parentPath
public BUILDER parentPath(ContentPath path)
-
name
public BUILDER name(ContentName name)
-
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)
-
owner
public BUILDER owner(PrincipalKey owner)
-
creator
public BUILDER creator(PrincipalKey modifier)
-
modifier
public BUILDER modifier(PrincipalKey modifier)
-
publishInfo
public BUILDER publishInfo(ContentPublishInfo publishInfo)
-
hasChildren
public BUILDER hasChildren(boolean hasChildren)
-
setInherit
public BUILDER setInherit(Set<ContentInheritType> inherit)
-
originProject
public BUILDER originProject(ProjectName originProject)
-
childOrder
public BUILDER childOrder(ChildOrder childOrder)
-
permissions
public BUILDER permissions(AccessControlList permissions)
-
inheritPermissions
public BUILDER inheritPermissions(boolean inheritPermissions)
-
contentState
public BUILDER contentState(ContentState contentState)
-
processedReferences
public BUILDER processedReferences(ContentIds references)
-
workflowInfo
public BUILDER workflowInfo(WorkflowInfo workflowInfo)
-
build
public Content build()
-
-