Click or drag to resize
FileSystemDeleteObjectsByTypeJob Class
Deletes objects of given object type missing in the repository but present in the database.
Inheritance Hierarchy

Namespace: CMS.ContinuousIntegration.Internal
Assembly: CMS.ContinuousIntegration (in CMS.ContinuousIntegration.dll) Version: 10.0.0
Syntax
C#
public class FileSystemDeleteObjectsByTypeJob : AbstractFileSystemTypeWideJob

The FileSystemDeleteObjectsByTypeJob type exposes the following members.

Constructors
  NameDescription
Public methodFileSystemDeleteObjectsByTypeJob
Creates a new instance of FileSystemDeleteObjectsByTypeJob that deletes all objects of given object type missing in the file system repository from the database.
Top
Properties
  NameDescription
Protected propertyRepositoryConfiguration
Gets the current instance of repository configuration
(Inherited from AbstractFileSystemJob.)
Protected propertyRepositoryPathHelper
Object for working with file paths in file system repository.
(Inherited from AbstractFileSystemJob.)
Protected propertyTranslationHelper
Provides object translation. Used in serialization to optimize database calls.
(Inherited from AbstractFileSystemJob.)
Protected propertyUseFileMetadata
Indicates whether objects' file meta-data are used or not (see FileMetadataInfo).
(Inherited from AbstractFileSystemJob.)
Top
Methods
  NameDescription
Protected methodCancellableForEachT(CancellationToken, IEnumerableT, ActionT)
Enumerates through collection checking cancellationToken before each iteration and performing action on each item in the collection.
(Inherited from AbstractFileSystemJob.)
Protected methodCancellableForEachT(CancellationToken, IEnumerableT, ActionT, Int32)
Enumerates through collection checking cancellationToken before each iteration and performing action on each item in the collection.
(Inherited from AbstractFileSystemJob.)
Protected methodCancellablyProcessQueueT
Process queue of objects using given function for processing every object in the queue. If the function returns null, object is considered as successfully processed. If function returns object, then the returned object is enqueued. Queue is iterated again while at least one object was successfully processed.
(Inherited from AbstractFileSystemTypeWideJob.)
Protected methodDeleteMissingObject
Deletes object that is missing in the repository from the database.
Protected methodGetNewJobWithSharedResourcesTJob
Gets new job of TJob using factoryJobGetter and initializes it with all properties used in InitializeWith``1(UMP, RepositoryPathHelper, ContinuousIntegrationTranslationHelper, FileSystemBindingsProcessor, IFileSystemWriter, ICachedFileSystemReader, SeparatedFieldProcessor, NullableBoolean, NullableBoolean) of the job calling this method.
(Inherited from AbstractFileSystemJob.)
Protected methodGetNewJobWithSharedResourcesAndHandlersTJob
Gets new job of TJob using factoryJobGetter and initializes it with all properties used in InitializeWith``1(UMP, RepositoryPathHelper, ContinuousIntegrationTranslationHelper, FileSystemBindingsProcessor, IFileSystemWriter, ICachedFileSystemReader, SeparatedFieldProcessor, NullableBoolean, NullableBoolean) and registers all handlers using SetLogProgressHandler``1(UMP, EventHandlerLogProgressEventArgs) of the job calling this method.
(Inherited from AbstractFileSystemProgressLoggingJob.)
Protected methodGetObjectFilePaths
Gets collection of all file locations that are used for serialization of given object.
Protected methodGetObjectInfoMessageFormat
Gets format of message informing about object's action.
(Inherited from AbstractFileSystemTypeWideJob.)
Protected methodGetObjectsInDatabase
Gets enumeration of all objects of given type. Only objects that are covered by continuous integration solution are returned.
Protected methodCheckContinuousIntegrationLicense
Check license requirement for Continuous Integration and throws LicenseException if they are not met.
(Inherited from AbstractFileSystemJob.)
Protected methodInitializeCancellationToken
If provided cancellationToken is not null, the token is used; otherwise, new CancellationToken is created so as the derived class does not need to -checked each token's use.
(Inherited from AbstractFileSystemJob.)
Protected methodRaiseLogProgress(LogItem)
Logs message to progress log.
(Inherited from AbstractFileSystemProgressLoggingJob.)
Protected methodRaiseLogProgress(String, LogItemTypeEnum, LogItemActionTypeEnum)
Logs message to progress log.
(Inherited from AbstractFileSystemProgressLoggingJob.)
Protected methodRegisterTranslationRecord
Registers a new translation record into TranslationHelper.
(Inherited from AbstractFileSystemJob.)
Protected methodRunInternal
Deletes all objects of given object type that are not present in the file system repository from the database.
(Overrides AbstractFileSystemTypeWideJobRunInternal(String, ISetRepositoryLocationsCollection, CancellationToken).)
Top
See Also