Changeset 619


Ignore:
Timestamp:
08/23/14 06:17:27 (5 years ago)
Author:
jls17
Message:
  • archive target forms are now documented as "Archive" on the schema detail page
Location:
branches/work_311
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/work_311/ARApi.h

    r615 r619  
    6161// normally audit forms are just regular form, but to distinct we define and use our own constant 
    6262#define AR_SCHEMA_AUDIT        100 
     63#define AR_SCHEMA_ARCHIVE      101 
    6364 
    6465// to support our own xml object types used in lists 
  • branches/work_311/core/AREnum.cpp

    r615 r619  
    13921392        case AR_SCHEMA_VENDOR: return "Vendor"; 
    13931393        case AR_SCHEMA_AUDIT: return "Audit"; 
     1394        case AR_SCHEMA_ARCHIVE: return "Archive"; 
    13941395        default: return EnumDefault; 
    13951396        } 
  • branches/work_311/core/ARSchema.cpp

    r616 r619  
    329329} 
    330330 
     331bool CARSchema::IsArchiveTarget() 
     332{ 
     333        const ARArchiveInfoStruct &archive = GetArchiveInfo(); 
     334        return (archive.archiveType == AR_ARCHIVE_NONE && archive.archiveFrom[0] != 0); 
     335} 
     336 
    331337unsigned int CARSchema::GetInternalSchemaType() 
    332338{ 
     
    337343                schemaType = AR_SCHEMA_AUDIT; 
    338344        } 
     345        else if (IsArchiveTarget()) 
     346        { 
     347                schemaType = AR_SCHEMA_ARCHIVE; 
     348        } 
    339349 
    340350        return schemaType; 
  • branches/work_311/core/ARSchema.h

    r616 r619  
    106106        const CARSchemaList::ObjectRefList& GetWebservices(); 
    107107 
     108        bool IsArchiveTarget(); 
    108109        bool IsAuditTarget(); 
    109110        unsigned int GetInternalSchemaType(); 
  • branches/work_311/util/RefItem.cpp

    r614 r619  
    645645                strm << "Audit Source Form"; 
    646646                break; 
     647        case REFM_SCHEMA_ARCHIVE_SOURCE: 
     648                strm << "Archive Source Form"; 
     649                break; 
    647650        case REFM_WEBSERVICE_PROPERTY: 
    648651                strm << "Webservice Property"; 
  • branches/work_311/util/RefItem.h

    r614 r619  
    8989        REFM_SCHEMA_FTS_WEIGHTED_RELEVANCY_FIELD, 
    9090        REFM_SCHEMA_AUDIT_SOURCE, 
     91        REFM_SCHEMA_ARCHIVE_SOURCE, 
    9192 
    9293        // basic workflow references 
Note: See TracChangeset for help on using the changeset viewer.