public class ObjectStateServiceImpl extends AbstractRegistrableService implements ObjectStateService
| Modifier and Type | Field and Description |
|---|---|
protected ContentService |
contentService |
protected GeneralLockService |
generalLockService |
protected ItemStateMapper |
itemStateMapper |
protected StudioConfiguration |
studioConfiguration |
protected State[][] |
transitionTable |
_servicesManager| Constructor and Description |
|---|
ObjectStateServiceImpl() |
getService, getServicesManager, setServicesManagerprotected State[][] transitionTable
protected ItemStateMapper itemStateMapper
protected GeneralLockService generalLockService
protected ContentService contentService
protected StudioConfiguration studioConfiguration
public void register()
register in class AbstractRegistrableServicepublic ItemState getObjectState(String site, String path)
getObjectState in interface ObjectStateServicepublic ItemState getObjectState(String site, String path, boolean insert)
getObjectState in interface ObjectStateServicepublic void setSystemProcessing(String site, String path, boolean isSystemProcessing)
setSystemProcessing in interface ObjectStateServicepublic void setSystemProcessingBulk(String site, List<String> paths, boolean isSystemProcessing)
setSystemProcessingBulk in interface ObjectStateServicepublic void transition(String site, ContentItemTO item, TransitionEvent event)
transition in interface ObjectStateServicepublic void transition(String site, String path, TransitionEvent event)
transition in interface ObjectStateServicepublic void deployCommitId(String site, String commitId)
deployCommitId in interface ObjectStateServicepublic void insertNewEntry(String site, ContentItemTO item)
insertNewEntry in interface ObjectStateServicepublic void insertNewEntry(String site, String path)
insertNewEntry in interface ObjectStateServicepublic List<ItemState> getSubmittedItems(String site)
getSubmittedItems in interface ObjectStateServicepublic void updateObjectPath(String site, String oldPath, String newPath)
updateObjectPath in interface ObjectStateServicepublic boolean isUpdated(String site, String path)
isUpdated in interface ObjectStateServicepublic boolean isUpdatedOrNew(String site, String path)
isUpdatedOrNew in interface ObjectStateServicepublic boolean isUpdatedOrSubmitted(String site, String path)
isUpdatedOrSubmitted in interface ObjectStateServicepublic boolean isSubmitted(String site, String path)
isSubmitted in interface ObjectStateServicepublic boolean isNew(String site, String path)
isNew in interface ObjectStateServicepublic boolean isFolderLive(String site, String folderPath)
isFolderLive in interface ObjectStateServicepublic boolean isScheduled(String site, String path)
isScheduled in interface ObjectStateServicepublic boolean isInWorkflow(String site, String path)
isInWorkflow in interface ObjectStateServicepublic List<ItemState> getChangeSet(String site)
getChangeSet in interface ObjectStateServicepublic void deleteObjectState(String objectId)
deleteObjectState in interface ObjectStateServicepublic void deleteObjectStateForPath(String site, String path)
deleteObjectStateForPath in interface ObjectStateServicepublic void deleteObjectStatesForFolder(String site, String path)
deleteObjectStatesForFolder in interface ObjectStateServicepublic void transitionBulk(String site, List<String> paths, TransitionEvent event, State defaultTargetState)
transitionBulk in interface ObjectStateServicepublic List<ItemState> getObjectStateByStates(String site, List<String> states)
getObjectStateByStates in interface ObjectStateServicepublic String setObjectState(String site, String path, String state, boolean systemProcessing)
setObjectState in interface ObjectStateServicepublic void deleteObjectStatesForSite(String site)
deleteObjectStatesForSite in interface ObjectStateServicepublic int getBulkOperationBatchSize()
public void setStateForSiteContent(String site, State state)
setStateForSiteContent in interface ObjectStateServicepublic List<String> getChangeSetForSubtree(String site, String path)
getChangeSetForSubtree in interface ObjectStateServicepublic boolean deletedPathExists(String site, String path)
deletedPathExists in interface ObjectStateServicepublic GeneralLockService getGeneralLockService()
public void setGeneralLockService(GeneralLockService generalLockService)
public ContentService getContentService()
public void setContentService(ContentService contentService)
public StudioConfiguration getStudioConfiguration()
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
public ItemStateMapper getItemStateMapper()
public void setItemStateMapper(ItemStateMapper itemStateMapper)
Copyright © 2020 CrafterCMS. All rights reserved.