C# Class Serenity.Services.ImageUploadBehavior

Inheritance: Serenity.Services.BaseSaveDeleteBehavior, IImplicitBehavior, IFieldBehavior
Show file Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
ActivateFor ( Row row ) : bool
CheckUploadedImageAndCreateThumbs ( ImageUploadEditorAttribute attr, string &temporaryFile ) : void
OnAfterDelete ( IDeleteRequestHandler handler ) : void
OnAfterSave ( ISaveRequestHandler handler ) : void
OnBeforeSave ( ISaveRequestHandler handler ) : void
OnPrepareQuery ( ISaveRequestHandler handler, SqlQuery query ) : void

Private Methods

Method Description
CopyTemporaryFile ( ISaveRequestHandler handler, FilesToDelete filesToDelete ) : CopyTemporaryFileResult
DeleteOldFile ( FilesToDelete filesToDelete, string oldFilename ) : void
ParseReplaceFields ( string fileNameFormat, Row row, Field target ) : Field>.Dictionary
ProcessReplaceFields ( string s, Field>.Dictionary replaceFields, ISaveRequestHandler handler ) : string

Method Details

ActivateFor() public method

public ActivateFor ( Row row ) : bool
row Serenity.Data.Row
return bool

CheckUploadedImageAndCreateThumbs() public static method

public static CheckUploadedImageAndCreateThumbs ( ImageUploadEditorAttribute attr, string &temporaryFile ) : void
attr Serenity.ComponentModel.ImageUploadEditorAttribute
temporaryFile string
return void

OnAfterDelete() public method

public OnAfterDelete ( IDeleteRequestHandler handler ) : void
handler IDeleteRequestHandler
return void

OnAfterSave() public method

public OnAfterSave ( ISaveRequestHandler handler ) : void
handler ISaveRequestHandler
return void

OnBeforeSave() public method

public OnBeforeSave ( ISaveRequestHandler handler ) : void
handler ISaveRequestHandler
return void

OnPrepareQuery() public method

public OnPrepareQuery ( ISaveRequestHandler handler, SqlQuery query ) : void
handler ISaveRequestHandler
query Serenity.Data.SqlQuery
return void