Class CPGroupBaseClass
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
Methods and Properties for Groups
public abstract class CPGroupBaseClass
- Inheritance
-
CPGroupBaseClass
- Inherited Members
Methods
Add(string)
Add a new group
[Obsolete("Use verifyGroup to search by guid, and create with guid and name", false)]
public abstract void Add(string groupName)
Parameters
groupNamestring
Add(string, string)
Add a new group
[Obsolete("Use verifyGroup to search by guid, and create with guid and name", false)]
public abstract void Add(string groupName, string groupCaption)
Parameters
AddUser(int)
Add the current user to a group. Use verifyGroup(guid,name) to get groupid
public abstract void AddUser(int groupId)
Parameters
groupIdint
AddUser(int, int)
Add a user to a group.
public abstract void AddUser(int groupId, int userId)
Parameters
AddUser(int, int, DateTime)
Add a user to a group.
public abstract void AddUser(int groupId, int userId, DateTime dateExpires)
Parameters
AddUser(string)
Add the current user to a group. If argument is numeric, record is referenced by Id. If argument is guid, record is referenced by ccGuid. Otherwise argument is name.
public abstract void AddUser(string groupNameIdOrGuid)
Parameters
groupNameIdOrGuidstring
AddUser(string, int)
Add a user to a group. If argument is numeric, record is referenced by Id. If argument is guid, record is referenced by ccGuid. Otherwise argument is name.
public abstract void AddUser(string groupNameIdOrGuid, int userId)
Parameters
AddUser(string, int, DateTime)
Add a user to a group. If argument is numeric, record is referenced by Id. If argument is guid, record is referenced by ccGuid. Otherwise argument is name.
public abstract void AddUser(string groupNameIdOrGuid, int userId, DateTime dateExpires)
Parameters
Delete(int)
Delete a group.
public abstract void Delete(int groupId)
Parameters
groupIdint
Delete(string)
Delete a group. If argument is numeric, record is referenced by Id. If argument is guid, record is referenced by ccGuid. Otherwise argument is name.
public abstract void Delete(string groupNameIdOrGuid)
Parameters
groupNameIdOrGuidstring
GetId(string)
Get a group Id. If argument is guid, record is referenced by ccGuid. Otherwise argument is name.
public abstract int GetId(string groupNameOrGuid)
Parameters
groupNameOrGuidstring
Returns
GetName(int)
Get a group Name
public abstract string GetName(int groupId)
Parameters
groupIdint
Returns
GetName(string)
Get a group name. If argument is numeric, record is referenced by Id. Otherwise record is referenced by ccGuid.
public abstract string GetName(string GroupIdOrGuid)
Parameters
GroupIdOrGuidstring
Returns
RemoveUser(int)
Remove the current user from a group
public abstract void RemoveUser(int groupId)
Parameters
groupIdint
RemoveUser(int, int)
Remove a user from a group
public abstract void RemoveUser(int groupId, int userId)
Parameters
RemoveUser(string)
Remove the current user from a group
public abstract void RemoveUser(string groupNameOrGuid)
Parameters
groupNameOrGuidstring
RemoveUser(string, int)
Remove a user from a group
public abstract void RemoveUser(string groupNameOrGuid, int userId)
Parameters
exists(string)
Verify a group exists, create it if it does not
public abstract bool exists(string groupGuid)
Parameters
groupGuidstringThe guid of the group to be found.
Returns
exists(string, out int)
Verify a group exists, create it if it does not
public abstract bool exists(string groupGuid, out int groupId)
Parameters
groupGuidstringThe guid of the group to be found.
groupIdintIf the group exists, the id is returned. if not found, 0 is returned,
Returns
verifyGroup(string, string)
Verify a group exists, create it if it does not. Return the id of the group.
public abstract int verifyGroup(string groupGuid, string groupName)
Parameters
Returns
- int
The id of the verified group
verifyGroup(string, string, string)
Verify a group exists, create it if it does not. Return the id of the group.
public abstract int verifyGroup(string groupGuid, string groupName, string groupCaption)
Parameters
Returns
- int
The id of the verified group