Example #1
0
        public WBRecordsLibrary(WBRecordsLibraries libraries, String url, String protectiveZone)
        {
            WBLogging.Debug("In WBRecordsLibrary() constructor for: " + url);

            Libraries       = libraries;
            _url            = url;
            _protectiveZone = protectiveZone;

            WBLogging.Debug("Finished WBRecordsLibrary() constructor for: " + url);
        }
Example #2
0
        public WBRecordsManager(String callingUserLogin)
        {
            WBLogging.Debug("In WBRecordsManager() constructor");

            _farm             = WBFarm.Local;
            _libraries        = new WBRecordsLibraries(this);
            _callingUserLogin = callingUserLogin;

            WBLogging.Debug("Finished WBRecordsManager() constructor");
        }
Example #3
0
        public WBRecord(WBRecordsLibraries libraries, SPListItem masterRecordItem)
        {
            _libraries             = libraries;
            _protectedMasterRecord = new WBDocument(libraries.ProtectedMasterLibrary, masterRecordItem);;
            _recordID = _protectedMasterRecord.RecordID;

            if (String.IsNullOrEmpty(_recordID))
            {
                throw new Exception("You cannot create a WBRecord with a SPListItem that doesn't have a RecordID value!");
            }
        }
Example #4
0
        /// <summary>
        /// This constructor should only be used to create a newly declared record
        /// </summary>
        /// <param name="libraries"></param>
        /// <param name="newMasterRecordDocument"></param>
        public WBRecord(WBRecordsLibraries libraries, SPListItem newRecordItem, String newRecordID, WBDocument originalDocument, WBItem extraMetadata)
        {
            _libraries             = libraries;
            _protectedMasterRecord = new WBDocument(libraries.ProtectedMasterLibrary, newRecordItem);
            _recordID = newRecordID;

            Metadata.CopyColumns(originalDocument, WBRecord.DefaultColumnsToCopy);
            Metadata.CopyColumns(extraMetadata);

            // Now make sure that the record ID is set correctly:
            Metadata.RecordID = newRecordID;

//            UpdateWhichLibrariesNeedACopy();
//          CheckAllCopiesAreLoaded();
        }
Example #5
0
 public WBRecord(WBRecordsLibraries libraries, String recordID)
 {
     _libraries = libraries;
     _recordID  = recordID;
 }