personium / app-timefiller

A sample Personium App that uses app-personium-calendar data and recommend activities for users' free time based on their personal preference.
1 stars 3 forks source link

app-timefiller-wakaba

A sample Personium App that uses app-personium-calendar data and recommend activities for users' free time based on their personal preference.

App deployment

We will explain the procedure for deploying the time filling app to the app cell. Account names and role names do not have to be exactly as described. If you change it, please replace it with the changed name.

  1. Please prepare app cell. Please use cell-creator or unit-manager for creating app cell.

  2. Create the following Role in the app cell.
    ・syncAccToken
    ・syncTarget
    ・writeOData
    ・admin
    Role Create

  3. Please create the following account in the appcell.
    ・tokenAcc
    ・adminUser
    Account Create

  4. Please grant the following Role to the created account.
    ・tokenAcc:syncAccToken
    ・adminUser:admin
    Assign Role Account Assign Role Account

  5. Please grant the following authority to the created Role.
    ・syncAccToken:auth-read,social-read
    ・admin:root
    Role ACL

  6. Deploy the source under appcell main.
    Deploy HTML

  7. Deploy MyData under main.   Deploy MyData

  8. Create the following engine service:
    ・deleteEventList
    ・getAppAuthToken
    ・getEvent
    ・getPCalendarSchedule
    ・receive_redirect
    ・syncEventList
    ・start_oauth2
    ・createOData
    Create EngineService

  9. Please set ACL to MyData.
    ・syncAccToken:read,write
    MyData ACL

  10. Please set ACL in launch.json.
    ・all:read
    Launch ACL

  11. Set the app cell URL to appCellUrl in __/html/Engine/src/acc_info.js, and set tokenAcc to appUserId.
    Please set the password registered at creation to appUserPass.
    When linking with PersoniumCalendar, set the PersoniumCalendar account to coopUserId. acc_info

  12. Set the app cell URL to cellUrl in __/html/Engine/src/createOData.js and adminUser to cellAcc.
    createOData

  13. Please set ACL in __/html/Engine.
    ・all:exec Engine_ACL

  14. Execute createOData and create OData.
    The example uses the Restlet Client.
    Exec_createOData

  15. Set ACL to the created OData.
    ・all:read ・writeOData:read,write OData_ACL

  16. Please set ACL in files other than Engine under __/html.
    ・all:read HTML_ACL COLLECTION_ACL

Rule creation for EventList synchronization

  1. Set the condition of the rule for the following.
    ・Name: syncEventList
    ・Box: [main]
    ・Action: exec
    ・EventType: timer.periodic
    ・EventObject: 5
    ・TargetUrl: personium-localcell:/__/html/Engine/syncEventList
    Rule_Create

Add synchronization target of EventList

  1. Register the CellUrl to be synchronized to the external cell. ExtCell_Create

  2. Please grant the role to the registered external cell.
    ・syncTarget
    Assign_ExtCell_Role