C# Class Glyma.UtilityService.SharePoint.UtilityServiceManager

Inheritance: IUtilityServiceManager
Mostra file Open project: chris-tomich/Glyma

Public Methods

Method Description
CreateExportJob ( System.Guid domainUid, System.Guid rootMapUid, string>.IDictionary exportProperties, MapType mapType, ExportType exportType ) : ExportJobResponse

Creates an ExportJob and schedules the WorkItem for the timer job that processes the exports.

DeleteExportJob ( ExportJob job ) : ExportJobResponse

Deletes an ExportJob if it's in the Scheduled, Completed, or Error ExportStates.

GetExportJobs ( System.Guid domainUid, System.Guid rootMapUid ) : ExportJobsResponse

Gets the ExportJobs for the particular allap schema types for a domain and root map.

GetExportJobsForMapType ( MapType mapType, System.Guid domainUid, System.Guid rootMapUid ) : ExportJobsResponse

Gets the ExportJobs for the particular map schema type for a domain and root map.

IsExportingAvailable ( ) : ExportAvailabilityResponse

Checks if the Glyma Export Timer Job exists in the current web pplicatio for the site.

Private Methods

Method Description
CleanupErrorWorkItems ( ExportJob job, SPSite site, SPWeb web ) : void

Deletes and of the TimerJob WorkItems for the GlymaExportWorkItemTimerJob if they still exist and are in error state.

CreateExportJobListEntry ( SPList exportsList, System.Guid domainId, System.Guid rootmapId, MapType mapType, ExportType type, System.Guid workItemId, string serializedExportProperties, int userId ) : int

Adds the SPListItem for the ExportJob to the GlymaExports lists if there isn't one already in the Scheduled ExportState for the exact same export.

GetCreatedTime ( SPList exportsList, int listItemId ) : System.DateTime
GetExportJob ( SPListItem export ) : ExportJob
GetExportJobsImp ( MapType mapType, System.Guid domainUid, System.Guid rootMapUid ) : ExportJobsResponse

Gets the ExportJobs for the particular map schema type for a domain and root map.

Method Details

CreateExportJob() public method

Creates an ExportJob and schedules the WorkItem for the timer job that processes the exports.
public CreateExportJob ( System.Guid domainUid, System.Guid rootMapUid, string>.IDictionary exportProperties, MapType mapType, ExportType exportType ) : ExportJobResponse
domainUid System.Guid The DominUid for the map being exported
rootMapUid System.Guid The RootMapUid for the map being exported
exportProperties string>.IDictionary The export properties for the export
mapType MapType The map type (schema) for the map being exported
exportType ExportType The output format for the export
return Glyma.UtilityService.Common.ExportServiceClasses.ExportJobResponse

DeleteExportJob() public method

Deletes an ExportJob if it's in the Scheduled, Completed, or Error ExportStates.
public DeleteExportJob ( ExportJob job ) : ExportJobResponse
job Glyma.UtilityService.Common.Model.ExportJob The ExportJob to delete
return Glyma.UtilityService.Common.ExportServiceClasses.ExportJobResponse

GetExportJobs() public method

Gets the ExportJobs for the particular allap schema types for a domain and root map.
public GetExportJobs ( System.Guid domainUid, System.Guid rootMapUid ) : ExportJobsResponse
domainUid System.Guid The DomainUid for the exports
rootMapUid System.Guid The RootMapUid for the exports
return ExportJobsResponse

GetExportJobsForMapType() public method

Gets the ExportJobs for the particular map schema type for a domain and root map.
public GetExportJobsForMapType ( MapType mapType, System.Guid domainUid, System.Guid rootMapUid ) : ExportJobsResponse
mapType MapType The map schema type
domainUid System.Guid The DomainUid for the exports
rootMapUid System.Guid The RootMapUid for the exports
return ExportJobsResponse

IsExportingAvailable() public method

Checks if the Glyma Export Timer Job exists in the current web pplicatio for the site.
public IsExportingAvailable ( ) : ExportAvailabilityResponse
return Glyma.UtilityService.Common.ExportServiceClasses.ExportAvailabilityResponse