Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class architecture for ObjectActions #228

Open
cubap opened this issue Jan 31, 2022 · 0 comments
Open

Class architecture for ObjectActions #228

cubap opened this issue Jan 31, 2022 · 0 comments
Assignees

Comments

@cubap
Copy link
Member

cubap commented Jan 31, 2022

Document
• new fromJSON(String)
• new fromURI(URI, true)
• new get(id)
• mintID() – return Document with generated ID
• asPresi2(options) - return as Presi2 or error
• asPresi3(options) - return as Presi3 or error
• isValidIIIF() - true or false (ignorable)
• expand() - return expanded Document
• compact() - return compacted Document
• compress() - return efficient Document
• isDeleted() - true false
• isReleased() - true false
History
• healTree(Document) - succeed or error
• setPrevious(Document,ID) - succeed or error
• toggleNext(Document,ID,delete) - add or delete from history next array
• nextRelease(Document) - return next Released Document or empty set
• previousRelease(Document) - return previous Released Document or null
• next(Document) - return next Document or empty set
• previous(Document) - return previous document or null
• getPrime(Document) - return prime Document
Authorization
• isVerified(Token) - true false
• validateAgent(URI) - true false
• getJWKS() - return secret JWKS
Database
• update(Document) - succeed or error
• create(Document) - succeed or error
• findByProperties(JSON) - return array
• upsertAll() - succeed or error on all

@cubap cubap self-assigned this Jan 31, 2022
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

No branches or pull requests

1 participant