xmpp_p2p
Preparing search index...
core/xmpp-collection
XmppCollectionManager
Class XmppCollectionManager
Manages community collections and their aggregated content.
Index
Constructors
constructor
Properties
attachment
History
collection
Feed
Index
collection
History
collections
collection
Subscriptions
Methods
add
Feed
To
Collection
build
Attachment
Summary
close
create
Collection
get
Attachments
get
Attachment
Summaries
get
Collection
Posts
get
Collections
get
Collection
Subscriptions
index
Collection
Members
initialize
persist
Attachment
History
persist
Collection
State
publish
Attachment
publish
Collection
publish
Collection
Post
record
Attachment
record
Collection
Post
restore
Collection
Subscriptions
schedule
Attachment
Persist
schedule
Collection
Persist
subscribe
Collection
unindex
Collection
Members
unsubscribe
Collection
Constructors
constructor
new
XmppCollectionManager
(
ctx
:
XmppCollectionContext
)
:
XmppCollectionManager
Parameters
ctx
:
XmppCollectionContext
Returns
XmppCollectionManager
Properties
Readonly
attachment
History
attachmentHistory
:
Map
<
string
,
XmppAttachment
>
= ...
Readonly
collection
Feed
Index
collectionFeedIndex
:
Map
<
string
,
Set
<
string
>
>
= ...
Readonly
collection
History
collectionHistory
:
Map
<
string
,
XmppCollectionPost
>
= ...
Readonly
collections
collections
:
Map
<
string
,
XmppCollectionNode
>
= ...
Readonly
collection
Subscriptions
collectionSubscriptions
:
Map
<
string
,
XmppCollectionSubscription
>
= ...
Methods
add
Feed
To
Collection
addFeedToCollection
(
collectionId
:
string
,
peerAddr
:
string
|
Multiaddr
,
)
:
Promise
<
XmppCollectionNode
>
Parameters
collectionId
:
string
peerAddr
:
string
|
Multiaddr
Returns
Promise
<
XmppCollectionNode
>
build
Attachment
Summary
buildAttachmentSummary
(
topic
:
string
,
targetId
:
string
)
:
XmppAttachmentSummary
Parameters
topic
:
string
targetId
:
string
Returns
XmppAttachmentSummary
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
create
Collection
createCollection
(
id
:
string
,
name
?:
string
)
:
Promise
<
XmppCollectionNode
>
Parameters
id
:
string
Optional
name
:
string
Returns
Promise
<
XmppCollectionNode
>
get
Attachments
getAttachments
(
topic
?:
string
,
targetId
?:
string
)
:
Promise
<
XmppAttachment
[]
>
Parameters
Optional
topic
:
string
Optional
targetId
:
string
Returns
Promise
<
XmppAttachment
[]
>
get
Attachment
Summaries
getAttachmentSummaries
(
topic
?:
string
)
:
Promise
<
XmppAttachmentSummary
[]
>
Parameters
Optional
topic
:
string
Returns
Promise
<
XmppAttachmentSummary
[]
>
get
Collection
Posts
getCollectionPosts
(
collectionId
?:
string
)
:
Promise
<
XmppCollectionPost
[]
>
Parameters
Optional
collectionId
:
string
Returns
Promise
<
XmppCollectionPost
[]
>
get
Collections
getCollections
()
:
Promise
<
XmppCollectionNode
[]
>
Returns
Promise
<
XmppCollectionNode
[]
>
get
Collection
Subscriptions
getCollectionSubscriptions
()
:
Promise
<
XmppCollectionSubscription
[]
>
Returns
Promise
<
XmppCollectionSubscription
[]
>
index
Collection
Members
indexCollectionMembers
(
collection
:
XmppCollectionNode
)
:
void
Parameters
collection
:
XmppCollectionNode
Returns
void
initialize
initialize
()
:
Promise
<
void
>
Returns
Promise
<
void
>
persist
Attachment
History
persistAttachmentHistory
()
:
Promise
<
void
>
Returns
Promise
<
void
>
persist
Collection
State
persistCollectionState
()
:
Promise
<
void
>
Returns
Promise
<
void
>
publish
Attachment
publishAttachment
(
topic
:
string
,
targetId
:
string
,
kind
:
XmppAttachmentKind
,
value
?:
string
,
options
?:
{
itemId
?:
string
}
,
)
:
Promise
<
string
>
Parameters
topic
:
string
targetId
:
string
kind
:
XmppAttachmentKind
Optional
value
:
string
options
:
{
itemId
?:
string
}
= {}
Returns
Promise
<
string
>
publish
Collection
publishCollection
(
id
:
string
,
body
:
string
,
options
?:
{
author
?:
string
;
categories
?:
string
[]
;
itemId
?:
string
;
summary
?:
string
;
title
?:
string
;
}
,
)
:
Promise
<
string
>
Parameters
id
:
string
body
:
string
options
:
{
author
?:
string
;
categories
?:
string
[]
;
itemId
?:
string
;
summary
?:
string
;
title
?:
string
;
}
= {}
Returns
Promise
<
string
>
publish
Collection
Post
publishCollectionPost
(
collectionId
:
string
,
feedPost
:
XmppFeedPost
,
)
:
Promise
<
string
>
Parameters
collectionId
:
string
feedPost
:
XmppFeedPost
Returns
Promise
<
string
>
record
Attachment
recordAttachment
(
attachment
:
XmppAttachment
)
:
Promise
<
boolean
>
Parameters
attachment
:
XmppAttachment
Returns
Promise
<
boolean
>
record
Collection
Post
recordCollectionPost
(
post
:
XmppCollectionPost
)
:
Promise
<
boolean
>
Parameters
post
:
XmppCollectionPost
Returns
Promise
<
boolean
>
restore
Collection
Subscriptions
restoreCollectionSubscriptions
()
:
Promise
<
void
>
Returns
Promise
<
void
>
schedule
Attachment
Persist
scheduleAttachmentPersist
()
:
Promise
<
void
>
Returns
Promise
<
void
>
schedule
Collection
Persist
scheduleCollectionPersist
()
:
Promise
<
void
>
Returns
Promise
<
void
>
subscribe
Collection
subscribeCollection
(
id
:
string
)
:
Promise
<
XmppCollectionSubscription
>
Parameters
id
:
string
Returns
Promise
<
XmppCollectionSubscription
>
unindex
Collection
Members
unindexCollectionMembers
(
collection
:
XmppCollectionNode
)
:
void
Parameters
collection
:
XmppCollectionNode
Returns
void
unsubscribe
Collection
unsubscribeCollection
(
id
:
string
)
:
Promise
<
void
>
Parameters
id
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
attachment
History
collection
Feed
Index
collection
History
collections
collection
Subscriptions
Methods
add
Feed
To
Collection
build
Attachment
Summary
close
create
Collection
get
Attachments
get
Attachment
Summaries
get
Collection
Posts
get
Collections
get
Collection
Subscriptions
index
Collection
Members
initialize
persist
Attachment
History
persist
Collection
State
publish
Attachment
publish
Collection
publish
Collection
Post
record
Attachment
record
Collection
Post
restore
Collection
Subscriptions
schedule
Attachment
Persist
schedule
Collection
Persist
subscribe
Collection
unindex
Collection
Members
unsubscribe
Collection
xmpp_p2p
Loading...
Manages community collections and their aggregated content.