public WBDocument(WBRecordsLibrary library) : base() { RecordsLibrary = library; WorkBox = null; DebugName = "<WBDocument>"; }
public WBDocument(WBRecordsLibrary library, SPListItemVersion item) : base(item) { RecordsLibrary = library; WorkBox = null; DebugName = "<WBDocument>"; }
public WBRecordsLibrary this[String libraryURL] { get { WBRecordsLibrary library = _libraries[libraryURL]; // if (!library.IsOpen) library.Open(); return(library); } }
public WBRecordsLibraries(WBRecordsManager manager) { WBLogging.Debug("In WBRecordsLibraries() constructor"); WBFarm farm = WBFarm.Local; Manager = manager; if (String.IsNullOrEmpty(farm.ProtectedRecordsLibraryUrl)) { WBLogging.RecordsTypes.Unexpected("The central, protected, master library has not been configured - so no records management is possible!"); return; } ProtectedMasterLibrary = new WBRecordsLibrary(this, farm.ProtectedRecordsLibraryUrl, WBRecordsLibrary.PROTECTIVE_ZONE__PROTECTED); Add(ProtectedMasterLibrary); AddIfMissing(farm.PublicRecordsLibraryUrl, WBRecordsLibrary.PROTECTIVE_ZONE__PUBLIC); AddIfMissing(farm.PublicExtranetRecordsLibraryUrl, WBRecordsLibrary.PROTECTIVE_ZONE__PUBLIC_EXTRANET); WBSubjectTagsRecordsRoutings routings = farm.SubjectTagsRecordsRoutings(null); List <String> extraPublicLibraries = routings.AllPublicLibraries(); foreach (String libraryURL in extraPublicLibraries) { AddIfMissing(libraryURL, WBRecordsLibrary.PROTECTIVE_ZONE__PUBLIC); } List <String> extraExtranetLibraries = routings.AllExtranetLibraries(); foreach (String libraryURL in extraExtranetLibraries) { AddIfMissing(libraryURL, WBRecordsLibrary.PROTECTIVE_ZONE__PUBLIC_EXTRANET); } WBLogging.Debug("Finished WBRecordsLibraries() constructor"); }
public void Add(WBRecordsLibrary library) { _libraries.Add(library.URL, library); }