예제 #1
0
파일: WBDocument.cs 프로젝트: OliSharpe/wbf
 public WBDocument(WBRecordsLibrary library)
     : base()
 {
     RecordsLibrary = library;
     WorkBox        = null;
     DebugName      = "<WBDocument>";
 }
예제 #2
0
파일: WBDocument.cs 프로젝트: OliSharpe/wbf
 public WBDocument(WBRecordsLibrary library, SPListItemVersion item)
     : base(item)
 {
     RecordsLibrary = library;
     WorkBox        = null;
     DebugName      = "<WBDocument>";
 }
예제 #3
0
        public WBRecordsLibrary this[String libraryURL]
        {
            get
            {
                WBRecordsLibrary library = _libraries[libraryURL];

                // if (!library.IsOpen) library.Open();

                return(library);
            }
        }
예제 #4
0
        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");
        }
예제 #5
0
 public void Add(WBRecordsLibrary library)
 {
     _libraries.Add(library.URL, library);
 }