Table of Contents

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

operatorIds IEnumerable<long>
document Document

Returns

ISet<Role>

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

operatorId long
document Document

Returns

ISet<Role>

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

operatorIds IEnumerable<long>
notification NotificationDocument

Returns

ISet<Role>

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

operatorId long
notification NotificationDocument

Returns

ISet<Role>

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

operatorIds IEnumerable<long>
annex7 AnnexViiDocument

Returns

ISet<Role>

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

operatorId long
annex7 AnnexViiDocument

Returns

ISet<Role>

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

operatorIds IEnumerable<long>
movement MovementDocument

Returns

ISet<Role>

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

operatorId long
movement MovementDocument

Returns

ISet<Role>

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

operatorIds IEnumerable<long>
information NotificationInformationType

Returns

ISet<Role>

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

operatorId long
information NotificationInformationType

Returns

ISet<Role>

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

operatorIds IEnumerable<long>
information Annex7InformationType

Returns

ISet<Role>

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

operatorId long
information Annex7InformationType

Returns

ISet<Role>