-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Play
juliusse edited this page Apr 6, 2013
·
43 revisions
** WORK IN PROGRESS **
| Action | Call |
|---|---|
| Login User | jsRoutes.controllers.User.login() |
| Logout User | jsRoutes.controllers.User.logout() |
| Get Maps of User on Server | jsRoutes.controllers.User.mapListFromDB() |
| Action | Call |
|---|---|
| Get (complete/chunked) Mindmap as Json |
jsRoutes.controllers.MindMap.map(String mapId) jsRoutes.controllers.MindMap.map(String mapId, Integer nodeCount) |
| Get Node with all/some Children as Json |
jsRoutes.controllers.MindMap.getNode(String mapId, String nodeId) jsRoutes.controllers.MindMap.getNode(String mapId, String nodeId, Integer nodeCount) |
| Action | Call |
|---|---|
| Request Lock for a Node | jsRoutes.controllers.MindMap.requestLock(String mapId) |
| Release Lock for a Node | jsRoutes.controllers.MindMap.releaseLock(String mapId) |
| Action | Call |
|---|---|
| Create Node in Map | jsRoutes.controllers.MindMap.createNode(String mapId) |
| Change Node in Map | jsRoutes.controllers.MindMap.changeNode(String mapId) |
| Delete Node in Map | jsRoutes.controllers.MindMap.deleteNode(String mapId) |
| Method | POST |
| Action | jsRoutes.controllers.User.login() |
| Form Data |
|
| Requires | Nothing |
| Returns | 303 Redirect |
| Method | GET |
| Action | jsRoutes.controllers.User.logout() |
| Form Data | --- |
| Requires | |
| Returns | 303 Redirect |
| Method | GET |
| Action | jsRoutes.controllers.User.mapListFromDB() |
| Form Data | --- |
| Requires | |
| Returns | List with MindMapInfo Objects |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.map(String mapId) jsRoutes.controllers.MindMap.map(String mapId, Integer nodeCount) |
| Params |
mapId = Id of the map (currently mmIdOnServer) nodeCount = soft limit of maximum nodes |
| Form Data | --- |
| Requires |
|
| Returns | A MindMap Object |
| Method | GET |
| Action | jsRoutes.controllers.MindMap.getNode(String mapId,Strin nodeId) jsRoutes.controllers.MindMap.getNode(String mapId,Strin nodeId, Integer nodeCount) |
| Params |
mapId = Id of the map (currently mmIdOnServer) nodeId = Id of node nodeCount = soft limit of maximum nodes |
| Form Data | --- |
| Requires |
|
| Returns | A DefaultNode Object |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.requestLock(String mapId) |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Form Data |
nodeId = Id of Node |
| Requires |
|
| Returns |
Status 200 OK = success Status 403 Forbidden = failure |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.releaseLock(String mapId) |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Form Data |
nodeId = Id of Node |
| Requires |
|
| Returns |
Status 200 OK = success Status 403 Forbidden = failure |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.createNode(String mapId) |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Form Data |
parentNodeId = Id of parent where the new node gets attached to |
| Requires |
|
| Returns | A DefaultNode Object, which represents the created node |
| Method | DELETE |
| Action | jsRoutes.controllers.MindMap.deleteNode(String mapId) |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Form Data |
nodeId = Id of node to delete |
| Requires |
|
| Returns |
Status 200 OK = success Status 403 Forbidden = failure |
| Method | POST |
| Action | jsRoutes.controllers.MindMap.changeNode(String mapId) |
| Params |
mapId = Id of the map (currently mmIdOnServer) |
| Form Data | WILL BE ADDED |
| Requires |
|
| Returns | WILL BE ADDED |
{
"mmIdOnServer" : String,
"mmIdInternal" : String,
"revision" : Time,
"filePath" : String,
"fileName" : String
}A mind map contains a root node, which is slightly different to a normal node.
{
"id" : String
"isReadonly" : boolean,
"revision" : integer
"name" : string
"root" : RootNode
}- hGap: horizontal distance to parent
- shiftY: used to calculate the vertical position
- icons: List with names of predefined icons
- We need the icons on the server
- Exit in freeplane project: \freeplane\bin\classes\images\icons
- prefferedChild: appears to be important
- nodeText: plain text or HTML, defined by
isHtml - isHtml: defines if
nodeTextis plain text or HTML - link: external link or link to another node
- http:// for hyperlinks
- node:// for nodes
- workspace:// for workspace files
- attributes: Table with attributes of node
- self definde table
- information from JabRef
- locked: name of user, which has lock on node
- children: list with children, when they have been loaded
- childrenIds: list with ids of children, when due to chunking they haven't been loaded
Note: children and childrenIds do not appear together!
{
"id" : string,
"hGap" : integer,
"shiftY" : integer,
"folded" : boolean,
"icons" : [string,string,...], //names of icons
"prefferedChild" : DefaultNode,
"nodeText" : string,
"isHtml" : boolean,
"isFree" : boolean,
"isSummary" : boolean,
"defaultStyle" : string,
"edgeStyle" : Edge, // edge to parent node, not specified parameters are inherited from parent
"image" : Image,
"link" : string,
"children" : [DefaultNode,DefaultNode...],
"childrenIds" : [string, string,...],
"attributes" : map<string,string> | null
"locked" : string
}Very similar to a normal node with some small changes.
At the root node it is possible to have children on the right and on the left side.
- leftChildren: sorted list with children on the left side
- rightChildren: sorted list with children on the right side *For further descriptions see Normal Node
{
"id" : string,
"folded" : boolean,
"icons" : [string,string,...], //names of icons
"prefferedChild" : DefaultNode,
"nodeText" : string,
"isHtml" : boolean,
"image" : Image,
"link" : string,
"leftChildren" : [DefaultNode,DefaultNode,...],
"rightChildren" : [DefaultNode,DefaultNode,...]
}Architecture
- Architecture
- Continuous Integration
- Online View
- Frontend/API-Server
- Freeplane Remote
- Deployment
APIs
Research & Technologies
-
[Client layer - overview](wiki/Overview of used technologies for client layer)
Tutorials
Misc
Archive