Skip to content

Add Java docs snippets for category permissions - #433

Merged
techwritermat merged 2 commits into
mc/grantToken_categoriesfrom
docs/grant-categories-java-snippets
Oct 16, 2026
Merged

techwritermat merged 2 commits into
mc/grantToken_categoriesfrom
docs/grant-categories-java-snippets

Conversation

@techwritermat

Copy link
Copy Markdown
Contributor

Follow-up to #432, which merged with only the Kotlin snippets. Adds the Java snippets the Java docs embed.

  • ParseTokenOther.java: parseTokenWithGetAllMetadataAccess grants a token with getAllChannels(true), parses it, and reads getAllChannels() / getAllUUIDs() from PNToken.
  • GrantOther.java (new): grantWithGetAllMetadataAccess for the deprecated grant() with both flags.

:pubnub-gson:pubnub-gson-docs:compileJava passes.

🤖 Generated with Claude Code

techwritermat and others added 2 commits October 16, 2026 11:33
…parseToken

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 1
  • master

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: pubnub/kotlin/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 147ef4d9-852a-4081-b595-232dbcf0f67f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 2 medium · 1 minor

Results:
3 new issues

Category Results
BestPractice 2 medium
CodeStyle 1 minor

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@techwritermat
techwritermat merged commit 313b5de into mc/grantToken_categories Oct 16, 2026
3 of 6 checks passed
@techwritermat
techwritermat deleted the docs/grant-categories-java-snippets branch October 16, 2026 09:46
marcin-cebo added a commit that referenced this pull request Oct 19, 2026
* Add support for categories in grant and grantToken methods.

* Add image to README for SDK header

* Update dependencies

* Add docs snippets for getAllChannels / getAllUUIDs in grant and parseToken (#432)

* Add Java docs snippets for category permissions (#433)

* Add Java docs snippets for getAllChannels / getAllUUIDs in grant and parseToken

* Fix PNToken getter names in Java parseToken snippet

---------
* PubNub SDK v14.1.0 release.
---------

Co-authored-by: Mateusz Wiktor <39187473+techwritermat@users.noreply.github.com>
Co-authored-by: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants