C# 클래스 SobekCM.Library.ItemViewer.Viewers.MultiVolumes_ItemViewer_Prototyper

Multi-volume viewer prototyper, which is used to check to see if there are other volumes to display, to create the link in the main menu, and to create the viewer itself if the user selects that option
상속: iItemViewerPrototyper
파일 보기 프로젝트 열기: MarkVSullivan/SobekCM-Web-Application

공개 메소드들

메소드 설명
Add_Menu_items ( BriefItemInfo CurrentItem, User_Object CurrentUser, Navigation_Object CurrentRequest, List MenuItems, bool IpRestricted ) : void

Gets the menu items related to this viewer that should be included on the main item (digital resource) menu

Create_Viewer ( BriefItemInfo CurrentItem, User_Object CurrentUser, Navigation_Object CurrentRequest, Custom_Tracer Tracer ) : iItemViewer

Creates and returns the an instance of the MultiVolumes_ItemViewer class for showing the volumes (VIDs) that are associated with a single BibID during execution of a single HTTP request.

This method is called whenever a request requires the actual viewer to be created to render the HTML for the digital resource requested. The created viewer is then destroyed at the end of the request

Has_Access ( BriefItemInfo CurrentItem, User_Object CurrentUser, bool IpRestricted ) : bool

Flag indicates if the current user has access to this viewer for the item

Include_Viewer ( BriefItemInfo CurrentItem ) : bool

Indicates if the specified item matches the basic requirements for this viewer, or if this viewer should be ignored for this item

MultiVolumes_ItemViewer_Prototyper ( ) : System

Constructor for a new instance of the MultiVolumes_ItemViewer_Prototyper class

Override_On_Checkout ( BriefItemInfo CurrentItem ) : bool

Flag indicates if this viewer should be override on checkout

메소드 상세

Add_Menu_items() 공개 메소드

Gets the menu items related to this viewer that should be included on the main item (digital resource) menu
public Add_Menu_items ( BriefItemInfo CurrentItem, User_Object CurrentUser, Navigation_Object CurrentRequest, List MenuItems, bool IpRestricted ) : void
CurrentItem SobekCM.Core.BriefItem.BriefItemInfo Digital resource object, which can be used to ensure if and how this viewer should appear /// in the main item (digital resource) menu
CurrentUser SobekCM.Core.Users.User_Object Current user, who may or may not be logged on
CurrentRequest SobekCM.Core.Navigation.Navigation_Object Information about the current request
MenuItems List List of menu items, to which this method may add one or more menu items
IpRestricted bool Flag indicates if this item is IP restricted AND if the current user is outside the ranges
리턴 void

Create_Viewer() 공개 메소드

Creates and returns the an instance of the MultiVolumes_ItemViewer class for showing the volumes (VIDs) that are associated with a single BibID during execution of a single HTTP request.
This method is called whenever a request requires the actual viewer to be created to render the HTML for the digital resource requested. The created viewer is then destroyed at the end of the request
public Create_Viewer ( BriefItemInfo CurrentItem, User_Object CurrentUser, Navigation_Object CurrentRequest, Custom_Tracer Tracer ) : iItemViewer
CurrentItem SobekCM.Core.BriefItem.BriefItemInfo Digital resource object
CurrentUser SobekCM.Core.Users.User_Object Current user, who may or may not be logged on
CurrentRequest SobekCM.Core.Navigation.Navigation_Object Information about the current request
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
리턴 iItemViewer

Has_Access() 공개 메소드

Flag indicates if the current user has access to this viewer for the item
public Has_Access ( BriefItemInfo CurrentItem, User_Object CurrentUser, bool IpRestricted ) : bool
CurrentItem SobekCM.Core.BriefItem.BriefItemInfo Digital resource to see if the current user has correct permissions to use this viewer
CurrentUser SobekCM.Core.Users.User_Object Current user, who may or may not be logged on
IpRestricted bool Flag indicates if this item is IP restricted AND if the current user is outside the ranges
리턴 bool

Include_Viewer() 공개 메소드

Indicates if the specified item matches the basic requirements for this viewer, or if this viewer should be ignored for this item
public Include_Viewer ( BriefItemInfo CurrentItem ) : bool
CurrentItem SobekCM.Core.BriefItem.BriefItemInfo Digital resource to examine to see if this viewer really should be included
리턴 bool

MultiVolumes_ItemViewer_Prototyper() 공개 메소드

Constructor for a new instance of the MultiVolumes_ItemViewer_Prototyper class
public MultiVolumes_ItemViewer_Prototyper ( ) : System
리턴 System

Override_On_Checkout() 공개 메소드

Flag indicates if this viewer should be override on checkout
public Override_On_Checkout ( BriefItemInfo CurrentItem ) : bool
CurrentItem SobekCM.Core.BriefItem.BriefItemInfo Digital resource to examine to see if this viewer should really be overriden
리턴 bool