Skip to content

Commit

Permalink
Add registration numbers to organizer service sapmentors#23
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorwolf authored and open-ui5 committed Oct 14, 2016
1 parent 5789eb3 commit 01976fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions odataorganizer/service.xsodata
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ service {

"com.sap.sapmentors.sitreg.data::SITreg.Event" as "Events"
navigates (
"Events_Participants" as "Participants",
"Events_CoOrganizers" as "CoOrganizers",
"Event_Changeable" as "EventChangeable"
"Events_Participants" as "Participants",
"Events_CoOrganizers" as "CoOrganizers",
"Event_Changeable" as "EventChangeable",
"Event_RegistrationNumbers" as "RegistrationNumbers"
)
create using "com.sap.sapmentors.sitreg.odataorganizer.procedures::EventCreate"
update using "com.sap.sapmentors.sitreg.odataorganizer.procedures::EventUpdate"
Expand Down Expand Up @@ -51,4 +52,13 @@ service {
association "Events_Participants" principal "Events"("ID") multiplicity "1"
dependent "Participants"("EventID") multiplicity "*";

// Read RegistrationNumbers from View to restrict fields that can be read
"com.sap.sapmentors.sitreg.odataparticipant.procedures::RegistrationNumbersRead" as "RegistrationNumbers" key ("EventID")
create forbidden
update forbidden
delete forbidden;

association "Event_RegistrationNumbers" principal "Events"("ID") multiplicity "1"
dependent "RegistrationNumbers"("EventID") multiplicity "1";

}
2 changes: 1 addition & 1 deletion roles/organizer.hdbrole
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ role com.sap.sapmentors.sitreg.roles::organizer {
// catalog schema "SITREG": SELECT;
sql object com.sap.sapmentors.sitreg.data::SITreg.Event: SELECT, INSERT, UPDATE;
sql object com.sap.sapmentors.sitreg.data::SITreg.CoOrganizer: SELECT, INSERT, UPDATE;
// sql object com.sap.sapmentors.sitreg.data::SITreg.Participant: SELECT;
sql object com.sap.sapmentors.sitreg.odataparticipant.procedures::RegistrationNumbersRead: SELECT;
sql object com.sap.sapmentors.sitreg.odataorganizer.procedures::ParticipantsRead: SELECT;
sql object com.sap.sapmentors.sitreg.odataorganizer.procedures::EventChangeableRead: SELECT;
sql object com.sap.sapmentors.sitreg.odataorganizer.procedures::CoOrganizerCreate: //Objecttype: PROCEDURE
Expand Down

0 comments on commit 01976fe

Please sign in to comment.