Adds a user to the given group
This method will NOT access the server immediately. You must call save to add the user on the server. This allows multiple users to be added/removed before calling save.
The user to be added to the group
Creates a reference to a bucket for this group
The bucket will be created/accessed within this group's scope
The name of the bucket the user should create/access
A working KiiBucket object
Updates the group name on the server
A String of the desired group name
return promise object.
Delete the group from the server
return promise object.
Creates a reference to a encrypted bucket for this group
The bucket will be created/accessed within this group's scope
The name of the bucket the user should create/access
A working KiiEncryptedBucket object
Returns the owner of this group if this group holds the information of owner.
Group will holds the information of owner when "saving group on cloud" or "retrieving group info/owner from cloud". The cache will not be shared among the different instances of KiiGroup.
KiiUser who owns this group, undefined if this group doesn't hold the information of owner yet. KiiGroup.getOwner
Get the ID of the current KiiGroup instance.
Gets a list of all current members of a group
return promise object.
The name of this group
Gets the owner of the associated group
This API does not return all the properties of the owner. To get all owner properties, KiiUser.refresh is necessary.
return promise object.
Gets a list of topics in this group scope
You can specify the pagination key with the nextPaginationKey passed by callbacks.success. If empty string or no string object is provided, this API regards no paginationKey specified.
return promise object.
Get a specifically formatted string referencing the group
The group must exist in the cloud (have a valid UUID).
A URI string based on the current group. null if a URI couldn't be generated.
Updates the local group's data with the group data on the server
The group must exist on the server. Local data will be overwritten.
return promise object.
Saves the latest group values to the server
If the group does not yet exist, it will be created. If the group already exists, the members that have changed will be updated accordingly. If the group already exists and there is no updates of members, it will allways succeed but does not execute update. To change the name of group, use KiiGroup.changeGroupName.
return promise object.
Saves the latest group values to the server with specified owner. This method can be used only by the group owner or app admin.
If the group does not yet exist, it will be created. If the group already exists, the members and owner that have changed will be updated accordingly. If the group already exists and there is no updates of members and owner, it will allways succeed but does not execute update. To change the name of group, use KiiGroup.changeGroupName.
id of owner
return promise object.
Instantiate topic belongs to this group.
name of the topic. Must be a not empty string.
topic instance.
Instantiate KiiGroup that refers to existing group which has specified ID.
You have to specify the ID of existing KiiGroup. Unlike KiiObject,
you can not assign ID in the client side.
NOTE: This API does not access to the server.
After instantiation, call KiiGroup.refresh to fetch the properties.
ID of the KiiGroup to instantiate.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
instance of KiiGroup.
Creates a reference to a group with the given name
Note:
Returned instance from this API can not operate existing KiiGroup.
If you want to operate existing KiiGroup, please use KiiGroup.groupWithURI.
An application-specific group name
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
A new KiiGroup reference
Creates a reference to a group with the given name and a list of default members
Note:
Returned instance from this API can not operate existing KiiGroup.
If you want to operate existing KiiGroup, please use KiiGroup.groupWithURI.
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
A new KiiGroup reference
Generate a new KiiGroup based on a given URI
Note:
Returned instance from this API can operate existing KiiGroup.
If you want to create a new KiiGroup, please use KiiGroup.groupWithName.
The URI of the group to be represented
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
A new KiiGroup with its parameters filled in from the URI
Register new group owned by current user on Kii Cloud with specified ID.
If the group that has specified id already exists, registration will be failed.
ID of the KiiGroup
Name of the KiiGroup
An array of KiiUser objects to add to the group
KiiApplication instance. When omitted, KiiApplication.globalApp is used.
return promise object.
Generated using TypeDoc
Represents a KiiGroup object