SobekCM.Library.ItemViewer.Viewers.Restricted_ItemViewer.Restricted_ItemViewer C# (CSharp) Method

Restricted_ItemViewer() public method

Constructor for a new instance of the Restricted_ItemViewer class, used display the applicable restricted message for a digital resource which is currently restricted due to IP restrictions
public Restricted_ItemViewer ( BriefItemInfo BriefItem, User_Object CurrentUser, Navigation_Object CurrentRequest ) : System
BriefItem BriefItemInfo Digital resource object
CurrentUser User_Object Current user, who may or may not be logged on
CurrentRequest SobekCM.Core.Navigation.Navigation_Object Information about the current request
return System
        public Restricted_ItemViewer(BriefItemInfo BriefItem, User_Object CurrentUser, Navigation_Object CurrentRequest)
        {
            // Save the arguments for use later
            this.BriefItem = BriefItem;
            this.CurrentUser = CurrentUser;
            this.CurrentRequest = CurrentRequest;

            // Set the behavior properties to the empy behaviors ( in the base class )
            Behaviors = EmptyBehaviors;
        }