Beispiel #1
0
        public IFlow GetFlow(String authenticatedActorId, Int64 flowId, Relations relations, DbSession dbSession)
        {
            // first check if the actor is allowed to get this flow
            authorizationHelper.CheckGetFlow(authenticatedActorId, flowId, dbSession);

            FlowImpl flow = null;

            flow = (FlowImpl)dbSession.Load(typeof(FlowImpl), flowId);

            if (relations != null)
            {
                relations.Resolve(flow);
            }

            return(flow);
        }