Method InferRoles
- Namespace
- Zedal.Sdk.Apis.Diwass.Permissions
- Assembly
- Zedal.Sdk.dll
InferRoles(IEnumerable<long>, Document)
Inferenz auf dem Aggregat-Infotech.Zedal.Documents.V1.Document. Greift ausschließlich auf die Server-Information zu:
- Notification →
GetNotificationResponse.NotificationInformation - Annex7 →
GetAnnex7Response(entspricht Infotech.Zedal.Documents.V1.Diwass.Waste.Retrieval.V1.Annex7InformationType) - Movement → die im Movement-Aggregat referenzierte
GetNotificationResponse.NotificationInformation(Movement-Stages tragen keine Operator-Slots; die Rollen kommen aus der Notification-Submission)
Liegt für den jeweiligen Sub-Doc-Typ keine Server-Information vor, gibt die Methode ein leeres Set zurück — Rollen sind dann (noch) nicht final.
public static ISet<Role> InferRoles(IEnumerable<long> operatorIds, Document document)
Parameters
operatorIdsIEnumerable<long>documentDocument
Returns
InferRoles(long, Document)
Inferenz auf dem Aggregat-Infotech.Zedal.Documents.V1.Document. Greift ausschließlich auf die Server-Information zu:
- Notification →
GetNotificationResponse.NotificationInformation - Annex7 →
GetAnnex7Response(entspricht Infotech.Zedal.Documents.V1.Diwass.Waste.Retrieval.V1.Annex7InformationType) - Movement → die im Movement-Aggregat referenzierte
GetNotificationResponse.NotificationInformation(Movement-Stages tragen keine Operator-Slots; die Rollen kommen aus der Notification-Submission)
Liegt für den jeweiligen Sub-Doc-Typ keine Server-Information vor, gibt die Methode ein leeres Set zurück — Rollen sind dann (noch) nicht final.
public static ISet<Role> InferRoles(long operatorId, Document document)
Parameters
operatorIdlongdocumentDocument
Returns
InferRoles(IEnumerable<long>, NotificationDocument)
Convenience für handler.Notification: zieht intern die Server-
Information aus DiwassMessage.GetNotificationResponse.NotificationInformation
und delegiert. Liegt noch kein GetResponse vor (z.B. direkt nach
CreateSubmission vor dem ersten Pull), kommt ein leeres Set zurück.
public static ISet<Role> InferRoles(IEnumerable<long> operatorIds, NotificationDocument notification)
Parameters
operatorIdsIEnumerable<long>notificationNotificationDocument
Returns
InferRoles(long, NotificationDocument)
Convenience für handler.Notification: zieht intern die Server-
Information aus DiwassMessage.GetNotificationResponse.NotificationInformation
und delegiert. Liegt noch kein GetResponse vor (z.B. direkt nach
CreateSubmission vor dem ersten Pull), kommt ein leeres Set zurück.
public static ISet<Role> InferRoles(long operatorId, NotificationDocument notification)
Parameters
operatorIdlongnotificationNotificationDocument
Returns
InferRoles(IEnumerable<long>, AnnexViiDocument)
Convenience für handler.Annex7: zieht intern die Server-Information
aus DiwassMessage.GetAnnex7Response und delegiert.
public static ISet<Role> InferRoles(IEnumerable<long> operatorIds, AnnexViiDocument annex7)
Parameters
operatorIdsIEnumerable<long>annex7AnnexViiDocument
Returns
InferRoles(long, AnnexViiDocument)
Convenience für handler.Annex7: zieht intern die Server-Information
aus DiwassMessage.GetAnnex7Response und delegiert.
public static ISet<Role> InferRoles(long operatorId, AnnexViiDocument annex7)
Parameters
operatorIdlongannex7AnnexViiDocument
Returns
InferRoles(IEnumerable<long>, MovementDocument)
Convenience für handler.Movement: Movement-Stages tragen keine
eigenen Operator-Slots, also greift die Inferenz auf die im
Movement-Aggregat referenzierte Notification
(DiwassMessage.GetNotificationResponse.NotificationInformation) zu.
public static ISet<Role> InferRoles(IEnumerable<long> operatorIds, MovementDocument movement)
Parameters
operatorIdsIEnumerable<long>movementMovementDocument
Returns
InferRoles(long, MovementDocument)
Convenience für handler.Movement: Movement-Stages tragen keine
eigenen Operator-Slots, also greift die Inferenz auf die im
Movement-Aggregat referenzierte Notification
(DiwassMessage.GetNotificationResponse.NotificationInformation) zu.
public static ISet<Role> InferRoles(long operatorId, MovementDocument movement)
Parameters
operatorIdlongmovementMovementDocument
Returns
InferRoles(IEnumerable<long>, NotificationInformationType)
Sucht eine der operatorIds in den Party-Slots der
Server-bestätigten Submission und liefert alle gefundenen Rollen.
Eingang ist die Server-Information aus GetNotificationResponse
— niemals der Submit-/Update-Request, da dort die Slot-Belegung
noch nicht final ist.
public static ISet<Role> InferRoles(IEnumerable<long> operatorIds, NotificationInformationType information)
Parameters
operatorIdsIEnumerable<long>informationNotificationInformationType
Returns
InferRoles(long, NotificationInformationType)
Sucht eine der operatorIds in den Party-Slots der
Server-bestätigten Submission und liefert alle gefundenen Rollen.
Eingang ist die Server-Information aus GetNotificationResponse
— niemals der Submit-/Update-Request, da dort die Slot-Belegung
noch nicht final ist.
public static ISet<Role> InferRoles(long operatorId, NotificationInformationType information)
Parameters
operatorIdlonginformationNotificationInformationType
Returns
InferRoles(IEnumerable<long>, Annex7InformationType)
Sucht eine der operatorIds in den Party-Slots der
Server-bestätigten TransportAnnouncement und liefert alle
gefundenen Rollen. Der Annex7-Arranger ist semantisch der Notifizierer.
Eingang ist die Server-Information aus GetAnnex7Response —
niemals der Submit-/Update-Request.
public static ISet<Role> InferRoles(IEnumerable<long> operatorIds, Annex7InformationType information)
Parameters
operatorIdsIEnumerable<long>informationAnnex7InformationType
Returns
InferRoles(long, Annex7InformationType)
Sucht eine der operatorIds in den Party-Slots der
Server-bestätigten TransportAnnouncement und liefert alle
gefundenen Rollen. Der Annex7-Arranger ist semantisch der Notifizierer.
Eingang ist die Server-Information aus GetAnnex7Response —
niemals der Submit-/Update-Request.
public static ISet<Role> InferRoles(long operatorId, Annex7InformationType information)
Parameters
operatorIdlonginformationAnnex7InformationType