Package | Description |
---|---|
rocks.xmpp.extensions.privacy.model |
Provides XML schema implementations of XEP-0016: Privacy Lists.
|
rocks.xmpp.im.roster.model |
Provides XML schema implementations of the Roster Namespace.
|
Modifier and Type | Method and Description |
---|---|
static PrivacyRule |
PrivacyRule.blockAllCommunicationWithEntitiesWithSubscription(SubscriptionState.Subscription subscription,
long order)
Creates a rule, which blocks all communication from and to any entities in the specified roster group.
|
static PrivacyRule |
PrivacyRule.blockIQFromEntitiesWithSubscription(SubscriptionState.Subscription subscription,
long order)
Creates a rule, which blocks all inbound IQ stanzas from entities with the given subscription type.
|
static PrivacyRule |
PrivacyRule.blockMessagesFromEntitiesWithSubscription(SubscriptionState.Subscription subscription,
long order)
Creates a rule, which blocks all inbound messages from entities with the given subscription type.
|
static PrivacyRule |
PrivacyRule.blockPresenceFromEntitiesWithSubscription(SubscriptionState.Subscription subscription,
long order)
Creates a rule, which blocks all inbound presence notifications from entities with the given subscription type.
|
static PrivacyRule |
PrivacyRule.blockPresenceToEntitiesWithSubscription(SubscriptionState.Subscription subscription,
long order)
Creates a rule, which blocks all outbound presence notifications to entities with the given subscription type.
|
static PrivacyRule |
PrivacyRule.of(SubscriptionState.Subscription subscription,
PrivacyRule.Action action,
long order)
Creates a privacy rule of type ‘subscription’.
|
Modifier and Type | Method and Description |
---|---|
SubscriptionState.Subscription |
SubscriptionState.getSubscription()
Gets the primary subscription state.
|
SubscriptionState.Subscription |
DefinedState.getSubscription() |
SubscriptionState.Subscription |
Contact.getSubscription()
Gets the subscription attribute.
|
static SubscriptionState.Subscription |
SubscriptionState.Subscription.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubscriptionState.Subscription[] |
SubscriptionState.Subscription.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Contact(Jid jid,
java.lang.String name,
java.lang.Boolean isPending,
java.lang.Boolean approved,
SubscriptionState.Subscription subscription,
java.util.Collection<java.lang.String> groups)
Creates a new contact associated with the given JID, name and groups.
|
Copyright © 2014–2019 XMPP.rocks. All rights reserved.