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, setServicesManager
protected State[][] transitionTable
protected ItemStateMapper itemStateMapper
protected GeneralLockService generalLockService
protected ContentService contentService
protected StudioConfiguration studioConfiguration
public void register()
register
in class AbstractRegistrableService
public ItemState getObjectState(String site, String path)
getObjectState
in interface ObjectStateService
public ItemState getObjectState(String site, String path, boolean insert)
getObjectState
in interface ObjectStateService
public void setSystemProcessing(String site, String path, boolean isSystemProcessing)
setSystemProcessing
in interface ObjectStateService
public void setSystemProcessingBulk(String site, List<String> paths, boolean isSystemProcessing)
setSystemProcessingBulk
in interface ObjectStateService
public void transition(String site, ContentItemTO item, TransitionEvent event)
transition
in interface ObjectStateService
public void transition(String site, String path, TransitionEvent event)
transition
in interface ObjectStateService
public void deployCommitId(String site, String commitId)
deployCommitId
in interface ObjectStateService
public void insertNewEntry(String site, ContentItemTO item)
insertNewEntry
in interface ObjectStateService
public void insertNewEntry(String site, String path)
insertNewEntry
in interface ObjectStateService
public List<ItemState> getSubmittedItems(String site)
getSubmittedItems
in interface ObjectStateService
public void updateObjectPath(String site, String oldPath, String newPath)
updateObjectPath
in interface ObjectStateService
public boolean isUpdated(String site, String path)
isUpdated
in interface ObjectStateService
public boolean isUpdatedOrNew(String site, String path)
isUpdatedOrNew
in interface ObjectStateService
public boolean isUpdatedOrSubmitted(String site, String path)
isUpdatedOrSubmitted
in interface ObjectStateService
public boolean isSubmitted(String site, String path)
isSubmitted
in interface ObjectStateService
public boolean isNew(String site, String path)
isNew
in interface ObjectStateService
public boolean isFolderLive(String site, String folderPath)
isFolderLive
in interface ObjectStateService
public boolean isScheduled(String site, String path)
isScheduled
in interface ObjectStateService
public boolean isInWorkflow(String site, String path)
isInWorkflow
in interface ObjectStateService
public List<ItemState> getChangeSet(String site)
getChangeSet
in interface ObjectStateService
public void deleteObjectState(String objectId)
deleteObjectState
in interface ObjectStateService
public void deleteObjectStateForPath(String site, String path)
deleteObjectStateForPath
in interface ObjectStateService
public void deleteObjectStatesForFolder(String site, String path)
deleteObjectStatesForFolder
in interface ObjectStateService
public void transitionBulk(String site, List<String> paths, TransitionEvent event, State defaultTargetState)
transitionBulk
in interface ObjectStateService
public List<ItemState> getObjectStateByStates(String site, List<String> states)
getObjectStateByStates
in interface ObjectStateService
public String setObjectState(String site, String path, String state, boolean systemProcessing)
setObjectState
in interface ObjectStateService
public void deleteObjectStatesForSite(String site)
deleteObjectStatesForSite
in interface ObjectStateService
public int getBulkOperationBatchSize()
public void setStateForSiteContent(String site, State state)
setStateForSiteContent
in interface ObjectStateService
public List<String> getChangeSetForSubtree(String site, String path)
getChangeSetForSubtree
in interface ObjectStateService
public boolean deletedPathExists(String site, String path)
deletedPathExists
in interface ObjectStateService
public 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.