Package com.enonic.xp.content
Interface ContentService
-
@PublicApi public interface ContentService
-
-
Method Summary
-
-
-
Method Detail
-
create
Site create(CreateSiteParams params)
-
create
Content create(CreateContentParams params)
-
create
Content create(CreateMediaParams params)
-
update
Content update(UpdateContentParams params)
-
update
Content update(UpdateMediaParams params)
-
rename
Content rename(RenameContentParams params)
-
deleteWithoutFetch
DeleteContentsResult deleteWithoutFetch(DeleteContentParams params)
-
undoPendingDelete
int undoPendingDelete(UndoPendingDeleteContentParams params)
-
publish
PublishContentResult publish(PushContentParams params)
-
unpublishContent
UnpublishContentsResult unpublishContent(UnpublishContentParams params)
-
resolvePublishDependencies
CompareContentResults resolvePublishDependencies(ResolvePublishDependenciesParams params)
-
resolveRequiredDependencies
ContentIds resolveRequiredDependencies(ResolveRequiredDependenciesParams params)
-
isValidContent
@Deprecated boolean isValidContent(ContentIds contentIds)
Deprecated.
-
getInvalidContent
@Deprecated ContentIds getInvalidContent(ContentIds contentIds)
Deprecated.
-
getContentValidity
ContentValidityResult getContentValidity(ContentValidityParams params)
-
duplicate
DuplicateContentsResult duplicate(DuplicateContentParams params)
-
move
MoveContentsResult move(MoveContentParams params)
-
setChildOrder
Content setChildOrder(SetContentChildOrderParams params)
-
reorderChildren
ReorderChildContentsResult reorderChildren(ReorderChildContentsParams params)
-
hasUnpublishedChildren
Boolean hasUnpublishedChildren(HasUnpublishedChildrenParams params)
-
applyPermissions
ApplyContentPermissionsResult applyPermissions(ApplyContentPermissionsParams params)
-
getByIds
Contents getByIds(GetContentByIdsParams params)
-
getByPath
Content getByPath(ContentPath path)
-
getPermissionsById
AccessControlList getPermissionsById(ContentId contentId)
-
getByPaths
Contents getByPaths(ContentPaths paths)
-
findByParent
FindContentByParentResult findByParent(FindContentByParentParams params)
-
findIdsByParent
FindContentIdsByParentResult findIdsByParent(FindContentByParentParams params)
-
find
@Deprecated FindContentByQueryResult find(FindContentByQueryParams params)
Deprecated.
-
find
FindContentIdsByQueryResult find(ContentQuery query)
-
findByApplicationKey
Contents findByApplicationKey(ApplicationKey key)
-
findContentPaths
@Deprecated ContentPaths findContentPaths(ContentQuery query)
Deprecated.
-
findPaths
FindContentPathsByQueryResult findPaths(ContentQuery query)
-
compare
CompareContentResult compare(CompareContentParams params)
-
compare
CompareContentResults compare(CompareContentsParams params)
-
getPublishStatuses
GetPublishStatusesResult getPublishStatuses(GetPublishStatusesParams params)
-
getVersions
FindContentVersionsResult getVersions(FindContentVersionsParams params)
-
getActiveVersions
GetActiveContentVersionsResult getActiveVersions(GetActiveContentVersionsParams params)
-
getActiveVersion
ContentVersion getActiveVersion(GetActiveContentVersionParams params)
-
setActiveContentVersion
SetActiveContentVersionResult setActiveContentVersion(ContentId contentId, ContentVersionId versionId)
-
getBinary
ByteSource getBinary(ContentId contentId, BinaryReference binaryReference)
-
getBinary
ByteSource getBinary(ContentId contentId, ContentVersionId contentVersionId, BinaryReference binaryReference)
-
getBinaryInputStream
@Deprecated InputStream getBinaryInputStream(ContentId contentId, BinaryReference binaryReference)
Deprecated.
-
getBinaryKey
String getBinaryKey(ContentId contentId, BinaryReference binaryReference)
-
getRootPermissions
AccessControlList getRootPermissions()
-
getDependencies
ContentDependencies getDependencies(ContentId id)
-
getOutboundDependencies
ContentIds getOutboundDependencies(ContentId id)
-
contentExists
boolean contentExists(ContentId contentId)
-
contentExists
boolean contentExists(ContentPath contentPath)
-
getByIdAndVersionId
Content getByIdAndVersionId(ContentId contentId, ContentVersionId versionId)
-
getByPathAndVersionId
Content getByPathAndVersionId(ContentPath contentPath, ContentVersionId versionId)
-
importContent
ImportContentResult importContent(ImportContentParams params)
-
-