Click or drag to resize

PFFieldUserValueHelper Class

Wraps a PFFieldUserValue which represents the value of a PFFieldUser. A PFFieldUserValue is not directly related to a PFItem or a PFField, requiring more code when using it. Working with this helper allows avoiding all null checks and field settings references when browsing and modifying the values.
Inheritance Hierarchy
SystemObject
  Packflow.CorePFFieldValueHelper
    Packflow.CorePFFieldValueHelperPFFieldUser, PFFieldUserValue
      Packflow.CorePFFieldUserValueHelper

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public sealed class PFFieldUserValueHelper : PFFieldValueHelper<PFFieldUser, PFFieldUserValue>, 
	IEquatable<PFFieldUserValueHelper>

The PFFieldUserValueHelper type exposes the following members.

Constructors
  NameDescription
Public methodPFFieldUserValueHelper
Initializes a new instance of the PFFieldUserValueHelper class.
Top
Properties
Methods
  NameDescription
Public methodAddGroup
Adds a group.
Public methodAddPrincipal(String)
Adds a principal reference.
Public methodAddPrincipal(PFFieldUserValue_Reference)
Adds a principal reference.
Public methodAddUser
Adds a user.
Public methodClear
Removes all selected users and groups.
Public methodClearGroups
Removes all selected groups.
Public methodClearUsers
Removes all selected users.
Public methodContains(PFGroup)
Determines whether the value contains the specified group.
Public methodContains(PFUser)
Determines whether the value contains the specified user.
Public methodContainsGroup
Determines whether the value contains the specified group.
Public methodContainsUser
Determines whether the value contains the specified user.
Public methodEquals
Indicates whether the current object is equal to another object of the same type.
Public methodGetGroups
Gets the selected groups from the database.
Public methodGetGroupsIds
Gets the id of selected groups.
Public methodGetUsers
Gets the selected users from the database.
Public methodGetUsersIds
Gets the id of selected users.
Public methodGetValue
Gets the value. (Generic method)
(Inherited from PFFieldValueHelperFieldType, ValueType.)
Public methodRemoveGroup(Int64)
Removes a group.
Public methodRemoveGroup(PFGroup)
Removes a group.
Public methodRemoveUser(Int64)
Removes a user.
Public methodRemoveUser(PFUser)
Removes a user.
Public methodSet(PFFieldUserValueHelper)
Replaces the currently selected values by the given ones.
Public methodSet(PFGroup)
Replaces the currently selected values (users and groups) by the given group.
Public methodSet(PFUser)
Replaces the currently selected values (users and groups) by the given user.
Public methodSet(IEnumerablePFGroup, IEnumerablePFUser)
Replaces the currently selected values by the given ones.
Public methodSet(IEnumerablePFUser, IEnumerablePFGroup)
Replaces the currently selected values by the given ones.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also

Reference

[!:System.IEquatable<Packflow.Core.PFFieldUserValueHelper>]