org.sakaiproject.contentreview.turnitin.util.TIIFID Maven / Gradle / Ivy
/**
* Copyright (c) 2003 The Apereo Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/ecl2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.sakaiproject.contentreview.turnitin.util;
public enum TIIFID {
fid1 (1, new TIIParam[] {TIIParam.aid, TIIParam.diagnostic, TIIParam.dis,
TIIParam.encrypt, TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime,
TIIParam.said, TIIParam.uem, TIIParam.ufn, TIIParam.uid, TIIParam.uln,
TIIParam.upw, TIIParam.username, TIIParam.utp }),
fid2 (2, new TIIParam[] {TIIParam.aid, TIIParam.ced, TIIParam.cid,
TIIParam.cpw, TIIParam.ctl, TIIParam.diagnostic, TIIParam.dis,
TIIParam.encrypt, TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime,
TIIParam.said, TIIParam.uem, TIIParam.ufn, TIIParam.uid,
TIIParam.uln, TIIParam.upw, TIIParam.username, TIIParam.utp}),
fid3 (3, new TIIParam[] {
TIIParam.cid, TIIParam.ctl, // These two are not in the spec on page48
TIIParam.aid, TIIParam.diagnostic, TIIParam.dis, TIIParam.encrypt,
TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime, TIIParam.said,
TIIParam.tem, TIIParam.uem, TIIParam.ufn, TIIParam.uid, TIIParam.uln,
TIIParam.upw, TIIParam.username, TIIParam.utp}),
fid4 (4, new TIIParam[] {TIIParam.aid, TIIParam.assign, TIIParam.assignid,
TIIParam.ced, TIIParam.cid, TIIParam.ctl, TIIParam.diagnostic,
TIIParam.dis, TIIParam.dtdue, TIIParam.dtstart, TIIParam.encrypt,
TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime, TIIParam.newassign,
TIIParam.said, TIIParam.uem, TIIParam.ufn, TIIParam.uid,
TIIParam.uln, TIIParam.upw, TIIParam.username, TIIParam.utp}),
fid5 (5, new TIIParam[] {
TIIParam.aid, TIIParam.assign, TIIParam.assignid, TIIParam.cid,
TIIParam.ctl, TIIParam.diagnostic, TIIParam.dis, TIIParam.encrypt,
TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime, TIIParam.pfn,
TIIParam.pln, TIIParam.ptl, TIIParam.ptype, TIIParam.said,
TIIParam.tem, TIIParam.uem, TIIParam.ufn, TIIParam.uid, TIIParam.uln,
TIIParam.username, TIIParam.utp}),
fid6 (6, new TIIParam[] {
TIIParam.aid, TIIParam.assignid, TIIParam.cid, TIIParam.diagnostic,
TIIParam.dis, TIIParam.encrypt, TIIParam.fcmd, TIIParam.fid,
TIIParam.gmtime, TIIParam.oid, TIIParam.said, TIIParam.tem,
TIIParam.uem, TIIParam.ufn, TIIParam.uid, TIIParam.uln,
TIIParam.username, TIIParam.utp}),
fid10 (10, new TIIParam[] {TIIParam.aid, TIIParam.assign, TIIParam.assignid,
TIIParam.cid, TIIParam.ctl, TIIParam.diagnostic, TIIParam.dis,
TIIParam.encrypt, TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime,
TIIParam.said, TIIParam.tem, TIIParam.uem, TIIParam.ufn, TIIParam.uid,
TIIParam.uln, TIIParam.username, TIIParam.utp }),
fid17 (17, new TIIParam[] {TIIParam.aid, TIIParam.diagnostic, TIIParam.dis,
TIIParam.encrypt, TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime,
TIIParam.said, TIIParam.uem, TIIParam.ufn, TIIParam.uid,
TIIParam.uln, TIIParam.upw, TIIParam.username, TIIParam.utp}),
fid18 (18, new TIIParam[] {TIIParam.aid, TIIParam.diagnostic, TIIParam.dis,
TIIParam.encrypt, TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime,
TIIParam.said, TIIParam.uem, TIIParam.ufn, TIIParam.uid,
TIIParam.uln, TIIParam.upw, TIIParam.username, TIIParam.utp}),
fid19 (19, new TIIParam[] {TIIParam.aid, TIIParam.assign, TIIParam.assignid,
TIIParam.ced, TIIParam.cid, TIIParam.ctl, TIIParam.diagnostic,
TIIParam.dis, TIIParam.dtdue, TIIParam.dtstart, TIIParam.encrypt,
TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime, TIIParam.newassign,
TIIParam.said, TIIParam.tem, TIIParam.uem, TIIParam.ufn, TIIParam.uid,
TIIParam.uln, TIIParam.upw, TIIParam.username, TIIParam.utp}),
fid99 (99, new TIIParam[] {TIIParam.aid, TIIParam.diagnostic, TIIParam.encrypt,
TIIParam.fcmd, TIIParam.fid, TIIParam.gmtime,
TIIParam.uem, TIIParam.ufn, TIIParam.uln,TIIParam.utp});
/*
5,
6,
7,
8,
9,
10,
11,
12 */
public final int fidnum;
public final TIIParam[] md5params;
TIIFID(int fidnum, TIIParam[] md5params) {
this.fidnum = fidnum;
this.md5params = md5params;
}
public boolean includeParamInMD5(String paramname) {
boolean togo = false;
for (TIIParam param: md5params) {
if (param.toString().equals(paramname)) {
togo = true;
}
}
return togo;
}
public static TIIFID getFid(int fid) {
TIIFID togo = null;
for (TIIFID fidobj: TIIFID.values()) {
if (fidobj.fidnum == fid) {
togo = fidobj;
}
}
return togo;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy