Click or drag to resize
AvatarInfoProvider Class
Class providing AvatarInfo management.
Inheritance Hierarchy
SystemObject
  CMS.DataEngineAbstractInfoProviderAvatarInfo, AvatarInfoProvider, ObjectQueryAvatarInfo
    CMS.DataEngineAbstractInfoProviderAvatarInfo, AvatarInfoProvider
      CMS.MembershipAvatarInfoProvider

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public class AvatarInfoProvider : AbstractInfoProvider<AvatarInfo, AvatarInfoProvider>

The AvatarInfoProvider type exposes the following members.

Constructors
  NameDescription
Public methodAvatarInfoProvider
Top
Fields
  NameDescription
Public fieldStatic memberAVATAR
Constant for avatar option
Public fieldStatic memberGRAVATAR
Constant for gravatar option
Protected fieldinfos
Info tables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public fieldStatic memberUSERCHOICE
Constant for user choice option
Top
Properties
  NameDescription
Public propertyDataSource
Data source for the provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public propertyHashtableSettings
Gets hashtable settings
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected propertyInfoObject
Info object instance the provider is working with.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public propertyIsValid
Indicates if the provider instance is up-to-date and can be used to manage object instances.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public propertyTypeInfo
Object type information.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public propertyStatic memberWebApplicationPhysicalPath
Full path to the root of the web.
Top
Methods
  NameDescription
Protected methodBeginTransaction
Creates a new transaction over this provider.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodBulkDelete
Bulk deletes info objects based on the given condition.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodBulkInsertInfos(IEnumerableBaseInfo)
Bulk inserts the given list of info objects
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodBulkInsertInfos(IEnumerableTInfo, BulkInsertSettings)
Bulk inserts the given list of info objects.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberCanResizeImage
Checks whether the image should be processed (resized) by the Image manager (if the destination size is smaller).
Public methodCheckUniqueCodeName
Checks if the object has unique code name. Returns true if the object has unique code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodCheckUniqueValues
Checks if a record with the same column values already exists in the database. Returns true if the set of values is unique.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberClearDefaultAvatar(DefaultAvatarTypeEnum)
Clears specified default avatar type from all avatars.
Public methodStatic memberClearDefaultAvatar(DefaultAvatarTypeEnum, Boolean)
Clears specified default avatar type from all avatars.
Public methodStatic memberClearDefaultAvatar(DefaultAvatarTypeEnum, Boolean, Boolean)
Clears specified default avatar type from all avatars.
Protected methodClearHashtables
Clears the object's hashtables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodCreateDefaultBulkInsertSettings
Creates bulk insert settings. By default CheckConstraints and TableLock flags are set.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberCreateGravatarLink
Creates URL for gravatar image
Protected methodCreateInfo
Creates a new info object.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodCreateWebFarmTask(String, String)
Creates web farm task specific for current object and action name
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodCreateWebFarmTask(String, String, Byte, String)
Creates web farm task specific for current object and action name
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberDeleteAvatarFile
Delete avatar file stored in the file system.
Public methodStatic memberDeleteAvatarInfo(Int32)
Deletes specified avatar.
Public methodStatic memberDeleteAvatarInfo(AvatarInfo)
Deletes specified avatar.
Protected methodDeleteAvatarInfoInternal
Deletes specified avatar.
Protected methodDeleteInfo
Deletes the object to the database.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodDeleteObjectFromHashtables
Deletes the object instance from the hashtables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberEnsureAvatarPhysicalFile
Ensures the avatar file in the file system and returns the path to the file.
Public methodStatic memberEnsureThumbnailFile
Ensures the thumbnail avatar.
Public methodStatic memberGenerateThumbnails
Returns the current settings whether the thumbnails should be generated.
Public methodStatic memberGetAvatarFile(Guid)
Returns the avatar file from disk or (if not available on the disk) from database.
Public methodStatic memberGetAvatarFile(AvatarInfo)
Returns the file from disk or (if not available on the disk) from database.
Public methodStatic memberGetAvatarFileBinary
Returns the file binary from database and save it in file system
Public methodStatic memberGetAvatarInfo(Guid)
Returns the AvatarInfo structure for the specified avatar.
Public methodStatic memberGetAvatarInfo(Int32)
Returns the AvatarInfo structure for the specified avatar.
Public methodStatic memberGetAvatarInfo(String)
Returns the AvatarInfo structure for the specified avatar.
Protected methodGetAvatarInfoInternal
Returns the AvatarInfo structure for the specified avatar.
Public methodStatic memberGetAvatarInfoWithoutBinary(Guid)
Returns the AvatarInfo structure for the specified avatar.
Public methodStatic memberGetAvatarInfoWithoutBinary(Int32)
Returns the AvatarInfo structure for the specified avatar.
Public methodStatic memberGetAvatarInfoWithoutBinary(String)
Returns the AvatarInfo structure for the specified avatar.
Protected methodGetAvatarInfoWithoutBinaryInternal(Guid)
Returns the AvatarInfo structure for the specified avatar.
Protected methodGetAvatarInfoWithoutBinaryInternal(Int32)
Returns the AvatarInfo structure for the specified avatar.
Protected methodGetAvatarInfoWithoutBinaryInternal(String)
Returns the AvatarInfo structure for the specified avatar.
Public methodStatic memberGetAvatars
Returns the query for all avatars.
Public methodStatic memberGetAvatarTypeEnum
Returns the enum representation of avatar type based on specified string.
Public methodStatic memberGetAvatarTypeString(AvatarTypeEnum)
Returns the string representation of avatar type based on specified enum value.
Public methodStatic memberGetAvatarTypeString(Type, Int32)
Returns AvatarTypeEnum string code derived from type of enumeration and enum value.
Public methodStatic memberGetDefaultAvatar(DefaultAvatarTypeEnum)
Returns default avatar of specified type or null if such is not set.
Public methodStatic memberGetDefaultAvatar(UserGenderEnum)
Gets default avatar info based on user gender
Public methodGetDefaultAvatarInternal
Returns default avatar of specified type or null if such is not set.
Protected methodGetDeleteQuery
Gets the object query that deletes all items matching the query parameters
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberGetFilePhysicalPath
Returns physical path to the file.
Public methodStatic memberGetFilesFolderPath
Returns physical path to folder with avatar files which are associated with the specified site.
Public methodStatic memberGetGravatarDefaultParameter
Returns parameter for default gravatar image
Public methodStatic memberGetImageThumbnail
Returns image thumbnail (from the disk - if already exists, or create new one and save it to disk - if doesn't exist).
Public methodStatic memberGetImageThumbnailFile
Returns the image thumbnail from the disk.
Protected methodGetInfoByCodeName(String, Boolean)
Gets an instance of info object based on the given code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetInfoByCodeName(String, Int32, Boolean)
Gets an instance of info object based on the given code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetInfoByCodeName(String, Int32, Boolean, Boolean)
Gets an instance of info object based on the given code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetInfoByCodeName(String, Int32, Int32, Boolean)
Gets an instance of info object based on the given code name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetInfoByFullName
Gets an instance of info object based on the given full name.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetInfoByGuid(Guid, Boolean)
Gets an instance of info object based on the given GUID.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetInfoByGuid(Guid, Int32, Boolean)
Gets an instance of info object based on the GUID.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetInfoById
Gets an instance of info object based on ID.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetInfosByIds
Gets the list of info objects by their IDs.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetObjectQuery
Gets the object query for the provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodGetObjectQueryInternal
Gets the object query for the provider
(Inherited from AbstractInfoProviderTInfo, TProvider.)
Public methodStatic memberGetUniqueAvatarName
Returns unique name for avatar.
Public methodStatic memberGetUserAvatarImage
Returns avatar image tag, if avatar is not defined returns gender depend avatar or user default avatar if is defined.
Public methodStatic memberGetUserAvatarImageByGUID
Returns user avatar image.
Public methodStatic memberGetUserAvatarImageForUser
Returns avatar image tag, if avatar is not defined returns gender depend avatar or user default avatar if is defined.
Public methodStatic memberGetUserAvatarImageUrl
Returns avatar or gravatar image url, if it is not defined returns gender dependent avatar or user default avatar.
Protected methodGetUserAvatarImageUrlInternal
Returns avatar or gravatar image url, if it is not defined returns gender dependent avatar or user default avatar.
Protected methodInit
Initializes the provider with the given type info and hashtable settings
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodInitHashtableSettings
Initializes the HashtableSettings based on typeInfo and using settings as default values.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodInitTypeInfoAndRegister
Initializes the provider variables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodInvalidate
Sets this provider as invalid
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodLoadAllInfos
Loads all infos to the hashtable
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodLoadInfos
Loads all objects from the database to memory.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodProcessWebFarmTask
Runs the processing of specific web farm task for current provider
(Overrides AbstractInfoProviderTInfo, TProvider, TQueryProcessWebFarmTask(String, String, Byte).)
Protected methodProcessWebFarmTaskInternal
Runs the processing of specific web farm task for current provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodRegisterObjectInHashtables
Registers the object instance within the hashtables.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodRemoveOriginalCodeNameFromHashtable
Removes the original object code name from the hashtable
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberSaveAvatarFileToDisk
Saves avatar file to the disk.
Public methodSetAsDefaultProvider
Sets this provider instance as the default provider
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberSetAvatarInfo
Sets (updates or inserts) specified avatar.
Protected methodSetAvatarInfoInternal
Sets (updates or inserts) specified avatar.
Protected methodSetInfo
Inserts or Updates the object to the database.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodUpdateData(String, QueryDataParameters, String)
Updates the data in the database based on the given where condition.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodUpdateData(IWhereCondition, IEnumerableKeyValuePairString, Object, Boolean)
Updates the data in the database based on the given where condition.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Protected methodUpdateObjectInHashtables
Updates the object instance in the hashtables. Update is different than RegisterObjectInHashtables(TInfo), because it logs task about changing object.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Public methodStatic memberUploadAvatar
Uploads and resizes (if needed) avatar to specified AvatarInfo and sets its properties.
Public methodValidateCodeName
Validates the object code name. Returns true if the code name is valid.
(Inherited from AbstractInfoProviderTInfo, TProvider, TQuery.)
Top
See Also