diff --git a/o2server/create.sql b/o2server/create.sql new file mode 100644 index 0000000000000000000000000000000000000000..d8062b4032d19ce2507a231eb7fc3c1a0ac8094e --- /dev/null +++ b/o2server/create.sql @@ -0,0 +1,2819 @@ +CREATE TABLE ARA_DISTRICT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcenter VARCHAR(255), xcity VARCHAR(64), xcityCode VARCHAR(255), xdistrict VARCHAR(64), xlevel VARCHAR(255), xname VARCHAR(255), xprovince VARCHAR(64), xsha VARCHAR(255), xzipCode VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ARA_DISTRICT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_ADMIN (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xadminLevel VARCHAR(96), xadminName VARCHAR(96), xunitName VARCHAR(255), xunitOu VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_ADMIN_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_APPEALINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xaddress VARCHAR(255), xappealDateString VARCHAR(32), xappealDescription CLOB, xappealReason VARCHAR(64), xarchiveTime VARCHAR(32), xcurrentProcessor VARCHAR(255), xdetailId VARCHAR(64), xempName VARCHAR(255), xendTime VARCHAR(32), xmonthString VARCHAR(16), xopinion1 VARCHAR(255), xopinion2 VARCHAR(255), xprocessPerson1 VARCHAR(255), xprocessPerson2 VARCHAR(255), xprocessPersonTopUnit1 VARCHAR(255), xprocessPersonTopUnit2 VARCHAR(255), xprocessPersonUnit1 VARCHAR(255), xprocessPersonUnit2 VARCHAR(255), xprocessTime1 TIMESTAMP, xprocessTime2 TIMESTAMP, xreason CLOB, xrecordDate TIMESTAMP, xrecordDateString VARCHAR(32), xselfHolidayType VARCHAR(64), xstartTime VARCHAR(32), xstatus INTEGER, xtopUnitName VARCHAR(255), xunitName VARCHAR(255), xyearString VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_APPEALINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_DETAIL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xabnormalDutyDayTime VARCHAR(32), xabsence DOUBLE, xabsentDayTime VARCHAR(32), xappealDescription CLOB, xappealProcessor VARCHAR(255), xappealReason VARCHAR(64), xappealStatus INTEGER, xarchiveTime VARCHAR(32), xattendance DOUBLE, xbatchName VARCHAR(96), xcycleMonth VARCHAR(16), xcycleYear VARCHAR(16), xdescription VARCHAR(255), xempName VARCHAR(96), xempNo VARCHAR(96), xgetSelfHolidayDays DOUBLE, xisAbnormalDuty BOOLEAN, xisAbsent BOOLEAN, xisGetSelfHolidays BOOLEAN, xisHoliday BOOLEAN, xisLackOfTime BOOLEAN, xisLate BOOLEAN, xisLeaveEarlier BOOLEAN, xisWeekend BOOLEAN, xisWorkOvertime BOOLEAN, xisWorkday BOOLEAN, xlateTimeDuration BIGINT, xleaveEarlierTimeDuration BIGINT, xmonthString VARCHAR(16), xoffDutyTime VARCHAR(32), xoffWorkTime VARCHAR(32), xonDutyTime VARCHAR(32), xonWorkTime VARCHAR(32), xrecordDate TIMESTAMP, xrecordDateString VARCHAR(32), xrecordStatus INTEGER, xselfHolidayDayTime VARCHAR(32), xtopUnitName VARCHAR(255), xunitName VARCHAR(255), xworkOvertimeTimeDuration BIGINT, xworkTimeDuration BIGINT, xyearString VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_DETAIL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_DETAIL_MOBILE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xempName VARCHAR(96), xempNo VARCHAR(96), xlatitude VARCHAR(32), xlongitude VARCHAR(32), xoptMachineType VARCHAR(32), xoptSystemName VARCHAR(32), xrecordAddress VARCHAR(255), xrecordDate TIMESTAMP, xrecordDateString VARCHAR(32), xrecordStatus INTEGER, xsignDescription VARCHAR(128), xsignTime VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_DETAIL_MOBILE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_DINGTALK (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbaseCheckTime BIGINT, xcheckType VARCHAR(32), xddID BIGINT, xgroupId BIGINT, xlocationResult VARCHAR(32), xo2Unit VARCHAR(128), xo2User VARCHAR(128), xplanId BIGINT, xrecordId BIGINT, xsourceType VARCHAR(32), xtimeResult VARCHAR(32), xuserCheckTime BIGINT, xuserCheckTimeDate TIMESTAMP, xuserId VARCHAR(96), xworkDate BIGINT, PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_DINGTALK_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_EMPLOYEE_CONFIG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconfigType VARCHAR(16), xempInTopUnitTime VARCHAR(32), xemployeeName VARCHAR(96), xemployeeNumber VARCHAR(96), xtopUnitName VARCHAR(255), xtopUnitOu VARCHAR(255), xunitName VARCHAR(255), xunitOu VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_EMPLOYEE_CONFIG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_IMPORTFILE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorUid VARCHAR(64), xcurrentProcessName VARCHAR(32), xdataContent CLOB, xdescription VARCHAR(255), xendDate TIMESTAMP, xerrorContent CLOB, xextension VARCHAR(16), xfileBody BLOB, xfileName VARCHAR(255), xfileStatus VARCHAR(16), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xprocessCount BIGINT, xprocessing BOOLEAN, xrecordTotle BIGINT, xrowCount BIGINT, xsite VARCHAR(64), xstartDate TIMESTAMP, xtempFilePath VARCHAR(255), xvalidateOk BOOLEAN, PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_IMPORTFILE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_QYWX (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcheckin_time BIGINT, xcheckin_type VARCHAR(128), xexception_type VARCHAR(255), xgroupname VARCHAR(128), xlocation_detail VARCHAR(255), xlocation_title VARCHAR(255), xnotes VARCHAR(255), xuserid VARCHAR(96), xwifiname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_QYWX_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_SCHEDULE_SETTING (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xabsenceStartTime VARCHAR(32), xlateStartTime VARCHAR(32), xleaveEarlyStartTime VARCHAR(32), xoffDutyTime VARCHAR(32), xonDutyTime VARCHAR(32), xtopUnitName VARCHAR(255), xunitName VARCHAR(255), xunitOu VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_SCHEDULE_SETTING_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_SELFHOLIDAYS (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbatchFlag VARCHAR(64), xdescription VARCHAR(255), xdocId VARCHAR(64), xemployeeName VARCHAR(96), xemployeeNumber VARCHAR(32), xendTime TIMESTAMP, xleaveDayNumber DOUBLE, xleaveType VARCHAR(32), xstartTime TIMESTAMP, xtopUnitName VARCHAR(255), xtopUnitOu VARCHAR(255), xunitName VARCHAR(255), xunitOu VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_SELFHOLIDAYS_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_SETTING (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconfigCode VARCHAR(96), xconfigName VARCHAR(96), xconfigValue VARCHAR(255), xdescription VARCHAR(255), xisMultiple BOOLEAN, xorderNumber INTEGER, xselectContent VARCHAR(255), xvalueType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_SETTING_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_STATISTIC_REQUIRELOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription CLOB, xprocessStatus VARCHAR(255), xprocessTime TIMESTAMP, xstatisticDay VARCHAR(96), xstatisticKey VARCHAR(96), xstatisticMonth VARCHAR(96), xstatisticName VARCHAR(96), xstatisticType VARCHAR(96), xstatisticYear VARCHAR(96), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_STATISTIC_REQUIRELOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_ATTENDANCE_WORKDAYCONFIG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconfigDate VARCHAR(32), xconfigMonth VARCHAR(16), xconfigName VARCHAR(96), xconfigType VARCHAR(16), xconfigYear VARCHAR(16), xdescription VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_ATTENDANCE_WORKDAYCONFIG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_DD_QYWX_RECORD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdateFrom BIGINT, xdateTo BIGINT, xsyncEndTime TIMESTAMP, xexceptionMessage VARCHAR(255), xsyncStartTime TIMESTAMP, xstatus VARCHAR(32), xtype VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT ATDC_DD_QYWX_RECORD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_CYCLE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcycleEndDate TIMESTAMP, xcycleEndDateString VARCHAR(32), xcycleMonth VARCHAR(16), xcycleStartDate TIMESTAMP, xcycleStartDateString VARCHAR(32), xcycleYear VARCHAR(16), xdescription VARCHAR(255), xtopUnitName VARCHAR(255), xunitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_CYCLE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_DD_PERSON_FORMONTH (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xAbsenteeismTimes BIGINT, xlateTimes BIGINT, xleaveEarlyTimes BIGINT, xNotSignedCount BIGINT, xo2Unit VARCHAR(128), xo2User VARCHAR(128), xoffDutyTimes BIGINT, xonDutyTimes BIGINT, xresultNormal BIGINT, xSeriousLateTimes BIGINT, xstatisticMonth VARCHAR(16), xstatisticYear VARCHAR(16), xworkDayCount BIGINT, PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_DD_PERSON_FORMONTH_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_DD_UNIT_FORDAY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xAbsenteeismTimes BIGINT, xlateTimes BIGINT, xleaveEarlyTimes BIGINT, xNotSignedCount BIGINT, xo2Unit VARCHAR(128), xoffDutyTimes BIGINT, xonDutyTimes BIGINT, xresultNormal BIGINT, xSeriousLateTimes BIGINT, xstatisticDate VARCHAR(16), xstatisticMonth VARCHAR(16), xstatisticYear VARCHAR(16), xworkDayCount BIGINT, PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_DD_UNIT_FORDAY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_DD_UNIT_FORMONTH (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xAbsenteeismTimes BIGINT, xlateTimes BIGINT, xleaveEarlyTimes BIGINT, xNotSignedCount BIGINT, xo2Unit VARCHAR(128), xoffDutyTimes BIGINT, xonDutyTimes BIGINT, xresultNormal BIGINT, xSeriousLateTimes BIGINT, xstatisticMonth VARCHAR(16), xstatisticYear VARCHAR(16), xworkDayCount BIGINT, PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_DD_UNIT_FORMONTH_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_PERSON_FORMONTH (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xabNormalDutyCount BIGINT, xabsenceDayCount DOUBLE, xemployeeName VARCHAR(96), xlackOfTimeCount BIGINT, xlateTimes BIGINT, xleaveEarlyTimes BIGINT, xoffDutyTimes BIGINT, xonDutyDayCount DOUBLE, xonDutyTimes BIGINT, xonSelfHolidayCount DOUBLE, xstatisticMonth VARCHAR(16), xstatisticYear VARCHAR(16), xtopUnitName VARCHAR(255), xunitName VARCHAR(255), xworkDayCount DOUBLE, PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_PERSON_FORMONTH_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_TOPUNIT_FORDAY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xabNormalDutyCount BIGINT, xabsenceDayCount DOUBLE, xemployeeCount DOUBLE, xlackOfTimeCount BIGINT, xlateCount BIGINT, xleaveEarlyCount BIGINT, xoffDutyCount BIGINT, xonDutyCount BIGINT, xonDutyEmployeeCount DOUBLE, xonSelfHolidayEmployeeCount DOUBLE, xstatisticDate VARCHAR(16), xstatisticMonth VARCHAR(16), xstatisticYear VARCHAR(16), xtopUnitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_TOPUNIT_FORDAY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_TOPUNIT_FORMONTH (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xabNormalDutyCount BIGINT, xabsenceDayCount DOUBLE, xemployeeCount DOUBLE, xlackOfTimeCount BIGINT, xlateCount BIGINT, xleaveEarlyCount BIGINT, xoffDutyCount BIGINT, xonDutyCount BIGINT, xonDutyEmployeeCount DOUBLE, xonSelfHolidayCount DOUBLE, xstatisticMonth VARCHAR(16), xstatisticYear VARCHAR(16), xtopUnitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_TOPUNIT_FORMONTH_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_UNIT_FORDAY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xabNormalDutyCount BIGINT, xabsenceDayCount DOUBLE, xemployeeCount DOUBLE, xlackOfTimeCount BIGINT, xlateCount BIGINT, xleaveEarlyCount BIGINT, xoffDutyCount BIGINT, xonDutyCount BIGINT, xonDutyEmployeeCount DOUBLE, xonSelfHolidayEmployeeCount DOUBLE, xstatisticDate VARCHAR(16), xstatisticMonth VARCHAR(16), xstatisticYear VARCHAR(16), xtopUnitName VARCHAR(255), xunitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_UNIT_FORDAY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_STATISTIC_UNIT_FORMONTH (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xabNormalDutyCount BIGINT, xabsenceDayCount DOUBLE, xemployeeCount DOUBLE, xlackOfTimeCount BIGINT, xlateCount BIGINT, xleaveEarlyCount BIGINT, xoffDutyCount BIGINT, xonDutyCount BIGINT, xonDutyEmployeeCount DOUBLE, xonSelfHolidayCount DOUBLE, xstatisticMonth VARCHAR(16), xstatisticYear VARCHAR(16), xtopUnitName VARCHAR(255), xunitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_STATISTIC_UNIT_FORMONTH_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ATDC_WORK_PLACE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreator VARCHAR(255), xdescription VARCHAR(255), xerrorRange INTEGER, xlatitude VARCHAR(32), xlongitude VARCHAR(32), xplaceAlias VARCHAR(255), xplaceName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ATDC_WORK_PLACE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_CONFIGSETTING (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconfigCode VARCHAR(32), xconfigName VARCHAR(32), xconfigValue VARCHAR(255), xdescription VARCHAR(255), xisMultiple BOOLEAN, xorderNumber INTEGER, xselectContent VARCHAR(255), xvalueType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT BBS_CONFIGSETTING_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_FORUMINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorName VARCHAR(255), xforumColor VARCHAR(32), xforumIndexStyle VARCHAR(16), xforumName VARCHAR(128), xforumNotice CLOB, xforumStatus VARCHAR(16), xforumVisible VARCHAR(16), xindexListStyle VARCHAR(16), xindexRecommendable BOOLEAN, xorderNumber INTEGER, xreplyMessageNotify BOOLEAN, xreplyMessageNotifyType VARCHAR(16), xreplyNeedAudit BOOLEAN, xreplyPublishAble VARCHAR(16), xreplyTotal BIGINT, xreplyTotalToday BIGINT, xsectionCreateAble BOOLEAN, xsectionTotal BIGINT, xsubjectMessageNotify BOOLEAN, xsubjectMessageNotifyType VARCHAR(16), xsubjectNeedAudit BOOLEAN, xsubjectPublishAble VARCHAR(16), xsubjectTotal BIGINT, xsubjectTotalToday BIGINT, xsubjectType VARCHAR(255), xtypeCategory VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT BBS_FORUMINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_FORUMINFO_forumManagerList (BBSFORUMINFO_XID VARCHAR(64), xforumManagerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE BBS_FORUMINFO_publishPermissionList (BBSFORUMINFO_XID VARCHAR(64), xpublishPermissionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE BBS_FORUMINFO_replyPermissionList (BBSFORUMINFO_XID VARCHAR(64), xreplyPermissionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE BBS_FORUMINFO_visiblePermissionList (BBSFORUMINFO_XID VARCHAR(64), xvisiblePermissionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE BBS_OPERATIONRECORD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xforumId VARCHAR(64), xforumName VARCHAR(128), xhostIp VARCHAR(32), xhostname VARCHAR(32), xmainSectionId VARCHAR(64), xmainSectionName VARCHAR(128), xobjectId VARCHAR(255), xobjectName VARCHAR(255), xobjectType VARCHAR(16), xoperatorName VARCHAR(255), xoptType VARCHAR(16), xsectionId VARCHAR(64), xsectionName VARCHAR(128), xsubjectId VARCHAR(64), xtitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT BBS_OPERATIONRECORD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_PERMISSIONINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xforumId VARCHAR(64), xforumName VARCHAR(128), xmainSectionId VARCHAR(64), xmainSectionName VARCHAR(128), xorderNumber INTEGER, xpermissionCode VARCHAR(255), xpermissionFunction VARCHAR(64), xpermissionName VARCHAR(255), xpermissionType VARCHAR(32), xsectionId VARCHAR(64), xsectionName VARCHAR(128), PRIMARY KEY (xid), CONSTRAINT BBS_PERMISSIONINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_PERMISSIONROLE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xforumId VARCHAR(64), xforumName VARCHAR(128), xmainSectionId VARCHAR(64), xmainSectionName VARCHAR(128), xorderNumber INTEGER, xpermissionCode VARCHAR(255), xpermissionName VARCHAR(255), xpermissionType VARCHAR(32), xroleCode VARCHAR(255), xroleId VARCHAR(64), xroleName VARCHAR(255), xsectionId VARCHAR(64), xsectionName VARCHAR(128), PRIMARY KEY (xid), CONSTRAINT BBS_PERMISSIONROLE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_REPLYINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xauditorName VARCHAR(255), xcontent CLOB, xcreatorName VARCHAR(255), xforumId VARCHAR(64), xforumName VARCHAR(128), xhostIp VARCHAR(32), xmachineName VARCHAR(32), xmainSectionId VARCHAR(64), xmainSectionName VARCHAR(128), xorderNumber INTEGER, xparentId VARCHAR(64), xpicId VARCHAR(64), xreplyAuditStatus VARCHAR(16), xsectionId VARCHAR(64), xsectionName VARCHAR(128), xsubjectId VARCHAR(64), xsystemType VARCHAR(64), xtitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT BBS_REPLYINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_ROLEINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorName VARCHAR(255), xdescription VARCHAR(255), xforumId VARCHAR(64), xforumName VARCHAR(128), xmainSectionId VARCHAR(64), xmainSectionName VARCHAR(128), xorderNumber INTEGER, xroleCode VARCHAR(255), xroleName VARCHAR(255), xroleType VARCHAR(32), xsectionId VARCHAR(64), xsectionName VARCHAR(128), PRIMARY KEY (xid), CONSTRAINT BBS_ROLEINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_SECTIONINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorName VARCHAR(255), xforumId VARCHAR(64), xforumName VARCHAR(128), xicon CLOB, xindexRecommendable BOOLEAN, xmainSectionId VARCHAR(64), xmainSectionName VARCHAR(128), xorderNumber INTEGER, xreplyMessageNotify BOOLEAN, xreplyMessageNotifyType VARCHAR(16), xreplyNeedAudit BOOLEAN, xreplyPublishAble VARCHAR(16), xreplyTotal BIGINT, xreplyTotalToday BIGINT, xsectionDescription CLOB, xsectionLevel VARCHAR(16), xsectionName VARCHAR(128), xsectionNotice CLOB, xsectionStatus VARCHAR(16), xsectionType VARCHAR(32), xsectionVisible VARCHAR(16), xsubSectionCreateAble BOOLEAN, xsubjectMessageNotify BOOLEAN, xsubjectMessageNotifyType VARCHAR(16), xsubjectNeedAudit BOOLEAN, xsubjectPublishAble VARCHAR(16), xsubjectTotal BIGINT, xsubjectTotalToday BIGINT, xsubjectType VARCHAR(255), xtypeCategory VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT BBS_SECTIONINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_SECTIONINFO_moderatorNames (BBSSECTIONINFO_XID VARCHAR(64), xmoderatorNames VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE BBS_SECTIONINFO_publishPermissionList (BBSSECTIONINFO_XID VARCHAR(64), xpublishPermissionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE BBS_SECTIONINFO_replyPermissionList (BBSSECTIONINFO_XID VARCHAR(64), xreplyPermissionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE BBS_SECTIONINFO_visiblePermissionList (BBSSECTIONINFO_XID VARCHAR(64), xvisiblePermissionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE BBS_SUBJECTATTACHMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorUid VARCHAR(64), xdeepPath BOOLEAN, xdescription VARCHAR(255), xextension VARCHAR(16), xfileHost VARCHAR(32), xfileName VARCHAR(255), xfilePath VARCHAR(255), xforumId VARCHAR(64), xforumName VARCHAR(128), xlastUpdateTime TIMESTAMP, xlength BIGINT, xmainSectionId VARCHAR(64), xmainSectionName VARCHAR(128), xname VARCHAR(255), xsectionId VARCHAR(64), xsectionName VARCHAR(128), xsite VARCHAR(64), xstorage VARCHAR(64), xsubjectId VARCHAR(64), xtitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT BBS_SUBJECTATTACHMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_SUBJECTCONTENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent CLOB, PRIMARY KEY (xid), CONSTRAINT BBS_SUBJECTCONTENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_SUBJECTINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xacceptReplyId VARCHAR(64), xauditorName VARCHAR(255), xbBSIndexSetterName VARCHAR(32), xbBSIndexSetterTime TIMESTAMP, xcreatorName VARCHAR(255), xforumId VARCHAR(64), xforumIndexSetterName VARCHAR(255), xforumIndexSetterTime TIMESTAMP, xforumName VARCHAR(128), xhostIp VARCHAR(64), xhot BIGINT, xisCompleted BOOLEAN, xisCreamSubject BOOLEAN, xisOriginalSubject BOOLEAN, xisRecommendSubject BOOLEAN, xisTopSubject BOOLEAN, xlatestReplyId VARCHAR(64), xlatestReplyTime TIMESTAMP, xlatestReplyUser VARCHAR(255), xmachineName VARCHAR(64), xmainSectionId VARCHAR(64), xmainSectionName VARCHAR(128), xorderNumber INTEGER, xoriginalSetterName VARCHAR(255), xoriginalSetterTime TIMESTAMP, xpicId VARCHAR(64), xrecommendTime TIMESTAMP, xrecommendToBBSIndex BOOLEAN, xrecommendToForumIndex BOOLEAN, xrecommendorName VARCHAR(255), xreplyTotal BIGINT, xscreamSetterName VARCHAR(255), xscreamSetterTime TIMESTAMP, xsectionId VARCHAR(64), xsectionName VARCHAR(128), xstopReply BOOLEAN, xsubjectAuditStatus VARCHAR(16), xsubjectStatus VARCHAR(16), xsummary VARCHAR(255), xsystemType VARCHAR(64), xtitle VARCHAR(128), xtopToBBS BOOLEAN, xtopToForum BOOLEAN, xtopToMainSection BOOLEAN, xtopToSection BOOLEAN, xtype VARCHAR(64), xtypeCategory VARCHAR(64), xviewTotal BIGINT, xvoteLimitTime TIMESTAMP, xvotePersonVisible BOOLEAN, xvoteResultVisible BOOLEAN, PRIMARY KEY (xid), CONSTRAINT BBS_SUBJECTINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_SUBJECTINFO_attachmentList (BBSSUBJECTINFO_XID VARCHAR(64), xattachmentList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE BBS_SUBJECT_VOTERESULT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xforumId VARCHAR(64), xmainSectionId VARCHAR(64), xsectionId VARCHAR(64), xstatisticContent CLOB, PRIMARY KEY (xid), CONSTRAINT BBS_SUBJECT_VOTERESULT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_USERINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcardId VARCHAR(32), xcreamCount BIGINT, xcredit BIGINT, xfansCount BIGINT, xlastOperationTime TIMESTAMP, xlastVisitTime TIMESTAMP, xmobile VARCHAR(16), xnickName VARCHAR(255), xonline BOOLEAN, xorderNumber INTEGER, xoriginalCount BIGINT, xpermissionContent CLOB, xpopularity BIGINT, xreplyCount BIGINT, xreplyCountToday BIGINT, xsex INTEGER, xsignContent CLOB, xsubjectCount BIGINT, xsubjectCountToday BIGINT, xuserName VARCHAR(255), xuserStatus VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT BBS_USERINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_USERROLE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xforumId VARCHAR(64), xmainSectionId VARCHAR(64), xobjectName VARCHAR(255), xobjectType VARCHAR(16), xorderNumber INTEGER, xroleCode VARCHAR(255), xroleId VARCHAR(255), xroleName VARCHAR(255), xsectionId VARCHAR(64), xtopUnitName VARCHAR(255), xuniqueId VARCHAR(255), xunitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT BBS_USERROLE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_VOTEOPTION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xchooseCount INTEGER, xcreatorName VARCHAR(255), xforumId VARCHAR(64), xmainSectionId VARCHAR(64), xoptionContentType VARCHAR(32), xoptionGroupId VARCHAR(64), xoptionPictureId VARCHAR(64), xoptionTextContent VARCHAR(255), xorderNumber INTEGER, xsectionId VARCHAR(64), xsubjectId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT BBS_VOTEOPTION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_VOTEOPTIONGROUP (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorName VARCHAR(255), xforumId VARCHAR(64), xgroupName VARCHAR(255), xmainSectionId VARCHAR(64), xorderNumber INTEGER, xsectionId VARCHAR(64), xsubjectId VARCHAR(64), xvoteChooseCount INTEGER, PRIMARY KEY (xid), CONSTRAINT BBS_VOTEOPTIONGROUP_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE BBS_VOTERECORD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xforumId VARCHAR(64), xmainSectionId VARCHAR(64), xoptionGroupId VARCHAR(64), xoptionId VARCHAR(64), xoptionValue VARCHAR(255), xsectionId VARCHAR(64), xsubjectId VARCHAR(64), xvotorName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT BBS_VOTERECORD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CAL_CALENDAR (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcolor VARCHAR(8), xcreateor VARCHAR(255), xdescription VARCHAR(255), xisPublic BOOLEAN, xname VARCHAR(64), xsource VARCHAR(16), xstatus VARCHAR(16), xtarget VARCHAR(255), xtype VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT CAL_CALENDAR_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CAL_CALENDAR_followers (CALENDAR_XID VARCHAR(64), xfollowers VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_CALENDAR_manageablePersonList (CALENDAR_XID VARCHAR(64), xmanageablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_CALENDAR_publishableGroupList (CALENDAR_XID VARCHAR(64), xpublishableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_CALENDAR_publishablePersonList (CALENDAR_XID VARCHAR(64), xpublishablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_CALENDAR_publishableUnitList (CALENDAR_XID VARCHAR(64), xpublishableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_CALENDAR_viewableGroupList (CALENDAR_XID VARCHAR(64), xviewableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_CALENDAR_viewablePersonList (CALENDAR_XID VARCHAR(64), xviewablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_CALENDAR_viewableUnitList (CALENDAR_XID VARCHAR(64), xviewableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalarm BOOLEAN, xalarmAlready BOOLEAN, xalarmTime TIMESTAMP, xbundle VARCHAR(255), xcalendarId VARCHAR(64), xcolor VARCHAR(8), xcomment VARCHAR(255), xcommentId VARCHAR(64), xcreatePerson VARCHAR(255), xdaysOfDuration INTEGER, xendTime TIMESTAMP, xendTimeStr VARCHAR(32), xeventType VARCHAR(16), xisAllDayEvent BOOLEAN, xisPublic BOOLEAN, xlatitude VARCHAR(32), xlocationName VARCHAR(255), xlongitude VARCHAR(32), xrecurrenceExc VARCHAR(255), xrecurrenceRule VARCHAR(255), xrepeatMasterId VARCHAR(64), xsource VARCHAR(16), xstartTime TIMESTAMP, xstartTimeStr VARCHAR(32), xtargetType VARCHAR(16), xtitle VARCHAR(128), xupdatePerson VARCHAR(255), xvalarmTime_config VARCHAR(32), xvalarm_Summary VARCHAR(128), xvalarm_description VARCHAR(255), xvalarm_mailto VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CAL_EVENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CAL_EVENT_COMMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcheckTime TIMESTAMP, lobValue CLOB, PRIMARY KEY (xid), CONSTRAINT CAL_EVENT_COMMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CAL_EVENT_manageablePersonList (CALENDAR_EVENT_XID VARCHAR(64), xmanageablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_participants (CALENDAR_EVENT_XID VARCHAR(64), xparticipants VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_REPM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalarm BOOLEAN, xalarmTime TIMESTAMP, xcalendarId VARCHAR(64), xcolor VARCHAR(8), xcomment VARCHAR(255), xcommentId VARCHAR(64), xcreatePerson VARCHAR(255), xdaysOfDuration INTEGER, xendTime TIMESTAMP, xeventType VARCHAR(16), xisAllDayEvent BOOLEAN, xisPublic BOOLEAN, xlatitude VARCHAR(32), xlocationName VARCHAR(255), xlongitude VARCHAR(32), xrecurrenceExc VARCHAR(255), xrecurrenceRule VARCHAR(255), xrecurrenceStartTime TIMESTAMP, xrepeatStatus VARCHAR(16), xsource VARCHAR(16), xstartTime TIMESTAMP, xtargetType VARCHAR(16), xtitle VARCHAR(128), xupdatePerson VARCHAR(255), xvalarmTime_config VARCHAR(32), xvalarm_Summary VARCHAR(128), xvalarm_description VARCHAR(255), xvalarm_mailto VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CAL_EVENT_REPM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CAL_EVENT_REPM_createdMonthList (CALENDAR_EVENTREPEATMASTER_XID VARCHAR(64), xcreatedMonthList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_REPM_manageablePersonList (CALENDAR_EVENTREPEATMASTER_XID VARCHAR(64), xmanageablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_REPM_participants (CALENDAR_EVENTREPEATMASTER_XID VARCHAR(64), xparticipants VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_REPM_viewableGroupList (CALENDAR_EVENTREPEATMASTER_XID VARCHAR(64), xviewableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_REPM_viewablePersonList (CALENDAR_EVENTREPEATMASTER_XID VARCHAR(64), xviewablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_REPM_viewableUnitList (CALENDAR_EVENTREPEATMASTER_XID VARCHAR(64), xviewableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_viewableGroupList (CALENDAR_EVENT_XID VARCHAR(64), xviewableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_viewablePersonList (CALENDAR_EVENT_XID VARCHAR(64), xviewablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_EVENT_viewableUnitList (CALENDAR_EVENT_XID VARCHAR(64), xviewableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CAL_SETTING (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconfigCode VARCHAR(96), xconfigName VARCHAR(96), xconfigValue VARCHAR(255), xdescription VARCHAR(255), xisLob BOOLEAN, xisMultiple BOOLEAN, xorderNumber INTEGER, xselectContent VARCHAR(255), xvalueType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT CAL_SETTING_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CAL_SETTING_LOBVALUE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xlobValue CLOB, PRIMARY KEY (xid), CONSTRAINT CAL_SETTING_LOBVALUE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_APPDICTITEM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappId VARCHAR(64), xbooleanValue BOOLEAN, xbundle VARCHAR(255), xdateTimeValue TIMESTAMP, xdateValue DATE, xitemCategory VARCHAR(16), xitemPrimitiveType VARCHAR(1), xitemStringValueType VARCHAR(2), xitemType VARCHAR(1), xnumberValue DOUBLE, xpath0 VARCHAR(64), xpath0Location INTEGER, xpath1 VARCHAR(64), xpath1Location INTEGER, xpath2 VARCHAR(64), xpath2Location INTEGER, xpath3 VARCHAR(64), xpath3Location INTEGER, xpath4 VARCHAR(64), xpath4Location INTEGER, xpath5 VARCHAR(64), xpath5Location INTEGER, xpath6 VARCHAR(64), xpath6Location INTEGER, xpath7 VARCHAR(64), xpath7Location INTEGER, xstringLongValue CLOB, xstringShortValue VARCHAR(255), xtimeValue TIME, PRIMARY KEY (xid), CONSTRAINT CMS_APPDICTITEM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_APPINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xallPeoplePublish BOOLEAN, xallPeopleView BOOLEAN, xanonymousAble BOOLEAN, xappAlias VARCHAR(96), xappIcon CLOB, xappInfoSeq VARCHAR(96), xappMemo VARCHAR(255), xappName VARCHAR(96), xappType VARCHAR(255), xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorTopUnitName VARCHAR(255), xcreatorUnitName VARCHAR(255), xdescription VARCHAR(255), xdocumentType VARCHAR(16), xiconColor VARCHAR(16), xsendNotify BOOLEAN, xshowAllDocuments BOOLEAN, PRIMARY KEY (xid), CONSTRAINT CMS_APPINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_APPINFO_categoryList (APPINFO_XID VARCHAR(64), xcategoryList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_CONFIG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconfig CLOB, PRIMARY KEY (xid), CONSTRAINT CMS_APPINFO_CONFIG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_APPINFO_manageableGroupList (APPINFO_XID VARCHAR(64), xmanageableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_manageablePersonList (APPINFO_XID VARCHAR(64), xmanageablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_manageableUnitList (APPINFO_XID VARCHAR(64), xmanageableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_publishableGroupList (APPINFO_XID VARCHAR(64), xpublishableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_publishablePersonList (APPINFO_XID VARCHAR(64), xpublishablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_publishableUnitList (APPINFO_XID VARCHAR(64), xpublishableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_viewableGroupList (APPINFO_XID VARCHAR(64), xviewableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_viewablePersonList (APPINFO_XID VARCHAR(64), xviewablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPINFO_viewableUnitList (APPINFO_XID VARCHAR(64), xviewableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_APPNDICT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xappId VARCHAR(64), xcreatorUid VARCHAR(64), xdescription VARCHAR(255), xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_APPNDICT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_BATCH_OPERATION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbundle VARCHAR(255), xdescription VARCHAR(255), xerrorCount INTEGER, xisRunning BOOLEAN, xobjType VARCHAR(16), xoldInfo VARCHAR(255), xoptType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT CMS_BATCH_OPERATION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_CATEGORYEXT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent CLOB, PRIMARY KEY (xid), CONSTRAINT CMS_CATEGORYEXT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_CATEGORYINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xallPeoplePublish BOOLEAN, xallPeopleView BOOLEAN, xanonymousAble BOOLEAN, xappId VARCHAR(64), xappName VARCHAR(96), xcategoryAlias VARCHAR(96), xcategoryIcon CLOB, xcategoryMemo VARCHAR(255), xcategoryName VARCHAR(96), xcategorySeq VARCHAR(96), xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorTopUnitName VARCHAR(255), xcreatorUnitName VARCHAR(255), xdefaultViewId VARCHAR(64), xdefaultViewName VARCHAR(96), xdescription VARCHAR(255), xdocumentType VARCHAR(16), xformId VARCHAR(64), xformName VARCHAR(96), ximportViewAppId VARCHAR(64), ximportViewId VARCHAR(64), ximportViewName VARCHAR(64), xparentId VARCHAR(64), xreadFormId VARCHAR(64), xreadFormName VARCHAR(96), xsendNotify BOOLEAN, xworkflowAppId VARCHAR(64), xworkflowAppName VARCHAR(255), xworkflowFlag VARCHAR(64), xworkflowName VARCHAR(255), xworkflowType VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT CMS_CATEGORYINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_CATEGORYINFO_manageableGroupList (CATEGORYINFO_XID VARCHAR(64), xmanageableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_CATEGORYINFO_manageablePersonList (CATEGORYINFO_XID VARCHAR(64), xmanageablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_CATEGORYINFO_manageableUnitList (CATEGORYINFO_XID VARCHAR(64), xmanageableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_CATEGORYINFO_publishableGroupList (CATEGORYINFO_XID VARCHAR(64), xpublishableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_CATEGORYINFO_publishablePersonList (CATEGORYINFO_XID VARCHAR(64), xpublishablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_CATEGORYINFO_publishableUnitList (CATEGORYINFO_XID VARCHAR(64), xpublishableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_CATEGORYINFO_viewableGroupList (CATEGORYINFO_XID VARCHAR(64), xviewableGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_CATEGORYINFO_viewablePersonList (CATEGORYINFO_XID VARCHAR(64), xviewablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_CATEGORYINFO_viewableUnitList (CATEGORYINFO_XID VARCHAR(64), xviewableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappAlias VARCHAR(96), xappId VARCHAR(64), xappName VARCHAR(96), xcategoryAlias VARCHAR(96), xcategoryId VARCHAR(64), xcategoryName VARCHAR(96), xcommendCount BIGINT, xcommentCount BIGINT, xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorTopUnitName VARCHAR(255), xcreatorUnitName VARCHAR(255), xdescription VARCHAR(255), xdocStatus VARCHAR(16), xdocumentType VARCHAR(16), xform VARCHAR(64), xformName VARCHAR(96), xhasIndexPic BOOLEAN, ximportBatchName VARCHAR(128), xisTop BOOLEAN, xmodifyTime TIMESTAMP, xpublishTime TIMESTAMP, xreadFormId VARCHAR(64), xreadFormName VARCHAR(96), xreviewed BOOLEAN, xsequenceAppAlias VARCHAR(255), xsequenceCategoryAlias VARCHAR(255), xsequenceCreatorPerson VARCHAR(255), xsequenceCreatorUnitName VARCHAR(255), xsequenceTitle VARCHAR(255), xsummary VARCHAR(255), xtitle VARCHAR(255), xviewCount BIGINT, PRIMARY KEY (xid), CONSTRAINT CMS_DOCUMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_DOCUMENT_authorGroupList (DOCUMENT_XID VARCHAR(64), xauthorGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_authorPersonList (DOCUMENT_XID VARCHAR(64), xauthorPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_authorUnitList (DOCUMENT_XID VARCHAR(64), xauthorUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_COMMEND (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcommendPerson VARCHAR(255), xdocumentId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT CMS_DOCUMENT_COMMEND_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_DOCUMENT_COMMENTCOMMEND (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcommendPerson VARCHAR(255), xcommentId VARCHAR(64), xdocumentId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT CMS_DOCUMENT_COMMENTCOMMEND_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_DOCUMENT_COMMENTCONTENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent CLOB, PRIMARY KEY (xid), CONSTRAINT CMS_DOCUMENT_COMMENTCONTENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_DOCUMENT_COMMENTINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappId VARCHAR(64), xappName VARCHAR(96), xauditorName VARCHAR(255), xcategoryId VARCHAR(64), xcategoryName VARCHAR(96), xcommendCount BIGINT, xcommentAuditStatus VARCHAR(16), xcreatorName VARCHAR(255), xdocumentId VARCHAR(64), xisPrivate BOOLEAN, xorderNumber INTEGER, xparentId VARCHAR(64), xtitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_DOCUMENT_COMMENTINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_DOCUMENT_managerList (DOCUMENT_XID VARCHAR(64), xmanagerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_pictureList (DOCUMENT_XID VARCHAR(64), xpictureList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_readGroupList (DOCUMENT_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_readPersonList (DOCUMENT_XID VARCHAR(64), xreadPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_readUnitList (DOCUMENT_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_remindGroupList (DOCUMENT_XID VARCHAR(64), xremindGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_remindPersonList (DOCUMENT_XID VARCHAR(64), xremindPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_remindUnitList (DOCUMENT_XID VARCHAR(64), xremindUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_DOCUMENT_VIEWRECORD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappId VARCHAR(64), xappName VARCHAR(96), xcategoryId VARCHAR(64), xcategoryName VARCHAR(96), xdocumentId VARCHAR(64), xlastViewTime TIMESTAMP, xtitle VARCHAR(255), xviewCount INTEGER, xviewerName VARCHAR(255), xviewerTopUnitName VARCHAR(255), xviewerUnitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_DOCUMENT_VIEWRECORD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_E_QUERYVIEW (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterCalculateGridScriptText CLOB, xafterGridScriptText CLOB, xafterGroupGridScriptText CLOB, xalias VARCHAR(255), xappId VARCHAR(64), xappName VARCHAR(64), xcode CLOB, xcreatorPerson VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xdisplay BOOLEAN, xicon CLOB, xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlayout CLOB, xname VARCHAR(255), xtimingEnable BOOLEAN, xtimingInterval INTEGER, xtimingTouch INTEGER, PRIMARY KEY (xid), CONSTRAINT CMS_E_QUERYVIEW_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_E_QUERYVIEW_availableIdentityList (QUERYVIEW_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_E_QUERYVIEW_availablePersonList (QUERYVIEW_XID VARCHAR(64), xavailablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_E_QUERYVIEW_availableUnitList (QUERYVIEW_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_E_QUERYVIEW_controllerList (QUERYVIEW_XID VARCHAR(64), xcontrollerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_FILE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xappId VARCHAR(64), xdata CLOB, xdescription VARCHAR(255), xfileName VARCHAR(255), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_FILE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_FILEINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappId VARCHAR(64), xcategoryId VARCHAR(64), xcloudId VARCHAR(64), xcreatorUid VARCHAR(255), xdeepPath BOOLEAN, xdescription VARCHAR(255), xdocumentId VARCHAR(64), xextension VARCHAR(16), xfileExtType VARCHAR(16), xfileHost VARCHAR(32), xfileName VARCHAR(255), xfilePath VARCHAR(255), xfileType VARCHAR(16), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xseqNumber INTEGER, xsite VARCHAR(64), xstorage VARCHAR(64), xtext CLOB, xtype VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_FILEINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_FILEINFO_controllerIdentityList (FILEINFO_XID VARCHAR(64), xcontrollerIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_FILEINFO_controllerUnitList (FILEINFO_XID VARCHAR(64), xcontrollerUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_FILEINFO_editIdentityList (FILEINFO_XID VARCHAR(64), xeditIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_FILEINFO_editUnitList (FILEINFO_XID VARCHAR(64), xeditUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_FILEINFO_readIdentityList (FILEINFO_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_FILEINFO_readUnitList (FILEINFO_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_FORM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xappId VARCHAR(64), xdata CLOB, xdescription VARCHAR(255), xeditor VARCHAR(255), xmobileData CLOB, xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_FORM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_FORMFIELD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappId VARCHAR(64), xdataType VARCHAR(32), xform VARCHAR(64), xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_FORMFIELD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_LOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappId VARCHAR(64), xcategoryId VARCHAR(64), xdescription VARCHAR(255), xdocumentId VARCHAR(64), xfileId VARCHAR(64), xoperationLevel VARCHAR(32), xoperationType VARCHAR(32), xoperatorName VARCHAR(255), xoperatorUid VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_LOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_READREMIND (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappId VARCHAR(64), xcategoryId VARCHAR(64), xdocumentId VARCHAR(64), xreadTime TIMESTAMP, xreaded BOOLEAN, xreaderFlagName VARCHAR(255), xreaderFlagType VARCHAR(16), xremindReader VARCHAR(255), xremindTime TIMESTAMP, xreminded BOOLEAN, xtitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CMS_READREMIND_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_REVIEW (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappAlias VARCHAR(255), xappId VARCHAR(64), xappName VARCHAR(255), xcategoryAlias VARCHAR(255), xcategoryId VARCHAR(64), xcategoryName VARCHAR(255), xcommendCount BIGINT, xcommentCount BIGINT, xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorTopUnitName VARCHAR(255), xcreatorUnitName VARCHAR(255), xdocCreateTime TIMESTAMP, xdocId VARCHAR(64), xdocSequence VARCHAR(64), xdocStatus VARCHAR(32), xdocumentType VARCHAR(16), xhasIndexPic BOOLEAN, ximportBatchName VARCHAR(128), xisTop BOOLEAN, xmodifyTime TIMESTAMP, xpermissionObj VARCHAR(255), xpermissionObjType VARCHAR(16), xpublishTime TIMESTAMP, xsequenceAppAlias VARCHAR(255), xsequenceCategoryAlias VARCHAR(255), xsequenceCreatorPerson VARCHAR(255), xsequenceCreatorUnitName VARCHAR(255), xsequenceTitle VARCHAR(255), xtitle VARCHAR(255), xviewCount BIGINT, PRIMARY KEY (xid), CONSTRAINT CMS_REVIEW_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_SCRIPT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xappId VARCHAR(64), xcreatorPerson VARCHAR(255), xdescription VARCHAR(255), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xname VARCHAR(255), xtext CLOB, xvalidated BOOLEAN, PRIMARY KEY (xid), CONSTRAINT CMS_SCRIPT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_SCRIPT_dependScriptList (SCRIPT_XID VARCHAR(64), xdependScriptList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CMS_TEMPLATEFORM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xcategory VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xicon CLOB, xmobileData CLOB, xname VARCHAR(255), xoutline CLOB, PRIMARY KEY (xid), CONSTRAINT CMS_TEMPLATEFORM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_VIEW (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xappId VARCHAR(64), xcontent CLOB, xdescription VARCHAR(255), xeditor VARCHAR(255), xformId VARCHAR(64), xname VARCHAR(255), xorderField VARCHAR(128), xorderFieldType VARCHAR(128), xorderType VARCHAR(128), xpageSize INTEGER, PRIMARY KEY (xid), CONSTRAINT CMS_VIEW_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_VIEWCATEGORY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcategoryId VARCHAR(64), xeditor VARCHAR(255), xviewId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT CMS_VIEWCATEGORY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_VIEWFIELD_CONFIG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xeditor VARCHAR(255), xfieldName VARCHAR(128), xfieldTitle VARCHAR(128), xshowSequence INTEGER, xviewId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT CMS_VIEWFIELD_CONFIG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CMS_VIEW_fieldConfigList (VIEW_XID VARCHAR(64), xfieldConfigList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CPT_COMPONENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xiconPath VARCHAR(255), xname VARCHAR(255), xorderNumber INTEGER, xpath VARCHAR(255), xtitle VARCHAR(255), xtype VARCHAR(16), xvisible BOOLEAN, PRIMARY KEY (xid), CONSTRAINT CPT_COMPONENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CPT_COMPONENT_allowList (COMPONENT_XID VARCHAR(64), xallowList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CPT_COMPONENT_denyList (COMPONENT_XID VARCHAR(64), xdenyList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE CTE_AGENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xcron VARCHAR(64), xdescription VARCHAR(255), xenable BOOLEAN, xlastEndTime TIMESTAMP, xlastStartTime TIMESTAMP, xname VARCHAR(255), xtext CLOB, xvalidated BOOLEAN, PRIMARY KEY (xid), CONSTRAINT CTE_AGENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CTE_CAPTCHA (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xanswer VARCHAR(16), xmeta VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CTE_CAPTCHA_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CTE_CODE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xanswer VARCHAR(16), xmeta VARCHAR(255), xmobile VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT CTE_CODE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CTE_INVOKE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xdescription VARCHAR(255), xenable BOOLEAN, xlastEndTime TIMESTAMP, xlastStartTime TIMESTAMP, xname VARCHAR(255), xremoteAddrRegex VARCHAR(255), xtext CLOB, xvalidated BOOLEAN, PRIMARY KEY (xid), CONSTRAINT CTE_INVOKE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CTE_PROMPTERRORLOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcollected BOOLEAN, xexceptionClass VARCHAR(255), xloggerName VARCHAR(255), xmessage CLOB, xoccurTime TIMESTAMP, xperson VARCHAR(255), xrequestBody CLOB, xrequestBodyLength BIGINT, xrequestHead CLOB, xrequestMethod VARCHAR(8), xrequestRemoteAddr VARCHAR(255), xrequestRemoteHost VARCHAR(255), xrequestUrl CLOB, xstackTrace CLOB, xversion VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT CTE_PROMPTERRORLOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CTE_SCHEDULELOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(255), xclassName VARCHAR(255), xelapsed BIGINT, xfireTime TIMESTAMP, xnode VARCHAR(255), xstackTrace CLOB, xsuccess BOOLEAN, xtype VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT CTE_SCHEDULELOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CTE_STRUCTURE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdata CLOB, xdeepPath BOOLEAN, xdescription VARCHAR(255), xdescriptionLob CLOB, xextension VARCHAR(64), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xstorage VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT CTE_STRUCTURE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CTE_UNEXPECTEDERRORLOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcollected BOOLEAN, xexceptionClass VARCHAR(255), xloggerName VARCHAR(255), xmessage CLOB, xoccurTime TIMESTAMP, xperson VARCHAR(255), xrequestBody CLOB, xrequestBodyLength BIGINT, xrequestHead CLOB, xrequestMethod VARCHAR(8), xrequestRemoteAddr VARCHAR(255), xrequestRemoteHost VARCHAR(255), xrequestUrl CLOB, xstackTrace CLOB, xversion VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT CTE_UNEXPECTEDERRORLOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE CTE_WARNLOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcollected BOOLEAN, xloggerName VARCHAR(255), xmessage CLOB, xoccurTime TIMESTAMP, xversion VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT CTE_WARNLOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_ATTACHMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdeepPath BOOLEAN, xextension VARCHAR(64), xfolder VARCHAR(64), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xperson VARCHAR(255), xstorage VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT FILE_ATTACHMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_ATTACHMENT2 (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xextension VARCHAR(64), xfolder VARCHAR(64), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xoriginFile VARCHAR(64), xperson VARCHAR(255), xstatus VARCHAR(16), xtype VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT FILE_ATTACHMENT2_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_ATTACHMENT_editorList (ATTACHMENT_XID VARCHAR(64), xeditorList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE FILE_ATTACHMENT_shareList (ATTACHMENT_XID VARCHAR(64), xshareList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE FILE_FILE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdeepPath BOOLEAN, xextension VARCHAR(64), xlastNotExistedTime TIMESTAMP, xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xperson VARCHAR(255), xreference VARCHAR(255), xreferenceType VARCHAR(64), xstorage VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT FILE_FILE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_FOLDER (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xname VARCHAR(255), xperson VARCHAR(255), xsuperior VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT FILE_FOLDER_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_FOLDER2 (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xlastUpdateTime TIMESTAMP, xname VARCHAR(255), xperson VARCHAR(255), xstatus VARCHAR(16), xsuperior VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT FILE_FOLDER2_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_ORIGINFILE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdeepPath BOOLEAN, xextension VARCHAR(64), xfileMd5 VARCHAR(64), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xperson VARCHAR(255), xstorage VARCHAR(64), xtype VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT FILE_ORIGINFILE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_RECYCLE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xextension VARCHAR(64), xfileId VARCHAR(64), xfileType VARCHAR(64), xlength BIGINT, xname VARCHAR(255), xperson VARCHAR(255), xvalidTime TIMESTAMP, PRIMARY KEY (xid), CONSTRAINT FILE_RECYCLE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_SHARE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xextension VARCHAR(64), xfileId VARCHAR(64), xfileType VARCHAR(64), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xpassword VARCHAR(64), xperson VARCHAR(255), xshareType VARCHAR(64), xvalidTime TIMESTAMP, PRIMARY KEY (xid), CONSTRAINT FILE_SHARE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE FILE_SHARE_shareOrgList (SHARE_XID VARCHAR(64), xshareOrgList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE FILE_SHARE_shareUserList (SHARE_XID VARCHAR(64), xshareUserList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE FILE_SHARE_shieldUserList (SHARE_XID VARCHAR(64), xshieldUserList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE HOT_PICTURE_INFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xcreator VARCHAR(64), xinfoId VARCHAR(64), xpicId VARCHAR(255), xsummary VARCHAR(255), xtitle VARCHAR(255), xurl VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT HOT_PICTURE_INFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MIND_BASE_INFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcooperative BOOLEAN, xcooperative_sequence VARCHAR(255), xcreator VARCHAR(255), xcreatorUnit VARCHAR(255), xcreatorUnit_sequence VARCHAR(255), xcreator_sequence VARCHAR(255), xdescription VARCHAR(255), xfileVersion INTEGER, xfolderId VARCHAR(64), xfolder_sequence VARCHAR(255), xicon VARCHAR(255), xname VARCHAR(255), xshared BOOLEAN, xshared_sequence VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MIND_BASE_INFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MIND_BASE_INFO_editorList (MINDBASEINFO_XID VARCHAR(64), xeditorList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE MIND_BASE_INFO_shareGroupList (MINDBASEINFO_XID VARCHAR(64), xshareGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE MIND_BASE_INFO_sharePersonList (MINDBASEINFO_XID VARCHAR(64), xsharePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE MIND_BASE_INFO_shareUnitList (MINDBASEINFO_XID VARCHAR(64), xshareUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE MIND_CONTENT_INFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent CLOB, PRIMARY KEY (xid), CONSTRAINT MIND_CONTENT_INFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MIND_FOLDER_INFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreator VARCHAR(255), xcreatorUnit VARCHAR(255), xdescription VARCHAR(255), xname VARCHAR(255), xorderNumber INTEGER, xparentId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT MIND_FOLDER_INFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MIND_ICON_INFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent CLOB, PRIMARY KEY (xid), CONSTRAINT MIND_ICON_INFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MIND_RECYCLE_INFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreator VARCHAR(255), xcreatorUnit VARCHAR(255), xcreatorUnit_sequence VARCHAR(255), xcreator_sequence VARCHAR(255), xdeleteor VARCHAR(255), xdescription VARCHAR(255), xfileCreateTime TIMESTAMP, xfileVersion INTEGER, xfolderId VARCHAR(64), xfolder_sequence VARCHAR(255), xname VARCHAR(255), xshared BOOLEAN, xshared_sequence VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MIND_RECYCLE_INFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MIND_SHARE_RECORED (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xfileId VARCHAR(64), xfileStatus VARCHAR(16), xfileType VARCHAR(16), xname VARCHAR(255), xshareType VARCHAR(16), xsource VARCHAR(255), xtarget VARCHAR(255), xtargetType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT MIND_SHARE_RECORED_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MIND_VERSION_CONTENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent CLOB, PRIMARY KEY (xid), CONSTRAINT MIND_VERSION_CONTENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MIND_VERSION_INFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreator VARCHAR(255), xcreatorUnit VARCHAR(255), xdescription VARCHAR(255), xfileVersion INTEGER, xfolderId VARCHAR(64), xmindId VARCHAR(64), xname VARCHAR(255), xshared BOOLEAN, PRIMARY KEY (xid), CONSTRAINT MIND_VERSION_INFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MSG_IM_CONVERSATION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xadminPerson VARCHAR(255), xlastMessageTime TIMESTAMP, xnote VARCHAR(255), xtitle VARCHAR(255), xtype VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MSG_IM_CONVERSATION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MSG_IM_CONVERSATION_EXT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconversationId VARCHAR(64), xisTop BOOLEAN, xlastReadTime TIMESTAMP, xperson VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MSG_IM_CONVERSATION_EXT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MSG_IM_CONVERSATION_personList (IMCONVERSATION_XID VARCHAR(64), xpersonList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE MSG_IM_MESSAGE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbody CLOB, xconversationId VARCHAR(64), xcreatePerson VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MSG_IM_MESSAGE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MSG_INSTANT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbody CLOB, xconsumed BOOLEAN, xperson VARCHAR(255), xtitle VARCHAR(255), xtype VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MSG_INSTANT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MSG_INSTANT_consumerList (INSTANT_XID VARCHAR(64), xconsumerList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE MSG_MASS (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbody CLOB, xcreatorPerson VARCHAR(255), xtype VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MSG_MASS_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MSG_MASS_groupList (MASS_XID VARCHAR(64), xgroupList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE MSG_MASS_identityList (MASS_XID VARCHAR(64), xidentityList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE MSG_MASS_personList (MASS_XID VARCHAR(64), xpersonList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE MSG_MASS_sendPersonList (MASS_XID VARCHAR(64), xsendPersonList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE MSG_MASS_unitList (MASS_XID VARCHAR(64), xunitList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE MSG_MESSAGE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbody CLOB, xconsumed BOOLEAN, xconsumer VARCHAR(255), xinstant VARCHAR(64), xperson VARCHAR(255), xtitle VARCHAR(255), xtype VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MSG_MESSAGE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MSG_ORG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbody CLOB, xconsumed BOOLEAN, xconsumedModule VARCHAR(255), xoperDataId VARCHAR(96), xoperType VARCHAR(32), xoperUerId VARCHAR(96), xorgType VARCHAR(32), xreceiveSystem VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MSG_ORG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MT_ATTACHMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdeepPath BOOLEAN, xextension VARCHAR(16), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlength BIGINT, xmeeting VARCHAR(64), xname VARCHAR(255), xstorage VARCHAR(64), xsummary BOOLEAN, PRIMARY KEY (xid), CONSTRAINT MT_ATTACHMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MT_BUILDING (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xaddress VARCHAR(255), xname VARCHAR(255), xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MT_BUILDING_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MT_MEETING (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactualCompletedTime TIME, xactualStartTime TIME, xapplicant VARCHAR(255), xauditor VARCHAR(255), xcompletedTime TIMESTAMP, xconfirmStatus VARCHAR(8), xdescription VARCHAR(255), xmanualCompleted BOOLEAN, xmemo CLOB, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xroom VARCHAR(64), xstartTime TIMESTAMP, xsubject VARCHAR(255), xsummary CLOB, PRIMARY KEY (xid), CONSTRAINT MT_MEETING_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE MT_MEETING_acceptPersonList (MEETING_XID VARCHAR(64), xacceptPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE MT_MEETING_checkinPersonList (MEETING_XID VARCHAR(64), xcheckinPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE MT_MEETING_invitePersonList (MEETING_XID VARCHAR(64), xinvitePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE MT_MEETING_rejectPersonList (MEETING_XID VARCHAR(64), xrejectPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE MT_ROOM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xauditor VARCHAR(255), xavailable BOOLEAN, xbuilding VARCHAR(64), xcapacity INTEGER, xdevice CLOB, xfloor INTEGER, xname VARCHAR(255), xphoneNumber VARCHAR(255), xphoto CLOB, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xroomNumber VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT MT_ROOM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_ATTACHMENTFILEINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcenterId VARCHAR(64), xcreatorUid VARCHAR(255), xdeepPath BOOLEAN, xdescription VARCHAR(255), xextension VARCHAR(16), xfileHost VARCHAR(64), xfileName VARCHAR(255), xfilePath VARCHAR(255), xkey VARCHAR(64), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xparentType VARCHAR(32), xsite VARCHAR(64), xstatus VARCHAR(16), xstorage VARCHAR(64), xworkInfoId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT OKR_ATTACHMENTFILEINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_CENTERWORKINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcompletedWorkCount BIGINT, xcreatorIdentity VARCHAR(255), xcreatorName VARCHAR(255), xcreatorTopUnitName VARCHAR(255), xcreatorUnitName VARCHAR(255), xdefaultCompleteDateLimit TIMESTAMP, xdefaultCompleteDateLimitStr VARCHAR(32), xdefaultWorkLevel VARCHAR(64), xdefaultWorkType VARCHAR(64), xdeployDateStr VARCHAR(32), xdeployMonth VARCHAR(16), xdeployYear VARCHAR(8), xdeployerIdentity VARCHAR(255), xdeployerName VARCHAR(255), xdeployerTopUnitName VARCHAR(255), xdeployerUnitName VARCHAR(255), xdescription CLOB, xdraftWorkCount BIGINT, xisNeedAudit BOOLEAN, xovertimeWorkCount BIGINT, xprocessStatus VARCHAR(32), xprocessingWorkCount BIGINT, xstatus VARCHAR(16), xtitle VARCHAR(255), xworkTotal BIGINT, PRIMARY KEY (xid), CONSTRAINT OKR_CENTERWORKINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_CENTERWORKINFO_attachmentList (OKRCENTERWORKINFO_XID VARCHAR(64), xattachmentList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_CENTERWORKINFO_defaultLeaderIdentityList (OKRCENTERWORKINFO_XID VARCHAR(64), xdefaultLeaderIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_CENTERWORKINFO_defaultLeaderList (OKRCENTERWORKINFO_XID VARCHAR(64), xdefaultLeaderList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_CENTERWORKINFO_reportAuditLeaderIdentityList (OKRCENTERWORKINFO_XID VARCHAR(64), xreportAuditLeaderIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_CENTERWORKINFO_reportAuditLeaderNameList (OKRCENTERWORKINFO_XID VARCHAR(64), xreportAuditLeaderNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_CENTERWORKINFO_reportAuditLeaderTopUnitNameList (OKRCENTERWORKINFO_XID VARCHAR(64), xreportAuditLeaderTopUnitNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_CENTERWORKINFO_reportAuditLeaderUnitNameList (OKRCENTERWORKINFO_XID VARCHAR(64), xreportAuditLeaderUnitNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_CONFIG_SECRETARY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xleaderIdentity VARCHAR(255), xleaderName VARCHAR(255), xleaderTopUnitName VARCHAR(255), xleaderUnitName VARCHAR(255), xsecretaryIdentity VARCHAR(255), xsecretaryName VARCHAR(255), xsecretaryTopUnitName VARCHAR(255), xsecretaryUnitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT OKR_CONFIG_SECRETARY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_CONFIG_SYSTEM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconfigCode VARCHAR(32), xconfigName VARCHAR(32), xconfigValue VARCHAR(255), xdescription VARCHAR(255), xisMultiple BOOLEAN, xorderNumber INTEGER, xselectContent VARCHAR(255), xvalueType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT OKR_CONFIG_SYSTEM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_CONFIG_WORKLEVEL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xorderNumber INTEGER, xworkLevelName VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_CONFIG_WORKLEVEL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_CONFIG_WORKTYPE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xorderNumber INTEGER, xworkTypeName VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_CONFIG_WORKTYPE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_ERRROIDENTITY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xflag VARCHAR(255), xidentity VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT OKR_ERRROIDENTITY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_ERRROIDENTITYRECORDS (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xflag VARCHAR(255), xidentity VARCHAR(255), xrecordsJson CLOB, PRIMARY KEY (xid), CONSTRAINT OKR_ERRROIDENTITYRECORDS_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_STATISTIC_REPORT_CONTENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xadminSuperviseInfo CLOB, xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xcycleType VARCHAR(32), xisCompleted BOOLEAN, xisOverTime BOOLEAN, xmemo CLOB, xopinion CLOB, xparentId VARCHAR(64), xprogressDescription CLOB, xreportDayInCycle INTEGER, xreportId VARCHAR(64), xreportStatus VARCHAR(32), xresponsibilityEmployeeName VARCHAR(255), xresponsibilityIdentity VARCHAR(255), xresponsibilityTopUnitName VARCHAR(255), xresponsibilityUnitName VARCHAR(255), xstatisticMonth INTEGER, xstatisticTime TIMESTAMP, xstatisticTimeFlag VARCHAR(32), xstatisticWeek INTEGER, xstatisticYear INTEGER, xstatus VARCHAR(16), xworkId VARCHAR(64), xworkLevel VARCHAR(32), xworkPlan CLOB, xworkPointAndRequirements CLOB, xworkProcessStatus VARCHAR(16), xworkTitle VARCHAR(255), xworkType VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_STATISTIC_REPORT_CONTENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_STATISTIC_REPORT_STATUS (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xcompleteDateLimitStr VARCHAR(32), xdeployDateStr VARCHAR(32), xoverallProgress INTEGER, xparentId VARCHAR(64), xreportCycle VARCHAR(32), xreportDayInCycle INTEGER, xreportStatistic CLOB, xresponsibilityEmployeeName VARCHAR(255), xresponsibilityIdentity VARCHAR(255), xresponsibilityTopUnitName VARCHAR(255), xresponsibilityUnitName VARCHAR(255), xstatisticTimeFlag VARCHAR(32), xstatisticYear INTEGER, xstatus VARCHAR(16), xworkDateTimeType VARCHAR(16), xworkId VARCHAR(64), xworkLevel VARCHAR(32), xworkProcessStatus VARCHAR(16), xworkTitle VARCHAR(255), xworkType VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_STATISTIC_REPORT_STATUS_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_TASK (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivityName VARCHAR(255), xarriveDateTime TIMESTAMP, xarriveDateTimeStr VARCHAR(32), xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xdynamicObjectId VARCHAR(64), xdynamicObjectTitle VARCHAR(255), xdynamicObjectType VARCHAR(32), xprocessType VARCHAR(32), xstatus VARCHAR(16), xtargetIdentity VARCHAR(255), xtargetName VARCHAR(255), xtargetTopUnitName VARCHAR(255), xtargetUnitName VARCHAR(255), xtitle VARCHAR(255), xviewUrl VARCHAR(255), xworkId VARCHAR(64), xworkTitle VARCHAR(255), xworkType VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_TASK_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_TASKHANDLED (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivityName VARCHAR(255), xarriveDateTime TIMESTAMP, xarriveDateTimeStr VARCHAR(32), xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xduration BIGINT, xdynamicObjectId VARCHAR(64), xdynamicObjectTitle VARCHAR(255), xdynamicObjectType VARCHAR(32), xprocessDateTime TIMESTAMP, xprocessDateTimeStr VARCHAR(32), xprocessType VARCHAR(32), xstatus VARCHAR(16), xtargetIdentity VARCHAR(255), xtargetName VARCHAR(255), xtargetTopUnitName VARCHAR(255), xtargetUnitName VARCHAR(255), xtitle VARCHAR(255), xviewUrl VARCHAR(255), xworkId VARCHAR(64), xworkTitle VARCHAR(255), xworkType VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_TASKHANDLED_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_USERINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcustomContent CLOB, xuserName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT OKR_USERINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORKAPPRAISEINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivityName VARCHAR(64), xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xstatus VARCHAR(32), xtitle VARCHAR(255), xwf_jobId VARCHAR(64), xwf_workId VARCHAR(64), xworkId VARCHAR(64), xworkTitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT OKR_WORKAPPRAISEINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORKBASEINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappraiseTimes INTEGER, xarchiveDate TIMESTAMP, xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xcompleteDateLimit TIMESTAMP, xcompleteDateLimitStr VARCHAR(32), xcompleteTime TIMESTAMP, xconfirmDateStr VARCHAR(32), xcreatorIdentity VARCHAR(255), xcreatorName VARCHAR(255), xcreatorTopUnitName VARCHAR(255), xcreatorUnitName VARCHAR(255), xcurrentActivityName VARCHAR(32), xcurrentAppraiseInfoId VARCHAR(64), xcurrentAppraiseJobId VARCHAR(64), xcurrentAppraiseStatus VARCHAR(32), xcurrentAppraiseTitle VARCHAR(255), xcurrentAppraiseWorkId VARCHAR(64), xdeployDateStr VARCHAR(32), xdeployMonth VARCHAR(16), xdeployYear VARCHAR(16), xdeployerIdentity VARCHAR(255), xdeployerName VARCHAR(255), xdeployerTopUnitName VARCHAR(255), xdeployerUnitName VARCHAR(255), xisCompleted BOOLEAN, xisNeedReport BOOLEAN, xisOverTime BOOLEAN, xlastReportTime TIMESTAMP, xnextReportTime TIMESTAMP, xoverallProgress INTEGER, xparentWorkId VARCHAR(64), xparentWorkTitle VARCHAR(255), xprogressAnalyseTime VARCHAR(32), xreportAdminIdentity VARCHAR(255), xreportAdminName VARCHAR(255), xreportCount INTEGER, xreportCycle VARCHAR(32), xreportDayInCycle INTEGER, xreportNeedAdminAudit BOOLEAN, xreportTimeQue CLOB, xresponsibilityEmployeeName VARCHAR(255), xresponsibilityIdentity VARCHAR(255), xresponsibilityTopUnitName VARCHAR(255), xresponsibilityUnitName VARCHAR(255), xshortDutyDescription VARCHAR(255), xshortLandmarkDescription VARCHAR(255), xshortMajorIssuesDescription VARCHAR(255), xshortProgressAction VARCHAR(255), xshortProgressPlan VARCHAR(255), xshortResultDescription VARCHAR(255), xshortWorkDetail VARCHAR(255), xstatus VARCHAR(16), xtitle VARCHAR(255), xworkAuditLevel INTEGER, xworkDateTimeType VARCHAR(16), xworkLevel VARCHAR(32), xworkProcessStatus VARCHAR(16), xworkType VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_WORKBASEINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORKBASEINFO_appraiseInfoList (OKRWORKBASEINFO_XID VARCHAR(64), xappraiseInfoList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_attachmentList (OKRWORKBASEINFO_XID VARCHAR(64), xattachmentList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_cooperateEmployeeNameList (OKRWORKBASEINFO_XID VARCHAR(64), xcooperateEmployeeNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_cooperateIdentityList (OKRWORKBASEINFO_XID VARCHAR(64), xcooperateIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_cooperateTopUnitNameList (OKRWORKBASEINFO_XID VARCHAR(64), xcooperateTopUnitNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_cooperateUnitNameList (OKRWORKBASEINFO_XID VARCHAR(64), xcooperateUnitNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_readLeaderIdentityList (OKRWORKBASEINFO_XID VARCHAR(64), xreadLeaderIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_readLeaderNameList (OKRWORKBASEINFO_XID VARCHAR(64), xreadLeaderNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_readLeaderTopUnitNameList (OKRWORKBASEINFO_XID VARCHAR(64), xreadLeaderTopUnitNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKBASEINFO_readLeaderUnitNameList (OKRWORKBASEINFO_XID VARCHAR(64), xreadLeaderUnitNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORKCHAT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xcontent CLOB, xdescription VARCHAR(255), xsenderIdentity VARCHAR(255), xsenderName VARCHAR(255), xtargetIdentity VARCHAR(255), xtargetName VARCHAR(255), xworkId VARCHAR(64), xworkTitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT OKR_WORKCHAT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORKDETAILINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcenterId VARCHAR(64), xdutyDescription CLOB, xlandmarkDescription CLOB, xmajorIssuesDescription CLOB, xprogressAction CLOB, xprogressPlan CLOB, xresultDescription CLOB, xstatus VARCHAR(16), xworkDetail CLOB, PRIMARY KEY (xid), CONSTRAINT OKR_WORKDETAILINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORKDYNAMICS (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xcontent VARCHAR(255), xdateTime TIMESTAMP, xdateTimeStr VARCHAR(32), xdescription VARCHAR(255), xdynamicObjectId VARCHAR(64), xdynamicObjectTitle VARCHAR(255), xdynamicObjectType VARCHAR(32), xdynamicType VARCHAR(32), xoperatorName VARCHAR(255), xstatus VARCHAR(16), xtargetIdentity VARCHAR(255), xtargetName VARCHAR(255), xviewUrl VARCHAR(255), xworkId VARCHAR(64), xworkTitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT OKR_WORKDYNAMICS_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORK_AUTHORIZE_RECORD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xdelegateDateTime TIMESTAMP, xdelegateDateTimeStr VARCHAR(32), xdelegateLevel INTEGER, xdelegateOpinion VARCHAR(255), xdelegatorIdentity VARCHAR(255), xdelegatorName VARCHAR(255), xdelegatorTopUnitName VARCHAR(255), xdelegatorUnitName VARCHAR(255), xstatus VARCHAR(16), xtakebackDateTime TIMESTAMP, xtargetIdentity VARCHAR(255), xtargetName VARCHAR(255), xtargetTopUnitName VARCHAR(255), xtargetUnitName VARCHAR(255), xtitle VARCHAR(255), xworkId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT OKR_WORK_AUTHORIZE_RECORD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORK_PERSON (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xauthorizeRecordId VARCHAR(64), xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xcompleteDateLimit TIMESTAMP, xcompleteDateLimitStr VARCHAR(32), xdeployDateStr VARCHAR(32), xdeployMonth VARCHAR(16), xdeployYear VARCHAR(16), xdiscription VARCHAR(255), xemployeeIdentity VARCHAR(255), xemployeeName VARCHAR(255), xisCompleted BOOLEAN, xisDelegateTarget BOOLEAN, xisOverTime BOOLEAN, xparentWorkId VARCHAR(64), xprocessIdentity VARCHAR(32), xrecordType VARCHAR(32), xstatus VARCHAR(16), xtopUnitName VARCHAR(255), xunitName VARCHAR(255), xviewTime VARCHAR(32), xworkCreateDateStr VARCHAR(32), xworkDateTimeType VARCHAR(16), xworkId VARCHAR(64), xworkLevel VARCHAR(32), xworkProcessStatus VARCHAR(16), xworkTitle VARCHAR(255), xworkType VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_WORK_PERSON_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORK_REPORTBASEINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivityName VARCHAR(64), xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xcreatorIdentity VARCHAR(255), xcreatorName VARCHAR(255), xcreatorTopUnitName VARCHAR(255), xcreatorUnitName VARCHAR(255), xcurrentProcessLevel INTEGER, xdescription VARCHAR(255), xisWorkCompleted BOOLEAN, xneedAdminAudit BOOLEAN, xneedLeaderRead BOOLEAN, xprocessStatus VARCHAR(16), xprocessType VARCHAR(16), xprogressPercent INTEGER, xreportCount INTEGER, xreportWorkflowType VARCHAR(32), xreporterIdentity VARCHAR(255), xreporterName VARCHAR(255), xreporterTopUnitName VARCHAR(255), xreporterUnitName VARCHAR(255), xshortTitle VARCHAR(255), xstatus VARCHAR(16), xsubmitTime TIMESTAMP, xtitle VARCHAR(255), xworkAdminIdentity VARCHAR(255), xworkAdminName VARCHAR(255), xworkId VARCHAR(64), xworkTitle VARCHAR(255), xworkType VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT OKR_WORK_REPORTBASEINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORK_REPORTBASEINFO_attachmentList (OKRWORKREPORTBASEINFO_XID VARCHAR(64), xattachmentList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORK_REPORTBASEINFO_currentProcessorIdentityList (OKRWORKREPORTBASEINFO_XID VARCHAR(64), xcurrentProcessorIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORK_REPORTBASEINFO_currentProcessorNameList (OKRWORKREPORTBASEINFO_XID VARCHAR(64), xcurrentProcessorNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORK_REPORTBASEINFO_currentProcessorTopUnitNameList (OKRWORKREPORTBASEINFO_XID VARCHAR(64), xcurrentProcessorTopUnitNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORK_REPORTBASEINFO_currentProcessorUnitNameList (OKRWORKREPORTBASEINFO_XID VARCHAR(64), xcurrentProcessorUnitNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORK_REPORTBASEINFO_readLeadersIdentityList (OKRWORKREPORTBASEINFO_XID VARCHAR(64), xreadLeadersIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORK_REPORTBASEINFO_readLeadersNameList (OKRWORKREPORTBASEINFO_XID VARCHAR(64), xreadLeadersNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE OKR_WORK_REPORTDETAILINFO (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xadminSuperviseInfo CLOB, xcenterId VARCHAR(64), xmemo CLOB, xprogressDescription CLOB, xshortTitle VARCHAR(255), xstatus VARCHAR(16), xtitle VARCHAR(255), xworkId VARCHAR(64), xworkPlan CLOB, xworkPointAndRequirements CLOB, PRIMARY KEY (xid), CONSTRAINT OKR_WORK_REPORTDETAILINFO_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORK_REPORT_PERSONLINK (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivityName VARCHAR(255), xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xprocessLevel INTEGER, xprocessStatus VARCHAR(16), xprocessorIdentity VARCHAR(255), xprocessorName VARCHAR(255), xprocessorTopUnitName VARCHAR(255), xprocessorUnitName VARCHAR(255), xstatus VARCHAR(16), xtitle VARCHAR(255), xworkId VARCHAR(64), xworkReportId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT OKR_WORK_REPORT_PERSONLINK_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE OKR_WORK_REPORT_PROCESSLOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivityName VARCHAR(255), xarriveTime TIMESTAMP, xarriveTimeStr VARCHAR(32), xcenterId VARCHAR(64), xcenterTitle VARCHAR(255), xdecision VARCHAR(32), xopinion CLOB, xprocessLevel INTEGER, xprocessStatus VARCHAR(16), xprocessTime TIMESTAMP, xprocessTimeStr VARCHAR(32), xprocessorIdentity VARCHAR(255), xprocessorName VARCHAR(255), xprocessorTopUnitName VARCHAR(255), xprocessorUnitName VARCHAR(255), xreportTitle VARCHAR(255), xstatus VARCHAR(16), xstayTime BIGINT, xtitle VARCHAR(255), xworkId VARCHAR(64), xworkReportId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT OKR_WORK_REPORT_PROCESSLOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_A_EMPOWER (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xcompletedTime TIMESTAMP, xenable BOOLEAN, xfilterListData CLOB, xfromIdentity VARCHAR(255), xfromPerson VARCHAR(255), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xstartTime TIMESTAMP, xtoIdentity VARCHAR(255), xtoPerson VARCHAR(255), xtype VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT ORG_A_EMPOWER_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_A_EMPOWERLOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityAlias VARCHAR(255), xactivityName VARCHAR(255), xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xempowerTime TIMESTAMP, xfromIdentity VARCHAR(255), xfromPerson VARCHAR(255), xjob VARCHAR(64), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xtitle VARCHAR(255), xtoIdentity VARCHAR(255), xtoPerson VARCHAR(255), xwork VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT ORG_A_EMPOWERLOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_BIND (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xmeta VARCHAR(255), xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_BIND_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_CUSTOM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdata CLOB, xname VARCHAR(255), xperson VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT ORG_CUSTOM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_DEFINTION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdata CLOB, xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_DEFINTION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_GROUP (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xdistinguishedName VARCHAR(255), xname VARCHAR(255), xorderNumber INTEGER, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xunique VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_GROUP_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_GROUP_groupList (GROUP_XID VARCHAR(64), xgroupList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_GROUP_personList (GROUP_XID VARCHAR(64), xpersonList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_GROUP_unitList (GROUP_XID VARCHAR(64), xunitList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_IDENTITY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xdistinguishedName VARCHAR(255), xmajor BOOLEAN, xname VARCHAR(255), xorderNumber INTEGER, xperson VARCHAR(64), xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xunique VARCHAR(255), xunit VARCHAR(64), xunitLevel INTEGER, xunitLevelName CLOB, xunitName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_IDENTITY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_OAUTHCODE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xaccessToken VARCHAR(64), xclientId VARCHAR(255), xcode VARCHAR(64), xcodeUsed BOOLEAN, xperson VARCHAR(64), xscope VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_OAUTHCODE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_PERMISSIONSETTING (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xexplain VARCHAR(255), xextend1 VARCHAR(255), xextend2 VARCHAR(255), xextend3 VARCHAR(255), xstatus VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_PERMISSIONSETTING_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_PERMISSIONSETTING_excludePerson (PERMISSIONSETTING_XID VARCHAR(64), xexcludePerson VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_PERMISSIONSETTING_excludeUnit (PERMISSIONSETTING_XID VARCHAR(64), xexcludeUnit VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_PERMISSIONSETTING_limitQueryAll (PERMISSIONSETTING_XID VARCHAR(64), xlimitQueryAll VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_PERMISSIONSETTING_limitQueryOuter (PERMISSIONSETTING_XID VARCHAR(64), xlimitQueryOuter VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_PERSON (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xage INTEGER, xbirthday DATE, xboardDate DATE, xchangePasswordTime DATE, xdescription VARCHAR(255), xdingdingHash VARCHAR(255), xdingdingId VARCHAR(255), xdistinguishedName VARCHAR(255), xemployee VARCHAR(255), xfailureCount INTEGER, xfailureTime TIMESTAMP, xgenderType VARCHAR(1), xhiddenMobile BOOLEAN, xicon CLOB, xiconLdpi CLOB, xiconMdpi CLOB, xlastLoginAddress VARCHAR(64), xlastLoginClient VARCHAR(32), xlastLoginTime DATE, xmail VARCHAR(64), xmobile VARCHAR(32), xname VARCHAR(255), xofficePhone VARCHAR(32), xopen1Id VARCHAR(255), xopen2Id VARCHAR(255), xopen3Id VARCHAR(255), xopen4Id VARCHAR(255), xopen5Id VARCHAR(255), xorderNumber INTEGER, xpassword VARCHAR(255), xpasswordExpiredTime DATE, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xqiyeweixinHash VARCHAR(255), xqiyeweixinId VARCHAR(255), xqq VARCHAR(64), xsignature VARCHAR(255), xsuperior VARCHAR(64), xunique VARCHAR(255), xweixin VARCHAR(64), xzhengwuDingdingHash VARCHAR(255), xzhengwuDingdingId VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_PERSON_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_PERSONATTRIBUTE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xdistinguishedName VARCHAR(255), xname VARCHAR(255), xorderNumber INTEGER, xperson VARCHAR(64), xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xunique VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_PERSONATTRIBUTE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_PERSONATTRIBUTE_attributeList (PERSONATTRIBUTE_XID VARCHAR(64), xattributeList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE ORG_PERSONCARD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xaddress VARCHAR(255), xdescription VARCHAR(255), xdistinguishedName VARCHAR(255), xextend1 VARCHAR(255), xextend2 VARCHAR(255), xextend3 VARCHAR(255), xgenderType VARCHAR(1), xgroupType VARCHAR(255), xinputTime VARCHAR(255), xmobile VARCHAR(32), xname VARCHAR(255), xofficePhone VARCHAR(32), xorderNumber INTEGER, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xstatus VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_PERSONCARD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_PERSON_controllerList (PERSON_XID VARCHAR(64), xcontrollerList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_PERSON_topUnitList (PERSON_XID VARCHAR(64), xtopUnitList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_ROLE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xdistinguishedName VARCHAR(255), xname VARCHAR(255), xorderNumber INTEGER, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xunique VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_ROLE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_ROLE_groupList (ROLE_XID VARCHAR(64), xgroupList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_ROLE_personList (ROLE_XID VARCHAR(64), xpersonList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_UNIT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xdingdingHash VARCHAR(255), xdingdingId VARCHAR(255), xdistinguishedName VARCHAR(255), xlevel INTEGER, xlevelName CLOB, xname VARCHAR(255), xorderNumber INTEGER, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xqiyeweixinHash VARCHAR(255), xqiyeweixinId VARCHAR(255), xshortName VARCHAR(255), xsuperior VARCHAR(64), xunique VARCHAR(255), xzhengwuDingdingHash VARCHAR(255), xzhengwuDingdingId VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT ORG_UNIT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_UNITATTRIBUTE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xdistinguishedName VARCHAR(255), xname VARCHAR(255), xorderNumber INTEGER, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xunique VARCHAR(255), xunit VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT ORG_UNITATTRIBUTE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_UNITATTRIBUTE_attributeList (UNITATTRIBUTE_XID VARCHAR(64), xattributeList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE ORG_UNITDUTY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xdistinguishedName VARCHAR(255), xname VARCHAR(255), xorderNumber INTEGER, xpinyin VARCHAR(255), xpinyinInitial VARCHAR(255), xunique VARCHAR(255), xunit VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT ORG_UNITDUTY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE ORG_UNITDUTY_identityList (UNITDUTY_XID VARCHAR(64), xidentityList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_UNIT_controllerList (UNIT_XID VARCHAR(64), xcontrollerList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_UNIT_inheritedControllerList (UNIT_XID VARCHAR(64), xinheritedControllerList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE ORG_UNIT_typeList (UNIT_XID VARCHAR(64), xtypeList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_ATTACHMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityName VARCHAR(255), xactivityToken VARCHAR(64), xactivityType VARCHAR(16), xapplication VARCHAR(64), xcompleted BOOLEAN, xdeepPath BOOLEAN, xextension VARCHAR(16), xjob VARCHAR(64), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xorderNumber INTEGER, xperson VARCHAR(255), xprocess VARCHAR(64), xsite VARCHAR(64), xstorage VARCHAR(64), xtext CLOB, xtype VARCHAR(255), xwork VARCHAR(64), xworkCompleted VARCHAR(64), xworkCreateTime TIMESTAMP, PRIMARY KEY (xid), CONSTRAINT PP_C_ATTACHMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_ATTACHMENT_controllerIdentityList (ATTACHMENT_XID VARCHAR(64), xcontrollerIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_ATTACHMENT_controllerUnitList (ATTACHMENT_XID VARCHAR(64), xcontrollerUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_ATTACHMENT_divisionList (ATTACHMENT_XID VARCHAR(64), xdivisionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_ATTACHMENT_editIdentityList (ATTACHMENT_XID VARCHAR(64), xeditIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_ATTACHMENT_editUnitList (ATTACHMENT_XID VARCHAR(64), xeditUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_ATTACHMENT_readIdentityList (ATTACHMENT_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_ATTACHMENT_readUnitList (ATTACHMENT_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_DOCUMENTVERSION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityAlias VARCHAR(255), xactivityDescription VARCHAR(255), xactivityName VARCHAR(255), xactivityToken VARCHAR(64), xactivityType VARCHAR(16), xapplication VARCHAR(64), xcategory VARCHAR(255), xcompleted BOOLEAN, xdata CLOB, xjob VARCHAR(64), xperson VARCHAR(255), xprocess VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_C_DOCUMENTVERSION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_DRAFT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xidentity VARCHAR(255), xperson VARCHAR(255), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xproperties CLOB, xtitle VARCHAR(255), xunit VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_C_DRAFT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_KEYLOCK (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xkey VARCHAR(255), xperson VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_C_KEYLOCK_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_READ (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityAlias VARCHAR(255), xactivityDescription VARCHAR(255), xactivityName VARCHAR(255), xactivityToken VARCHAR(64), xactivityType VARCHAR(16), xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xbooleanValue01 BOOLEAN, xbooleanValue02 BOOLEAN, xcompleted BOOLEAN, xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorUnit VARCHAR(255), xcurrentActivityName VARCHAR(255), xdateTimeValue01 TIMESTAMP, xdateTimeValue02 TIMESTAMP, xdateTimeValue03 TIMESTAMP, xdateTimeValue04 TIMESTAMP, xdateTimeValue05 TIMESTAMP, xdateValue01 DATE, xdateValue02 DATE, xdoubleValue01 DOUBLE, xdoubleValue02 DOUBLE, xdoubleValue03 DOUBLE, xdoubleValue04 DOUBLE, xdoubleValue05 DOUBLE, xidentity VARCHAR(255), xjob VARCHAR(64), xlongValue01 BIGINT, xlongValue02 BIGINT, xlongValue03 BIGINT, xlongValue04 BIGINT, xlongValue05 BIGINT, xopinion VARCHAR(255), xopinionLob CLOB, xperson VARCHAR(255), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xproperties CLOB, xserial VARCHAR(128), xstartTime TIMESTAMP, xstartTimeMonth VARCHAR(16), xstringValue01 VARCHAR(255), xstringValue02 VARCHAR(255), xstringValue03 VARCHAR(255), xstringValue04 VARCHAR(255), xstringValue05 VARCHAR(255), xstringValue06 VARCHAR(255), xstringValue07 VARCHAR(255), xstringValue08 VARCHAR(255), xstringValue09 VARCHAR(255), xstringValue10 VARCHAR(255), xtimeValue01 TIME, xtimeValue02 TIME, xtitle VARCHAR(255), xunit VARCHAR(255), xviewed BOOLEAN, xwork VARCHAR(64), xworkCompleted VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_C_READ_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_READCOMPLETED (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityAlias VARCHAR(255), xactivityDescription VARCHAR(255), xactivityName VARCHAR(255), xactivityToken VARCHAR(64), xactivityType VARCHAR(16), xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xbooleanValue01 BOOLEAN, xbooleanValue02 BOOLEAN, xcompleted BOOLEAN, xcompletedTime TIMESTAMP, xcompletedTimeMonth VARCHAR(16), xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorUnit VARCHAR(255), xcurrentActivityName VARCHAR(255), xdateTimeValue01 TIMESTAMP, xdateTimeValue02 TIMESTAMP, xdateTimeValue03 TIMESTAMP, xdateTimeValue04 TIMESTAMP, xdateTimeValue05 TIMESTAMP, xdateValue01 DATE, xdateValue02 DATE, xdoubleValue01 DOUBLE, xdoubleValue02 DOUBLE, xdoubleValue03 DOUBLE, xdoubleValue04 DOUBLE, xdoubleValue05 DOUBLE, xduration BIGINT, xidentity VARCHAR(255), xjob VARCHAR(64), xlongValue01 BIGINT, xlongValue02 BIGINT, xlongValue03 BIGINT, xlongValue04 BIGINT, xlongValue05 BIGINT, xopinion VARCHAR(255), xopinionLob CLOB, xperson VARCHAR(255), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xproperties CLOB, xread VARCHAR(64), xserial VARCHAR(128), xstartTime TIMESTAMP, xstartTimeMonth VARCHAR(16), xstringValue01 VARCHAR(255), xstringValue02 VARCHAR(255), xstringValue03 VARCHAR(255), xstringValue04 VARCHAR(255), xstringValue05 VARCHAR(255), xstringValue06 VARCHAR(255), xstringValue07 VARCHAR(255), xstringValue08 VARCHAR(255), xstringValue09 VARCHAR(255), xstringValue10 VARCHAR(255), xtimeValue01 TIME, xtimeValue02 TIME, xtitle VARCHAR(255), xunit VARCHAR(255), xwork VARCHAR(64), xworkCompleted VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_C_READCOMPLETED_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_Record (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xarrivedActivity VARCHAR(64), xarrivedActivityAlias VARCHAR(255), xarrivedActivityName VARCHAR(255), xarrivedActivityToken VARCHAR(64), xarrivedActivityType VARCHAR(16), xcompleted BOOLEAN, xdisplay BOOLEAN, xfromActivity VARCHAR(64), xfromActivityAlias VARCHAR(255), xfromActivityName VARCHAR(255), xfromActivityToken VARCHAR(64), xfromActivityType VARCHAR(16), xidentity VARCHAR(255), xjob VARCHAR(64), xorder BIGINT, xperson VARCHAR(255), xprocess VARCHAR(64), xproperties CLOB, xrecordTime TIMESTAMP, xtype VARCHAR(64), xunit VARCHAR(255), xwork VARCHAR(64), xworkCompleted VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_C_Record_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_REVIEW (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xbooleanValue01 BOOLEAN, xbooleanValue02 BOOLEAN, xcompleted BOOLEAN, xcompletedTime TIMESTAMP, xcompletedTimeMonth VARCHAR(16), xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorUnit VARCHAR(255), xcurrentActivityName VARCHAR(255), xdateTimeValue01 TIMESTAMP, xdateTimeValue02 TIMESTAMP, xdateTimeValue03 TIMESTAMP, xdateTimeValue04 TIMESTAMP, xdateTimeValue05 TIMESTAMP, xdateValue01 DATE, xdateValue02 DATE, xdoubleValue01 DOUBLE, xdoubleValue02 DOUBLE, xdoubleValue03 DOUBLE, xdoubleValue04 DOUBLE, xdoubleValue05 DOUBLE, xjob VARCHAR(64), xlongValue01 BIGINT, xlongValue02 BIGINT, xlongValue03 BIGINT, xlongValue04 BIGINT, xlongValue05 BIGINT, xperson VARCHAR(255), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xproperties CLOB, xserial VARCHAR(128), xstartTime TIMESTAMP, xstartTimeMonth VARCHAR(16), xstringValue01 VARCHAR(255), xstringValue02 VARCHAR(255), xstringValue03 VARCHAR(255), xstringValue04 VARCHAR(255), xstringValue05 VARCHAR(255), xstringValue06 VARCHAR(255), xstringValue07 VARCHAR(255), xstringValue08 VARCHAR(255), xstringValue09 VARCHAR(255), xstringValue10 VARCHAR(255), xtimeValue01 TIME, xtimeValue02 TIME, xtitle VARCHAR(255), xwork VARCHAR(64), xworkCompleted VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_C_REVIEW_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_SERIALNUMBER (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xname VARCHAR(255), xprocess VARCHAR(64), xserial INTEGER, PRIMARY KEY (xid), CONSTRAINT PP_C_SERIALNUMBER_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_TASK (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityAlias VARCHAR(255), xactivityDescription VARCHAR(255), xactivityName VARCHAR(255), xactivityToken VARCHAR(64), xactivityType VARCHAR(16), xallowRapid BOOLEAN, xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xbooleanValue01 BOOLEAN, xbooleanValue02 BOOLEAN, xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorUnit VARCHAR(255), xdateTimeValue01 TIMESTAMP, xdateTimeValue02 TIMESTAMP, xdateTimeValue03 TIMESTAMP, xdateTimeValue04 TIMESTAMP, xdateTimeValue05 TIMESTAMP, xdateValue01 DATE, xdateValue02 DATE, xdoubleValue01 DOUBLE, xdoubleValue02 DOUBLE, xdoubleValue03 DOUBLE, xdoubleValue04 DOUBLE, xdoubleValue05 DOUBLE, xempowerFromIdentity VARCHAR(255), xexpireTime TIMESTAMP, xexpired BOOLEAN, xfirst BOOLEAN, xidentity VARCHAR(255), xjob VARCHAR(64), xlongValue01 BIGINT, xlongValue02 BIGINT, xlongValue03 BIGINT, xlongValue04 BIGINT, xlongValue05 BIGINT, xmediaOpinion VARCHAR(255), xmodified BOOLEAN, xopinion VARCHAR(255), xopinionLob CLOB, xperson VARCHAR(255), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xproperties CLOB, xrouteName VARCHAR(255), xserial VARCHAR(128), xseries VARCHAR(64), xstartTime TIMESTAMP, xstartTimeMonth VARCHAR(16), xstringValue01 VARCHAR(255), xstringValue02 VARCHAR(255), xstringValue03 VARCHAR(255), xstringValue04 VARCHAR(255), xstringValue05 VARCHAR(255), xstringValue06 VARCHAR(255), xstringValue07 VARCHAR(255), xstringValue08 VARCHAR(255), xstringValue09 VARCHAR(255), xstringValue10 VARCHAR(255), xtimeValue01 TIME, xtimeValue02 TIME, xtitle VARCHAR(255), xunit VARCHAR(255), xurgeTime TIMESTAMP, xurged BOOLEAN, xviewed BOOLEAN, xwork VARCHAR(64), xworkCreateType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT PP_C_TASK_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_TASKCOMPLETED (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityAlias VARCHAR(255), xactivityDescription VARCHAR(255), xactivityName VARCHAR(255), xactivityToken VARCHAR(64), xactivityType VARCHAR(16), xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xbooleanValue01 BOOLEAN, xbooleanValue02 BOOLEAN, xcompleted BOOLEAN, xcompletedTime TIMESTAMP, xcompletedTimeMonth VARCHAR(16), xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorUnit VARCHAR(255), xcurrentActivityName VARCHAR(255), xdateTimeValue01 TIMESTAMP, xdateTimeValue02 TIMESTAMP, xdateTimeValue03 TIMESTAMP, xdateTimeValue04 TIMESTAMP, xdateTimeValue05 TIMESTAMP, xdateValue01 DATE, xdateValue02 DATE, xdoubleValue01 DOUBLE, xdoubleValue02 DOUBLE, xdoubleValue03 DOUBLE, xdoubleValue04 DOUBLE, xdoubleValue05 DOUBLE, xduration BIGINT, xempowerFromIdentity VARCHAR(255), xempowerToIdentity VARCHAR(255), xexpireTime TIMESTAMP, xexpired BOOLEAN, xidentity VARCHAR(255), xjob VARCHAR(64), xjoinInquire BOOLEAN, xlatest BOOLEAN, xlongValue01 BIGINT, xlongValue02 BIGINT, xlongValue03 BIGINT, xlongValue04 BIGINT, xlongValue05 BIGINT, xmediaOpinion VARCHAR(255), xopinion VARCHAR(255), xopinionLob CLOB, xperson VARCHAR(255), xpressActivityToken VARCHAR(64), xpressCount INTEGER, xpressTime TIMESTAMP, xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xprocessingType VARCHAR(16), xproperties CLOB, xretractTime TIMESTAMP, xrouteName VARCHAR(255), xserial VARCHAR(128), xstartTime TIMESTAMP, xstartTimeMonth VARCHAR(16), xstringValue01 VARCHAR(255), xstringValue02 VARCHAR(255), xstringValue03 VARCHAR(255), xstringValue04 VARCHAR(255), xstringValue05 VARCHAR(255), xstringValue06 VARCHAR(255), xstringValue07 VARCHAR(255), xstringValue08 VARCHAR(255), xstringValue09 VARCHAR(255), xstringValue10 VARCHAR(255), xtask VARCHAR(64), xtimeValue01 TIME, xtimeValue02 TIME, xtitle VARCHAR(255), xunit VARCHAR(255), xwork VARCHAR(64), xworkCompleted VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_C_TASKCOMPLETED_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_TASK_routeDecisionOpinionList (TASK_XID VARCHAR(64), xrouteDecisionOpinionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_TASK_routeList (TASK_XID VARCHAR(64), xrouteList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE PP_C_TASK_routeNameList (TASK_XID VARCHAR(64), xrouteNameList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_TASK_routeOpinionList (TASK_XID VARCHAR(64), xrouteOpinionList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_WORK (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityAlias VARCHAR(255), xactivityArrivedTime TIMESTAMP, xactivityDescription VARCHAR(255), xactivityName VARCHAR(255), xactivityToken VARCHAR(64), xactivityType VARCHAR(16), xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xbeforeExecuted BOOLEAN, xbooleanValue01 BOOLEAN, xbooleanValue02 BOOLEAN, xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorUnit VARCHAR(255), xcreatorUnitLevelName CLOB, xdataChanged BOOLEAN, xdateTimeValue01 TIMESTAMP, xdateTimeValue02 TIMESTAMP, xdateTimeValue03 TIMESTAMP, xdateTimeValue04 TIMESTAMP, xdateTimeValue05 TIMESTAMP, xdateValue01 DATE, xdateValue02 DATE, xdestinationActivity VARCHAR(64), xdestinationActivityType VARCHAR(16), xdestinationRoute VARCHAR(64), xdestinationRouteName VARCHAR(255), xdoubleValue01 DOUBLE, xdoubleValue02 DOUBLE, xdoubleValue03 DOUBLE, xdoubleValue04 DOUBLE, xdoubleValue05 DOUBLE, xembedTargetWork VARCHAR(64), xexpireTime TIMESTAMP, xform VARCHAR(64), xjob VARCHAR(64), xlongValue01 BIGINT, xlongValue02 BIGINT, xlongValue03 BIGINT, xlongValue04 BIGINT, xlongValue05 BIGINT, xmanualTaskIdentityText VARCHAR(255), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xproperties CLOB, xserial VARCHAR(128), xsplitToken VARCHAR(64), xsplitValue VARCHAR(255), xsplitting BOOLEAN, xstartTime TIMESTAMP, xstartTimeMonth VARCHAR(16), xstringValue01 VARCHAR(255), xstringValue02 VARCHAR(255), xstringValue03 VARCHAR(255), xstringValue04 VARCHAR(255), xstringValue05 VARCHAR(255), xstringValue06 VARCHAR(255), xstringValue07 VARCHAR(255), xstringValue08 VARCHAR(255), xstringValue09 VARCHAR(255), xstringValue10 VARCHAR(255), xtimeValue01 TIME, xtimeValue02 TIME, xtitle VARCHAR(255), xtitleLob CLOB, xworkCreateType VARCHAR(16), xworkStatus VARCHAR(16), xworkThroughManual BOOLEAN, PRIMARY KEY (xid), CONSTRAINT PP_C_WORK_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_WORKCOMPLETED (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xallowRollback BOOLEAN, xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xbooleanValue01 BOOLEAN, xbooleanValue02 BOOLEAN, xcompletedTime TIMESTAMP, xcompletedTimeMonth VARCHAR(16), xcreatorIdentity VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorUnit VARCHAR(255), xcreatorUnitLevelName CLOB, xdateTimeValue01 TIMESTAMP, xdateTimeValue02 TIMESTAMP, xdateTimeValue03 TIMESTAMP, xdateTimeValue04 TIMESTAMP, xdateTimeValue05 TIMESTAMP, xdateValue01 DATE, xdateValue02 DATE, xdoubleValue01 DOUBLE, xdoubleValue02 DOUBLE, xdoubleValue03 DOUBLE, xdoubleValue04 DOUBLE, xdoubleValue05 DOUBLE, xduration BIGINT, xexpireTime TIMESTAMP, xexpired BOOLEAN, xform VARCHAR(64), xformData CLOB, xformMobileData CLOB, xjob VARCHAR(64), xlongValue01 BIGINT, xlongValue02 BIGINT, xlongValue03 BIGINT, xlongValue04 BIGINT, xlongValue05 BIGINT, xmerged BOOLEAN, xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xproperties CLOB, xserial VARCHAR(128), xstartTime TIMESTAMP, xstartTimeMonth VARCHAR(16), xstringValue01 VARCHAR(255), xstringValue02 VARCHAR(255), xstringValue03 VARCHAR(255), xstringValue04 VARCHAR(255), xstringValue05 VARCHAR(255), xstringValue06 VARCHAR(255), xstringValue07 VARCHAR(255), xstringValue08 VARCHAR(255), xstringValue09 VARCHAR(255), xstringValue10 VARCHAR(255), xtimeValue01 TIME, xtimeValue02 TIME, xtitle VARCHAR(255), xtitleLob CLOB, xwork VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_C_WORKCOMPLETED_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_WORKLOG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xapplicationAlias VARCHAR(255), xapplicationName VARCHAR(255), xarrivedActivity VARCHAR(64), xarrivedActivityAlias VARCHAR(255), xarrivedActivityName VARCHAR(255), xarrivedActivityToken VARCHAR(64), xarrivedActivityType VARCHAR(16), xarrivedGroup VARCHAR(255), xarrivedOpinionGroup VARCHAR(255), xarrivedTime TIMESTAMP, xcompleted BOOLEAN, xconnected BOOLEAN, xduration BIGINT, xfromActivity VARCHAR(64), xfromActivityAlias VARCHAR(255), xfromActivityName VARCHAR(255), xfromActivityToken VARCHAR(64), xfromActivityType VARCHAR(16), xfromGroup VARCHAR(255), xfromOpinionGroup VARCHAR(255), xfromTime TIMESTAMP, xjob VARCHAR(64), xprocess VARCHAR(64), xprocessAlias VARCHAR(255), xprocessName VARCHAR(255), xproperties CLOB, xroute VARCHAR(64), xrouteName VARCHAR(255), xsplitToken VARCHAR(64), xsplitValue VARCHAR(255), xsplitWork VARCHAR(64), xsplitting BOOLEAN, xwork VARCHAR(64), xworkCompleted VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_C_WORKLOG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_C_WORK_manualTaskIdentityList (WORK_XID VARCHAR(64), xmanualTaskIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_C_WORK_splitTokenList (WORK_XID VARCHAR(64), xsplitTokenList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE PP_E_AGENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xagentInterruptScript VARCHAR(255), xagentInterruptScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(64), xscript VARCHAR(255), xscriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_AGENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_AGENT_readDataPathList (AGENT_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_AGENT_readGroupList (AGENT_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_AGENT_readIdentityList (AGENT_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_AGENT_readUnitList (AGENT_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_AGENT_reviewDataPathList (AGENT_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_AGENT_reviewGroupList (AGENT_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_AGENT_reviewIdentityList (AGENT_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_AGENT_reviewUnitList (AGENT_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_APPLICATION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xapplicationCategory VARCHAR(255), xcreatorPerson VARCHAR(255), xdescription VARCHAR(255), xicon CLOB, xiconHue VARCHAR(8), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_E_APPLICATION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_APPLICATIONDICT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xapplication VARCHAR(64), xdescription VARCHAR(255), xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_E_APPLICATIONDICT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_APPLICATIONDICTITEM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xbooleanValue BOOLEAN, xbundle VARCHAR(255), xdateTimeValue TIMESTAMP, xdateValue DATE, xitemCategory VARCHAR(16), xitemPrimitiveType VARCHAR(1), xitemStringValueType VARCHAR(2), xitemType VARCHAR(1), xnumberValue DOUBLE, xpath0 VARCHAR(64), xpath0Location INTEGER, xpath1 VARCHAR(64), xpath1Location INTEGER, xpath2 VARCHAR(64), xpath2Location INTEGER, xpath3 VARCHAR(64), xpath3Location INTEGER, xpath4 VARCHAR(64), xpath4Location INTEGER, xpath5 VARCHAR(64), xpath5Location INTEGER, xpath6 VARCHAR(64), xpath6Location INTEGER, xpath7 VARCHAR(64), xpath7Location INTEGER, xstringLongValue CLOB, xstringShortValue VARCHAR(255), xtimeValue TIME, PRIMARY KEY (xid), CONSTRAINT PP_E_APPLICATIONDICTITEM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_APPLICATION_availableIdentityList (APPLICATION_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_APPLICATION_availableUnitList (APPLICATION_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_APPLICATION_controllerList (APPLICATION_XID VARCHAR(64), xcontrollerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_BEGIN (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_E_BEGIN_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_BEGIN_readDataPathList (BEGIN_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_BEGIN_readGroupList (BEGIN_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_BEGIN_readIdentityList (BEGIN_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_BEGIN_readUnitList (BEGIN_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_BEGIN_reviewDataPathList (BEGIN_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_BEGIN_reviewGroupList (BEGIN_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_BEGIN_reviewIdentityList (BEGIN_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_BEGIN_reviewUnitList (BEGIN_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CANCEL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_CANCEL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_CANCEL_readDataPathList (CANCEL_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CANCEL_readGroupList (CANCEL_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CANCEL_readIdentityList (CANCEL_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CANCEL_readUnitList (CANCEL_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CANCEL_reviewDataPathList (CANCEL_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CANCEL_reviewGroupList (CANCEL_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CANCEL_reviewIdentityList (CANCEL_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CANCEL_reviewUnitList (CANCEL_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_CHOICE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_CHOICE_readDataPathList (CHOICE_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE_readGroupList (CHOICE_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE_readIdentityList (CHOICE_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE_readUnitList (CHOICE_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE_reviewDataPathList (CHOICE_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE_reviewGroupList (CHOICE_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE_reviewIdentityList (CHOICE_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE_reviewUnitList (CHOICE_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_CHOICE_routeList (CHOICE_XID VARCHAR(64), xrouteList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE PP_E_DELAY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdelayDataPath VARCHAR(255), xdelayMinute INTEGER, xdelayMode VARCHAR(16), xdelayScript VARCHAR(255), xdelayScriptText CLOB, xdelayTime TIMESTAMP, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(64), xworkMinute BOOLEAN, PRIMARY KEY (xid), CONSTRAINT PP_E_DELAY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_DELAY_readDataPathList (DELAY_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_DELAY_readGroupList (DELAY_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_DELAY_readIdentityList (DELAY_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_DELAY_readUnitList (DELAY_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_DELAY_reviewDataPathList (DELAY_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_DELAY_reviewGroupList (DELAY_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_DELAY_reviewIdentityList (DELAY_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_DELAY_reviewUnitList (DELAY_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_EMBED (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xasync BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xembedCreatorType VARCHAR(16), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xinheritAttachment BOOLEAN, xinheritData BOOLEAN, xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(64), xtargetApplication VARCHAR(64), xtargetApplicationAlias VARCHAR(255), xtargetApplicationName VARCHAR(255), xtargetAssginDataScript VARCHAR(255), xtargetAssginDataScriptText CLOB, xtargetIdentity VARCHAR(255), xtargetIdentityScript VARCHAR(255), xtargetIdentityScriptText CLOB, xtargetProcess VARCHAR(64), xtargetProcessAlias VARCHAR(255), xtargetProcessName VARCHAR(255), xtargetTitleScript VARCHAR(255), xtargetTitleScriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_EMBED_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_EMBED_readDataPathList (EMBED_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_EMBED_readGroupList (EMBED_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_EMBED_readIdentityList (EMBED_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_EMBED_readUnitList (EMBED_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_EMBED_reviewDataPathList (EMBED_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_EMBED_reviewGroupList (EMBED_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_EMBED_reviewIdentityList (EMBED_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_EMBED_reviewUnitList (EMBED_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_END (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xallowRollback BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_END_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_END_readDataPathList (END_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_END_readGroupList (END_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_END_readIdentityList (END_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_END_readUnitList (END_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_END_reviewDataPathList (END_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_END_reviewGroupList (END_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_END_reviewIdentityList (END_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_END_reviewUnitList (END_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_FILE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xapplication VARCHAR(64), xdata CLOB, xdescription VARCHAR(255), xfileName VARCHAR(255), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_E_FILE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_FORM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xapplication VARCHAR(64), xcategory VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xhasMobile BOOLEAN, xicon CLOB, xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xmobileData CLOB, xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_E_FORM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_FORMFIELD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xdataType VARCHAR(32), xform VARCHAR(64), xname VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_E_FORMFIELD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_FORMVERSION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdata CLOB, xform VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_E_FORMVERSION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_INVOKE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xasync BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xinternal BOOLEAN, xinternalProject VARCHAR(255), xinvokeMode VARCHAR(16), xjaxrsAddress VARCHAR(255), xjaxrsBodyScript VARCHAR(255), xjaxrsBodyScriptText CLOB, xjaxrsContentType VARCHAR(128), xjaxrsHeadScript VARCHAR(255), xjaxrsHeadScriptText CLOB, xjaxrsMethod VARCHAR(8), xjaxrsParameterScript VARCHAR(255), xjaxrsParameterScriptText CLOB, xjaxrsResponseScript VARCHAR(255), xjaxrsResponseScriptText CLOB, xjaxrsWithCipher BOOLEAN, xjaxwsAddress VARCHAR(255), xjaxwsMethod VARCHAR(128), xjaxwsParameterScript VARCHAR(255), xjaxwsParameterScriptText CLOB, xjaxwsResponseScript VARCHAR(255), xjaxwsResponseScriptText CLOB, xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_E_INVOKE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_INVOKE_readDataPathList (INVOKE_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_INVOKE_readGroupList (INVOKE_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_INVOKE_readIdentityList (INVOKE_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_INVOKE_readUnitList (INVOKE_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_INVOKE_reviewDataPathList (INVOKE_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_INVOKE_reviewGroupList (INVOKE_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_INVOKE_reviewIdentityList (INVOKE_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_INVOKE_reviewUnitList (INVOKE_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowAddSplit BOOLEAN, xallowDeleteWork BOOLEAN, xallowPress BOOLEAN, xallowRapid BOOLEAN, xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xallowReset BOOLEAN, xallowRetract BOOLEAN, xallowRollback BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xmanualAfterTaskScript VARCHAR(255), xmanualAfterTaskScriptText CLOB, xmanualBeforeTaskScript VARCHAR(255), xmanualBeforeTaskScriptText CLOB, xmanualMergeSameJobActivity BOOLEAN, xmanualMode VARCHAR(16), xmanualStayScript VARCHAR(255), xmanualStayScriptText CLOB, xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xresetCount INTEGER, xresetRange VARCHAR(16), xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xtaskDuty CLOB, xtaskExpireDay INTEGER, xtaskExpireHour INTEGER, xtaskExpireScript VARCHAR(255), xtaskExpireScriptText CLOB, xtaskExpireType VARCHAR(16), xtaskExpireWorkTime BOOLEAN, xtaskScript VARCHAR(255), xtaskScriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_MANUAL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_MANUAL_readDataPathList (MANUAL_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_readGroupList (MANUAL_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_readIdentityList (MANUAL_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_readUnitList (MANUAL_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_reviewDataPathList (MANUAL_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_reviewGroupList (MANUAL_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_reviewIdentityList (MANUAL_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_reviewUnitList (MANUAL_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_routeList (MANUAL_XID VARCHAR(64), xrouteList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_taskDataPathList (MANUAL_XID VARCHAR(64), xtaskDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_taskGroupList (MANUAL_XID VARCHAR(64), xtaskGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_taskIdentityList (MANUAL_XID VARCHAR(64), xtaskIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MANUAL_taskUnitList (MANUAL_XID VARCHAR(64), xtaskUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MAPPING (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xdata CLOB, xdescription VARCHAR(255), xenable BOOLEAN, xname VARCHAR(255), xprocess VARCHAR(64), xtableName VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_E_MAPPING_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_MERGE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_E_MERGE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_MERGE_readDataPathList (MERGE_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MERGE_readGroupList (MERGE_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MERGE_readIdentityList (MERGE_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MERGE_readUnitList (MERGE_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MERGE_reviewDataPathList (MERGE_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MERGE_reviewGroupList (MERGE_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MERGE_reviewIdentityList (MERGE_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MERGE_reviewUnitList (MERGE_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MESSAGE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(64), xscript VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PP_E_MESSAGE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_MESSAGE_readDataPathList (MESSAGE_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MESSAGE_readGroupList (MESSAGE_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MESSAGE_readIdentityList (MESSAGE_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MESSAGE_readUnitList (MESSAGE_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MESSAGE_reviewDataPathList (MESSAGE_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MESSAGE_reviewGroupList (MESSAGE_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MESSAGE_reviewIdentityList (MESSAGE_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_MESSAGE_reviewUnitList (MESSAGE_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_PARALLEL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_PARALLEL_readDataPathList (PARALLEL_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL_readGroupList (PARALLEL_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL_readIdentityList (PARALLEL_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL_readUnitList (PARALLEL_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL_reviewDataPathList (PARALLEL_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL_reviewGroupList (PARALLEL_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL_reviewIdentityList (PARALLEL_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL_reviewUnitList (PARALLEL_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PARALLEL_routeList (PARALLEL_XID VARCHAR(64), xrouteList VARCHAR(64), xorderColumn INTEGER); +CREATE TABLE PP_E_PROCESS (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterBeginScript VARCHAR(255), xafterBeginScriptText CLOB, xafterEndScript VARCHAR(255), xafterEndScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xapplication VARCHAR(64), xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeBeginScript VARCHAR(255), xbeforeBeginScriptText CLOB, xbeforeEndScript VARCHAR(255), xbeforeEndScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xcheckDraft BOOLEAN, xcreatorPerson VARCHAR(255), xdefaultStartMode VARCHAR(16), xdescription VARCHAR(255), xedition VARCHAR(255), xeditionDes VARCHAR(255), xeditionEnable BOOLEAN, xeditionName VARCHAR(255), xeditionNumber DOUBLE, xexpireDay INTEGER, xexpireHour INTEGER, xexpireScript VARCHAR(255), xexpireScriptText CLOB, xexpireType VARCHAR(16), xexpireWorkTime BOOLEAN, xicon CLOB, xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xname VARCHAR(255), xprojection CLOB, xprojectionFully BOOLEAN, xrouteNameAsOpinion BOOLEAN, xserialActivity VARCHAR(64), xserialPhase VARCHAR(32), xserialTexture CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_PROCESS_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_PROCESSVERSION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdata CLOB, xprocess VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_E_PROCESSVERSION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_PROCESS_controllerList (PROCESS_XID VARCHAR(64), xcontrollerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PROCESS_startableIdentityList (PROCESS_XID VARCHAR(64), xstartableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_PROCESS_startableUnitList (PROCESS_XID VARCHAR(64), xstartableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_QUERYSTAT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xapplication VARCHAR(64), xcreatorPerson VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xicon CLOB, xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlayout CLOB, xname VARCHAR(255), xqueryView VARCHAR(64), xqueryViewAlias VARCHAR(255), xqueryViewName VARCHAR(255), xresult CLOB, xtimingEnable BOOLEAN, xtimingInterval INTEGER, PRIMARY KEY (xid), CONSTRAINT PP_E_QUERYSTAT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_QUERYSTATTIMED (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xexpiredTime TIMESTAMP, xproject VARCHAR(64), xqueryStat VARCHAR(64), xscheduleTime TIMESTAMP, xtimingInterval INTEGER, PRIMARY KEY (xid), CONSTRAINT PP_E_QUERYSTATTIMED_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_QUERYSTAT_availableIdentityList (QUERYSTAT_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_QUERYSTAT_availablePersonList (QUERYSTAT_XID VARCHAR(64), xavailablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_QUERYSTAT_availableUnitList (QUERYSTAT_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_QUERYSTAT_controllerList (QUERYSTAT_XID VARCHAR(64), xcontrollerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_QUERYVIEW (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterCalculateGridScriptText CLOB, xafterGridScriptText CLOB, xafterGroupGridScriptText CLOB, xalias VARCHAR(255), xapplication VARCHAR(64), xcode CLOB, xcreatorPerson VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xdisplay BOOLEAN, xicon CLOB, xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlayout CLOB, xname VARCHAR(255), xtimingEnable BOOLEAN, xtimingInterval INTEGER, xtimingTouch INTEGER, PRIMARY KEY (xid), CONSTRAINT PP_E_QUERYVIEW_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_QUERYVIEW_availableIdentityList (QUERYVIEW_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_QUERYVIEW_availablePersonList (QUERYVIEW_XID VARCHAR(64), xavailablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_QUERYVIEW_availableUnitList (QUERYVIEW_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_QUERYVIEW_controllerList (QUERYVIEW_XID VARCHAR(64), xcontrollerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_ROUTE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xactivity VARCHAR(64), xactivityType VARCHAR(16), xalias VARCHAR(255), xappendTaskIdentityScript VARCHAR(255), xappendTaskIdentityScriptText CLOB, xappendTaskIdentityType VARCHAR(64), xdecisionOpinion VARCHAR(255), xdescription VARCHAR(255), xdisplayNameScript VARCHAR(255), xdisplayNameScriptText CLOB, xedition VARCHAR(255), xhiddenScript VARCHAR(255), xhiddenScriptText CLOB, xname VARCHAR(255), xopinion VARCHAR(255), xopinionRequired BOOLEAN, xorderNumber INTEGER, xpassExpired BOOLEAN, xpassSameTarget BOOLEAN, xposition VARCHAR(255), xprocess VARCHAR(64), xscript VARCHAR(255), xscriptText CLOB, xselectConfig CLOB, xsole BOOLEAN, xtrack VARCHAR(255), xtype VARCHAR(64), xvalidationScript VARCHAR(255), xvalidationScriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_ROUTE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_SCRIPT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xapplication VARCHAR(64), xcreatorPerson VARCHAR(255), xdescription VARCHAR(255), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xname VARCHAR(255), xtext CLOB, xvalidated BOOLEAN, PRIMARY KEY (xid), CONSTRAINT PP_E_SCRIPT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_SCRIPTVERSION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdata CLOB, xscript VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_E_SCRIPTVERSION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_SCRIPT_dependScriptList (SCRIPT_XID VARCHAR(64), xdependScriptList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(64), xscript VARCHAR(255), xscriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_SERVICE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_SERVICE_readDataPathList (SERVICE_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE_readGroupList (SERVICE_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE_readIdentityList (SERVICE_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE_readUnitList (SERVICE_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE_reviewDataPathList (SERVICE_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE_reviewGroupList (SERVICE_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE_reviewIdentityList (SERVICE_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE_reviewUnitList (SERVICE_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SERVICE_trustAddressList (SERVICE_XID VARCHAR(64), xtrustAddressList VARCHAR(32), xorderColumn INTEGER); +CREATE TABLE PP_E_SPLIT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterArriveScript VARCHAR(255), xafterArriveScriptText CLOB, xafterExecuteScript VARCHAR(255), xafterExecuteScriptText CLOB, xafterInquireScript VARCHAR(255), xafterInquireScriptText CLOB, xalias VARCHAR(255), xallowReroute BOOLEAN, xallowRerouteTo BOOLEAN, xbeforeArriveScript VARCHAR(255), xbeforeArriveScriptText CLOB, xbeforeExecuteScript VARCHAR(255), xbeforeExecuteScriptText CLOB, xbeforeInquireScript VARCHAR(255), xbeforeInquireScriptText CLOB, xdescription VARCHAR(255), xdisplayLogScript VARCHAR(255), xdisplayLogScriptText CLOB, xedition VARCHAR(255), xextension CLOB, xform VARCHAR(64), xgroup VARCHAR(255), xname VARCHAR(255), xopinionGroup VARCHAR(255), xposition VARCHAR(32), xprocess VARCHAR(64), xreadDuty CLOB, xreadScript VARCHAR(255), xreadScriptText CLOB, xreviewDuty CLOB, xreviewScript VARCHAR(255), xreviewScriptText CLOB, xroute VARCHAR(64), xscript VARCHAR(255), xscriptText CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_SPLIT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_E_SPLIT_readDataPathList (SPLIT_XID VARCHAR(64), xreadDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SPLIT_readGroupList (SPLIT_XID VARCHAR(64), xreadGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SPLIT_readIdentityList (SPLIT_XID VARCHAR(64), xreadIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SPLIT_readUnitList (SPLIT_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SPLIT_reviewDataPathList (SPLIT_XID VARCHAR(64), xreviewDataPathList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SPLIT_reviewGroupList (SPLIT_XID VARCHAR(64), xreviewGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SPLIT_reviewIdentityList (SPLIT_XID VARCHAR(64), xreviewIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_SPLIT_reviewUnitList (SPLIT_XID VARCHAR(64), xreviewUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PP_E_TEMPLATEFORM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xcategory VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xicon CLOB, xmobileData CLOB, xname VARCHAR(255), xoutline CLOB, PRIMARY KEY (xid), CONSTRAINT PP_E_TEMPLATEFORM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_L_PROCESSINGERROR (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdata CLOB, xmessage VARCHAR(255), xwork VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_L_PROCESSINGERROR_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_T_SERVICEVALUE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xprocess VARCHAR(64), xservice VARCHAR(64), xvalue CLOB, xwork VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PP_T_SERVICEVALUE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PP_T_TRIGGERWORKRECORD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xlastSequence VARCHAR(128), PRIMARY KEY (xid), CONSTRAINT PP_T_TRIGGERWORKRECORD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PTL_FILE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xfileName VARCHAR(255), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xportal VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PTL_FILE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PTL_PAGE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xhasMobile BOOLEAN, xmobileData CLOB, xname VARCHAR(255), xportal VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PTL_PAGE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PTL_PORTAL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xcreatorPerson VARCHAR(255), xdescription VARCHAR(255), xfirstPage VARCHAR(64), xicon CLOB, xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xmobileClient BOOLEAN, xname VARCHAR(255), xpcClient BOOLEAN, xportalCategory VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT PTL_PORTAL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PTL_PORTAL_availableIdentityList (PORTAL_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PTL_PORTAL_availableUnitList (PORTAL_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PTL_PORTAL_controllerList (PORTAL_XID VARCHAR(64), xcontrollerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PTL_SCRIPT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xcreatorPerson VARCHAR(255), xdescription VARCHAR(255), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xname VARCHAR(255), xportal VARCHAR(64), xtext CLOB, xvalidated BOOLEAN, PRIMARY KEY (xid), CONSTRAINT PTL_SCRIPT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PTL_SCRIPT_dependScriptList (SCRIPT_XID VARCHAR(64), xdependScriptList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PTL_TEMPLATEPAGE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xcategory VARCHAR(255), xcreatorPerson VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xicon CLOB, xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xmobileData CLOB, xname VARCHAR(255), xpreview CLOB, PRIMARY KEY (xid), CONSTRAINT PTL_TEMPLATEPAGE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE PTL_TEMPLATEPAGE_availableIdentityList (TEMPLATEPAGE_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PTL_TEMPLATEPAGE_availableUnitList (TEMPLATEPAGE_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PTL_TEMPLATEPAGE_controllerList (TEMPLATEPAGE_XID VARCHAR(64), xcontrollerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE PTL_WIDGET (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xhasMobile BOOLEAN, xmobileData CLOB, xname VARCHAR(255), xportal VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT PTL_WIDGET_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_ITEM (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbooleanValue BOOLEAN, xbundle VARCHAR(255), xdateTimeValue TIMESTAMP, xdateValue DATE, xitemCategory VARCHAR(16), xitemPrimitiveType VARCHAR(1), xitemStringValueType VARCHAR(2), xitemType VARCHAR(1), xnumberValue DOUBLE, xpath0 VARCHAR(64), xpath0Location INTEGER, xpath1 VARCHAR(64), xpath1Location INTEGER, xpath2 VARCHAR(64), xpath2Location INTEGER, xpath3 VARCHAR(64), xpath3Location INTEGER, xpath4 VARCHAR(64), xpath4Location INTEGER, xpath5 VARCHAR(64), xpath5Location INTEGER, xpath6 VARCHAR(64), xpath6Location INTEGER, xpath7 VARCHAR(64), xpath7Location INTEGER, xstringLongValue CLOB, xstringShortValue VARCHAR(255), xtimeValue TIME, PRIMARY KEY (xid), CONSTRAINT QRY_ITEM_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_NRL_ENTRY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbundle VARCHAR(255), xinValueCount INTEGER, xmodel VARCHAR(64), xoutValueCount INTEGER, xtitle VARCHAR(255), xtype VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT QRY_NRL_ENTRY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_NRL_ENTRY_inValueLabelList (ENTRY_XID VARCHAR(64), xinValueLabelList INTEGER, xorderColumn INTEGER); +CREATE TABLE QRY_NRL_ENTRY_outValueLabelList (ENTRY_XID VARCHAR(64), xoutValueLabelList INTEGER, xorderColumn INTEGER); +CREATE TABLE QRY_NRL_INTEXT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcount INTEGER, xmodel VARCHAR(64), xserial INTEGER, xtext VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT QRY_NRL_INTEXT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_NRL_INVALUE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcount INTEGER, xinTextSerial INTEGER, xmodel VARCHAR(64), xserial INTEGER, xtext VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT QRY_NRL_INVALUE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_NRL_MODEL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xanalyzeType VARCHAR(32), xattachmentScriptText CLOB, xdataType VARCHAR(32), xdescription VARCHAR(255), xeffectiveEntryCount INTEGER, xendDate TIMESTAMP, xentryCount INTEGER, xgeneratingPercent INTEGER, xinValueCount INTEGER, xinValueScriptText CLOB, xintermediateNnet CLOB, xlearnEntryCount INTEGER, xmaxResult INTEGER, xname VARCHAR(255), xneuralNetworkType VARCHAR(32), xnnet CLOB, xoutValueCount INTEGER, xoutValueScriptText CLOB, xstartDate TIMESTAMP, xstatus VARCHAR(32), xtotalError DOUBLE, xvalidationEntryCount INTEGER, xvalidationMeanSquareError DOUBLE, PRIMARY KEY (xid), CONSTRAINT QRY_NRL_MODEL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_NRL_MODEL_applicationList (MODEL_XID VARCHAR(64), xapplicationList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_NRL_MODEL_processList (MODEL_XID VARCHAR(64), xprocessList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_NRL_MODEL_propertyMap (MODEL_XID VARCHAR(64), xkey VARCHAR(255), xpropertyMap VARCHAR(255)); +CREATE TABLE QRY_NRL_OUTTEXT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcount INTEGER, xmodel VARCHAR(64), xserial INTEGER, xtext VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT QRY_NRL_OUTTEXT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_NRL_OUTVALUE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcount INTEGER, xmodel VARCHAR(64), xserial INTEGER, xtext VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT QRY_NRL_OUTVALUE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_PGM_ARGUMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xname VARCHAR(255), xstringValue VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT QRY_PGM_ARGUMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_QUERY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xcreatorPerson VARCHAR(255), xdescription VARCHAR(255), xicon CLOB, xiconHue VARCHAR(8), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xname VARCHAR(255), xqueryCategory VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT QRY_QUERY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_QUERY_availableIdentityList (QUERY_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_QUERY_availableUnitList (QUERY_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_QUERY_controllerList (QUERY_XID VARCHAR(64), xcontrollerList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_REVEAL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xdescription VARCHAR(255), xname VARCHAR(255), xquery VARCHAR(64), xstat VARCHAR(64), xview VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT QRY_REVEAL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_REVEAL_availableIdentityList (REVEAL_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_REVEAL_availableUnitList (REVEAL_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_SCH_STATEMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xcreatorPerson VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xentityCategory VARCHAR(16), xentityClassName VARCHAR(255), xformat VARCHAR(32), xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xname VARCHAR(255), xquery VARCHAR(64), xscriptText CLOB, xtable VARCHAR(64), xtype VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT QRY_SCH_STATEMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_SCH_STATEMENT_executePersonList (STATEMENT_XID VARCHAR(64), xexecutePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_SCH_STATEMENT_executeUnitList (STATEMENT_XID VARCHAR(64), xexecuteUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_SCH_TABLE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(64), xbuildSuccess BOOLEAN, xcreatorPerson VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xdraftData CLOB, xlastUpdatePerson VARCHAR(255), xlastUpdateTime TIMESTAMP, xname VARCHAR(64), xquery VARCHAR(64), xstatus VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT QRY_SCH_TABLE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_SCH_TABLE_editPersonList (TABLE_XID VARCHAR(64), xeditPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_SCH_TABLE_editUnitList (TABLE_XID VARCHAR(64), xeditUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_SCH_TABLE_readPersonList (TABLE_XID VARCHAR(64), xreadPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_SCH_TABLE_readUnitList (TABLE_XID VARCHAR(64), xreadUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_SEG_ENTRY (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xappId VARCHAR(64), xappName VARCHAR(255), xapplication VARCHAR(64), xapplicationName VARCHAR(255), xbundle VARCHAR(255), xcategoryId VARCHAR(64), xcategoryName VARCHAR(255), xcreatorPerson VARCHAR(255), xcreatorUnit VARCHAR(255), xlastUpdateTime TIMESTAMP, xprocess VARCHAR(64), xprocessName VARCHAR(255), xreference VARCHAR(64), xsummary VARCHAR(255), xtitle VARCHAR(255), xtype VARCHAR(32), xwait BOOLEAN, PRIMARY KEY (xid), CONSTRAINT QRY_SEG_ENTRY_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_SEG_WORD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xapplication VARCHAR(64), xbundle VARCHAR(64), xcount INTEGER, xentry VARCHAR(64), xlabel VARCHAR(32), xtag VARCHAR(64), xtype VARCHAR(32), xvalue VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT QRY_SEG_WORD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_STAT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xalias VARCHAR(255), xdata CLOB, xdescription VARCHAR(255), xname VARCHAR(255), xquery VARCHAR(64), xview VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT QRY_STAT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_STAT_availableIdentityList (STAT_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_STAT_availableUnitList (STAT_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_VIEW (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xafterCalculateGridScriptText CLOB, xafterGridScriptText CLOB, xafterGroupGridScriptText CLOB, xalias VARCHAR(255), xcacheAccess BOOLEAN, xcode CLOB, xcount INTEGER, xdata CLOB, xdescription VARCHAR(255), xdisplay BOOLEAN, xenableCache BOOLEAN, xlayout CLOB, xname VARCHAR(255), xpageSize INTEGER, xquery VARCHAR(64), xtoolbar CLOB, xtype VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT QRY_VIEW_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE QRY_VIEW_availableIdentityList (VIEW_XID VARCHAR(64), xavailableIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE QRY_VIEW_availableUnitList (VIEW_XID VARCHAR(64), xavailableUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE SAMPLE_JPUSH_TABLENAME (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdate TIMESTAMP, xname VARCHAR(255), xorderNumber INTEGER, PRIMARY KEY (xid), CONSTRAINT SAMPLE_JPUSH_TABLENAME_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_ATTACHMENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbundleObjType VARCHAR(8), xcreatorUid VARCHAR(255), xdeepPath BOOLEAN, xdescription VARCHAR(255), xextension VARCHAR(16), xfileHost VARCHAR(32), xfileName VARCHAR(255), xfilePath VARCHAR(255), xfileType VARCHAR(16), xlastUpdateTime TIMESTAMP, xlength BIGINT, xname VARCHAR(255), xprojectId VARCHAR(64), xseqNumber INTEGER, xsite VARCHAR(64), xstorage VARCHAR(64), xtaskId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT TEW_ATTACHMENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_BATCHOPERATION (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbundle VARCHAR(255), xdescription VARCHAR(255), xerrorCount INTEGER, xisRunning BOOLEAN, xobjType VARCHAR(16), xoldInfo VARCHAR(255), xoptType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT TEW_BATCHOPERATION_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_CHAT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent VARCHAR(255), xdeleted BOOLEAN, xdescription VARCHAR(255), xfileId BOOLEAN, xisFile BOOLEAN, xisLob BOOLEAN, xprojectId VARCHAR(64), xprojectTitle VARCHAR(255), xsender VARCHAR(255), xtarget VARCHAR(255), xtaskId VARCHAR(64), xtaskTitle VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT TEW_CHAT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_CHATCONTENT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent CLOB, PRIMARY KEY (xid), CONSTRAINT TEW_CHATCONTENT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_DYNAMIC (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbundle VARCHAR(64), xcontent VARCHAR(255), xdateTimeStr VARCHAR(32), xdescription VARCHAR(255), xobjectType VARCHAR(64), xoperator VARCHAR(255), xoptTime TIMESTAMP, xoptType VARCHAR(64), xpersonal BOOLEAN, xprojectId VARCHAR(64), xprojectTitle VARCHAR(255), xtarget VARCHAR(255), xtaskId VARCHAR(64), xtaskTitle VARCHAR(255), xtitle VARCHAR(255), xviewUrl VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT TEW_DYNAMIC_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_DYNAMIC_DETAIL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcontent CLOB, PRIMARY KEY (xid), CONSTRAINT TEW_DYNAMIC_DETAIL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_PROJECT (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xarchive BOOLEAN, xcompleted BOOLEAN, xcreatorPerson VARCHAR(255), xdeleted BOOLEAN, xexecutor VARCHAR(255), xgroupCount INTEGER, xicon VARCHAR(64), xorder INTEGER, xprogress INTEGER, xtitle VARCHAR(255), xtype VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT TEW_PROJECT_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_PROJECTDETAIL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription CLOB, PRIMARY KEY (xid), CONSTRAINT TEW_PROJECTDETAIL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_PROJECTEXTFIELD_RELE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription VARCHAR(255), xdisplayName VARCHAR(64), xdisplayType VARCHAR(16), xextFieldName VARCHAR(16), xnullable BOOLEAN, xoptionsData CLOB, xorder INTEGER, xprojectId VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT TEW_PROJECTEXTFIELD_RELE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_PROJECTGROUP (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorPerson VARCHAR(255), xname VARCHAR(255), xorder INTEGER, xowner VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT TEW_PROJECTGROUP_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_PROJECTGROUP_RELE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xgroupId VARCHAR(255), xprojectId VARCHAR(255), PRIMARY KEY (xid), CONSTRAINT TEW_PROJECTGROUP_RELE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_PROJECT_manageablePersonList (PROJECT_XID VARCHAR(64), xmanageablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE TEW_PROJECT_participantGroupList (PROJECT_XID VARCHAR(64), xparticipantGroupList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE TEW_PROJECT_participantIdentityList (PROJECT_XID VARCHAR(64), xparticipantIdentityList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE TEW_PROJECT_participantPersonList (PROJECT_XID VARCHAR(64), xparticipantPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE TEW_PROJECT_participantUnitList (PROJECT_XID VARCHAR(64), xparticipantUnitList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE TEW_PROJECT_starPersonList (PROJECT_XID VARCHAR(64), xstarPersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE TEW_REVIEW (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xarchive BOOLEAN, xclaimed BOOLEAN, xcompleted BOOLEAN, xcreatorPerson VARCHAR(255), xdeleted BOOLEAN, xendTime TIMESTAMP, xexecutor VARCHAR(255), xexecutorIdentity VARCHAR(255), xexecutorUnit VARCHAR(255), xmemoDouble1 DOUBLE, xmemoDouble2 DOUBLE, xmemoInteger1 INTEGER, xmemoInteger2 INTEGER, xmemoInteger3 INTEGER, xmemoString255_1 VARCHAR(255), xmemoString255_2 VARCHAR(255), xmemoString64_1 VARCHAR(64), xmemoString64_2 VARCHAR(64), xmemoString64_3 VARCHAR(255), xname VARCHAR(255), xorder INTEGER, xovertime BOOLEAN, xparent VARCHAR(64), xpermissionObj VARCHAR(255), xpermissionObjType VARCHAR(16), xpriority VARCHAR(32), xprogress INTEGER, xproject VARCHAR(64), xprojectName VARCHAR(64), xremindRelevance BOOLEAN, xstartTime TIMESTAMP, xtagContent VARCHAR(255), xtaskId VARCHAR(64), xtaskSequence VARCHAR(128), xworkStatus VARCHAR(32), PRIMARY KEY (xid), CONSTRAINT TEW_REVIEW_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_SYSTEMCONFIG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xconfigCode VARCHAR(96), xconfigName VARCHAR(96), xconfigValue VARCHAR(255), xdescription VARCHAR(255), xisLob BOOLEAN, xisMultiple BOOLEAN, xorderNumber INTEGER, xselectContent VARCHAR(255), xvalueType VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT TEW_SYSTEMCONFIG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_SYSTEMCONFIG_LOB (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xlobValue CLOB, PRIMARY KEY (xid), CONSTRAINT TEW_SYSTEMCONFIG_LOB_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TAG (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xowner VARCHAR(255), xproject VARCHAR(64), xtag VARCHAR(64), xtagColor VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT TEW_TAG_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASK (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xarchive BOOLEAN, xclaimed BOOLEAN, xcompleted BOOLEAN, xcreatorPerson VARCHAR(255), xdeleted BOOLEAN, xendTime TIMESTAMP, xexecutor VARCHAR(255), xexecutorIdentity VARCHAR(255), xexecutorUnit VARCHAR(255), xname VARCHAR(128), xorder INTEGER, xovertime BOOLEAN, xparent VARCHAR(64), xpriority VARCHAR(16), xprogress INTEGER, xproject VARCHAR(64), xprojectName VARCHAR(64), xremindRelevance BOOLEAN, xreviewed BOOLEAN, xstartTime TIMESTAMP, xsummay VARCHAR(255), xworkStatus VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT TEW_TASK_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKDETAIL (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xdescription CLOB, xdetail CLOB, xproject VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT TEW_TASKDETAIL_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKEXTFIELD (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xmemoString_1 VARCHAR(255), xmemoString_1_lob CLOB, xmemoString_2 VARCHAR(255), xmemoString_2_lob CLOB, xmemoString_3 VARCHAR(255), xmemoString_3_lob CLOB, xmemoString_4 VARCHAR(255), xmemoString_4_lob CLOB, xmemoString_5 VARCHAR(255), xmemoString_6 VARCHAR(255), xmemoString_7 VARCHAR(255), xmemoString_8 VARCHAR(255), xname VARCHAR(128), xproject VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT TEW_TASKEXTFIELD_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKGROUP (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcompletedTotal INTEGER, xcreatorPerson VARCHAR(255), xmemo VARCHAR(255), xname VARCHAR(96), xorder INTEGER, xovertimeTotal INTEGER, xowner VARCHAR(255), xproject VARCHAR(64), xtaskTotal INTEGER, PRIMARY KEY (xid), CONSTRAINT TEW_TASKGROUP_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKGROUP_RELE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xorder INTEGER, xproject VARCHAR(64), xtaskGroupId VARCHAR(64), xtaskId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT TEW_TASKGROUP_RELE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKLIST (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorPerson VARCHAR(255), xdeleted BOOLEAN, xmemo VARCHAR(255), xname VARCHAR(96), xorder INTEGER, xowner VARCHAR(255), xproject VARCHAR(64), xtaskGroup VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT TEW_TASKLIST_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKLIST_RELE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xorder INTEGER, xproject VARCHAR(64), xtaskGroupId VARCHAR(64), xtaskId VARCHAR(64), xtaskListId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT TEW_TASKLIST_RELE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKRELEVANCE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbundle VARCHAR(64), xcreatorPerson VARCHAR(255), xname VARCHAR(64), xproject VARCHAR(64), xtask VARCHAR(64), xtype VARCHAR(16), PRIMARY KEY (xid), CONSTRAINT TEW_TASKRELEVANCE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKTAG_RELE (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xorder INTEGER, xowner VARCHAR(255), xproject VARCHAR(64), xtagId VARCHAR(64), xtaskId VARCHAR(64), PRIMARY KEY (xid), CONSTRAINT TEW_TASKTAG_RELE_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKVIEW (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xcreatorPerson VARCHAR(255), xname VARCHAR(16), xisExcutor BOOLEAN, xmemo VARCHAR(255), xorder INTEGER, xorderField VARCHAR(16), xorderType VARCHAR(16), xowner VARCHAR(255), xproject VARCHAR(64), xworkCompleted INTEGER, xworkOverTime INTEGER, PRIMARY KEY (xid), CONSTRAINT TEW_TASKVIEW_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE TEW_TASKVIEW_choosePriority (TASKVIEW_XID VARCHAR(64), xchoosePriority VARCHAR(32), xorderColumn INTEGER); +CREATE TABLE TEW_TASKVIEW_chooseWorkTag (TASKVIEW_XID VARCHAR(64), xchooseWorkTag VARCHAR(32), xorderColumn INTEGER); +CREATE TABLE TEW_TASK_manageablePersonList (TASK_XID VARCHAR(64), xmanageablePersonList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE TEW_TASK_participantList (TASK_XID VARCHAR(64), xparticipantList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE VAL_META (xid VARCHAR(64) NOT NULL, xcreateTime TIMESTAMP, xscratchBoolean BOOLEAN, xscratchDate TIMESTAMP, xscratchInteger TIMESTAMP, xscratchString VARCHAR(255), xsequence VARCHAR(128), xupdateTime TIMESTAMP, xdistributeFactor INTEGER, xbooleanValue BOOLEAN, xdateTimeValue TIMESTAMP, xdateValue DATE, xdoubleValue DOUBLE, xintegerValue INTEGER, xlongValue BIGINT, xstringLobValue CLOB, xstringValue VARCHAR(255), xtimeValue TIME, PRIMARY KEY (xid), CONSTRAINT VAL_META_DUC UNIQUE (xid, xcreateTime, xupdateTime, xsequence)); +CREATE TABLE VAL_META_listValueList (META_XID VARCHAR(64), xlistValueList VARCHAR(255), xorderColumn INTEGER); +CREATE TABLE VAL_META_mapValueMap (META_XID VARCHAR(64), xkey VARCHAR(255), xmapValueMap VARCHAR(255)); +CREATE INDEX ARA_DISTRICT_center ON ARA_DISTRICT (xcenter); +CREATE INDEX ARA_DISTRICT_city ON ARA_DISTRICT (xcity); +CREATE INDEX ARA_DISTRICT_cityCode ON ARA_DISTRICT (xcityCode); +CREATE INDEX ARA_DISTRICT_district ON ARA_DISTRICT (xdistrict); +CREATE INDEX ARA_DISTRICT_level ON ARA_DISTRICT (xlevel); +CREATE INDEX ARA_DISTRICT_name ON ARA_DISTRICT (xname); +CREATE INDEX ARA_DISTRICT_province ON ARA_DISTRICT (xprovince); +CREATE INDEX ARA_DISTRICT_sha ON ARA_DISTRICT (xsha); +CREATE INDEX ARA_DISTRICT_zipCode ON ARA_DISTRICT (xzipCode); +CREATE INDEX ATDC_ATTENDANCE_ADMIN_adminName ON ATDC_ATTENDANCE_ADMIN (xadminName); +CREATE INDEX ATDC_ATTENDANCE_ADMIN_unitOu ON ATDC_ATTENDANCE_ADMIN (xunitOu); +CREATE INDEX ATDC_ATTENDANCE_IMPORTFILE_lastUpdateTime ON ATDC_ATTENDANCE_IMPORTFILE (xlastUpdateTime); +CREATE INDEX BBS_CONFIGSETTING_configCode ON BBS_CONFIGSETTING (xconfigCode); +CREATE INDEX BBS_CONFIGSETTING_description ON BBS_CONFIGSETTING (xdescription); +CREATE INDEX BBS_FORUMINFO_forumStatus ON BBS_FORUMINFO (xforumStatus); +CREATE INDEX BBS_FORUMINFO_forumVisible ON BBS_FORUMINFO (xforumVisible); +CREATE INDEX BBS_FORUMINFO_replyMessageNotify ON BBS_FORUMINFO (xreplyMessageNotify); +CREATE INDEX BBS_FORUMINFO_subjectMessageNotify ON BBS_FORUMINFO (xsubjectMessageNotify); +CREATE INDEX BBS_FORUMINFO_subjectPublishAble ON BBS_FORUMINFO (xsubjectPublishAble); +CREATE INDEX BBS_FORUMINFO_forumManagerList_element ON BBS_FORUMINFO_forumManagerList (xforumManagerList); +CREATE INDEX BBS_FORUMINFO_forumManagerList_join ON BBS_FORUMINFO_forumManagerList (BBSFORUMINFO_XID); +CREATE INDEX BBS_FORUMINFO_publishPermissionList_element ON BBS_FORUMINFO_publishPermissionList (xpublishPermissionList); +CREATE INDEX BBS_FORUMINFO_publishPermissionList_join ON BBS_FORUMINFO_publishPermissionList (BBSFORUMINFO_XID); +CREATE INDEX BBS_FORUMINFO_replyPermissionList_element ON BBS_FORUMINFO_replyPermissionList (xreplyPermissionList); +CREATE INDEX BBS_FORUMINFO_replyPermissionList_join ON BBS_FORUMINFO_replyPermissionList (BBSFORUMINFO_XID); +CREATE INDEX BBS_FORUMINFO_visiblePermissionList_element ON BBS_FORUMINFO_visiblePermissionList (xvisiblePermissionList); +CREATE INDEX BBS_FORUMINFO_visiblePermissionList_join ON BBS_FORUMINFO_visiblePermissionList (BBSFORUMINFO_XID); +CREATE INDEX BBS_OPERATIONRECORD_forumId ON BBS_OPERATIONRECORD (xforumId); +CREATE INDEX BBS_OPERATIONRECORD_hostname ON BBS_OPERATIONRECORD (xhostname); +CREATE INDEX BBS_OPERATIONRECORD_mainSectionId ON BBS_OPERATIONRECORD (xmainSectionId); +CREATE INDEX BBS_OPERATIONRECORD_mainSectionName ON BBS_OPERATIONRECORD (xmainSectionName); +CREATE INDEX BBS_OPERATIONRECORD_objectId ON BBS_OPERATIONRECORD (xobjectId); +CREATE INDEX BBS_OPERATIONRECORD_objectName ON BBS_OPERATIONRECORD (xobjectName); +CREATE INDEX BBS_OPERATIONRECORD_objectType ON BBS_OPERATIONRECORD (xobjectType); +CREATE INDEX BBS_OPERATIONRECORD_operatorName ON BBS_OPERATIONRECORD (xoperatorName); +CREATE INDEX BBS_OPERATIONRECORD_optType ON BBS_OPERATIONRECORD (xoptType); +CREATE INDEX BBS_OPERATIONRECORD_sectionId ON BBS_OPERATIONRECORD (xsectionId); +CREATE INDEX BBS_OPERATIONRECORD_sectionName ON BBS_OPERATIONRECORD (xsectionName); +CREATE INDEX BBS_OPERATIONRECORD_subjectId ON BBS_OPERATIONRECORD (xsubjectId); +CREATE INDEX BBS_OPERATIONRECORD_title ON BBS_OPERATIONRECORD (xtitle); +CREATE INDEX BBS_PERMISSIONINFO_forumId ON BBS_PERMISSIONINFO (xforumId); +CREATE INDEX BBS_PERMISSIONINFO_mainSectionId ON BBS_PERMISSIONINFO (xmainSectionId); +CREATE INDEX BBS_PERMISSIONINFO_permissionCode ON BBS_PERMISSIONINFO (xpermissionCode); +CREATE INDEX BBS_PERMISSIONINFO_permissionFunction ON BBS_PERMISSIONINFO (xpermissionFunction); +CREATE INDEX BBS_PERMISSIONINFO_permissionName ON BBS_PERMISSIONINFO (xpermissionName); +CREATE INDEX BBS_PERMISSIONINFO_permissionType ON BBS_PERMISSIONINFO (xpermissionType); +CREATE INDEX BBS_PERMISSIONINFO_sectionId ON BBS_PERMISSIONINFO (xsectionId); +CREATE INDEX BBS_PERMISSIONROLE_forumId ON BBS_PERMISSIONROLE (xforumId); +CREATE INDEX BBS_PERMISSIONROLE_mainSectionId ON BBS_PERMISSIONROLE (xmainSectionId); +CREATE INDEX BBS_PERMISSIONROLE_permissionCode ON BBS_PERMISSIONROLE (xpermissionCode); +CREATE INDEX BBS_PERMISSIONROLE_permissionType ON BBS_PERMISSIONROLE (xpermissionType); +CREATE INDEX BBS_PERMISSIONROLE_roleCode ON BBS_PERMISSIONROLE (xroleCode); +CREATE INDEX BBS_PERMISSIONROLE_roleId ON BBS_PERMISSIONROLE (xroleId); +CREATE INDEX BBS_PERMISSIONROLE_sectionId ON BBS_PERMISSIONROLE (xsectionId); +CREATE INDEX BBS_REPLYINFO_auditorName ON BBS_REPLYINFO (xauditorName); +CREATE INDEX BBS_REPLYINFO_creatorName ON BBS_REPLYINFO (xcreatorName); +CREATE INDEX BBS_REPLYINFO_forumId ON BBS_REPLYINFO (xforumId); +CREATE INDEX BBS_REPLYINFO_hostIp ON BBS_REPLYINFO (xhostIp); +CREATE INDEX BBS_REPLYINFO_machineName ON BBS_REPLYINFO (xmachineName); +CREATE INDEX BBS_REPLYINFO_mainSectionId ON BBS_REPLYINFO (xmainSectionId); +CREATE INDEX BBS_REPLYINFO_parentId ON BBS_REPLYINFO (xparentId); +CREATE INDEX BBS_REPLYINFO_picId ON BBS_REPLYINFO (xpicId); +CREATE INDEX BBS_REPLYINFO_replyAuditStatus ON BBS_REPLYINFO (xreplyAuditStatus); +CREATE INDEX BBS_REPLYINFO_sectionId ON BBS_REPLYINFO (xsectionId); +CREATE INDEX BBS_REPLYINFO_subjectId ON BBS_REPLYINFO (xsubjectId); +CREATE INDEX BBS_REPLYINFO_systemType ON BBS_REPLYINFO (xsystemType); +CREATE INDEX BBS_REPLYINFO_title ON BBS_REPLYINFO (xtitle); +CREATE INDEX BBS_ROLEINFO_creatorName ON BBS_ROLEINFO (xcreatorName); +CREATE INDEX BBS_ROLEINFO_forumId ON BBS_ROLEINFO (xforumId); +CREATE INDEX BBS_ROLEINFO_mainSectionId ON BBS_ROLEINFO (xmainSectionId); +CREATE INDEX BBS_ROLEINFO_roleCode ON BBS_ROLEINFO (xroleCode); +CREATE INDEX BBS_ROLEINFO_roleType ON BBS_ROLEINFO (xroleType); +CREATE INDEX BBS_ROLEINFO_sectionId ON BBS_ROLEINFO (xsectionId); +CREATE INDEX BBS_SECTIONINFO_forumId ON BBS_SECTIONINFO (xforumId); +CREATE INDEX BBS_SECTIONINFO_mainSectionId ON BBS_SECTIONINFO (xmainSectionId); +CREATE INDEX BBS_SECTIONINFO_replyMessageNotify ON BBS_SECTIONINFO (xreplyMessageNotify); +CREATE INDEX BBS_SECTIONINFO_sectionLevel ON BBS_SECTIONINFO (xsectionLevel); +CREATE INDEX BBS_SECTIONINFO_sectionName ON BBS_SECTIONINFO (xsectionName); +CREATE INDEX BBS_SECTIONINFO_sectionStatus ON BBS_SECTIONINFO (xsectionStatus); +CREATE INDEX BBS_SECTIONINFO_sectionVisible ON BBS_SECTIONINFO (xsectionVisible); +CREATE INDEX BBS_SECTIONINFO_subjectMessageNotify ON BBS_SECTIONINFO (xsubjectMessageNotify); +CREATE INDEX BBS_SECTIONINFO_moderatorNames_element ON BBS_SECTIONINFO_moderatorNames (xmoderatorNames); +CREATE INDEX BBS_SECTIONINFO_moderatorNames_join ON BBS_SECTIONINFO_moderatorNames (BBSSECTIONINFO_XID); +CREATE INDEX BBS_SECTIONINFO_publishPermissionList_element ON BBS_SECTIONINFO_publishPermissionList (xpublishPermissionList); +CREATE INDEX BBS_SECTIONINFO_publishPermissionList_join ON BBS_SECTIONINFO_publishPermissionList (BBSSECTIONINFO_XID); +CREATE INDEX BBS_SECTIONINFO_replyPermissionList_element ON BBS_SECTIONINFO_replyPermissionList (xreplyPermissionList); +CREATE INDEX BBS_SECTIONINFO_replyPermissionList_join ON BBS_SECTIONINFO_replyPermissionList (BBSSECTIONINFO_XID); +CREATE INDEX BBS_SECTIONINFO_visiblePermissionList_element ON BBS_SECTIONINFO_visiblePermissionList (xvisiblePermissionList); +CREATE INDEX BBS_SECTIONINFO_visiblePermissionList_join ON BBS_SECTIONINFO_visiblePermissionList (BBSSECTIONINFO_XID); +CREATE INDEX BBS_SUBJECTATTACHMENT_creatorUid ON BBS_SUBJECTATTACHMENT (xcreatorUid); +CREATE INDEX BBS_SUBJECTATTACHMENT_deepPath ON BBS_SUBJECTATTACHMENT (xdeepPath); +CREATE INDEX BBS_SUBJECTATTACHMENT_forumId ON BBS_SUBJECTATTACHMENT (xforumId); +CREATE INDEX BBS_SUBJECTATTACHMENT_lastUpdateTime ON BBS_SUBJECTATTACHMENT (xlastUpdateTime); +CREATE INDEX BBS_SUBJECTATTACHMENT_mainSectionId ON BBS_SUBJECTATTACHMENT (xmainSectionId); +CREATE INDEX BBS_SUBJECTATTACHMENT_sectionId ON BBS_SUBJECTATTACHMENT (xsectionId); +CREATE INDEX BBS_SUBJECTATTACHMENT_site ON BBS_SUBJECTATTACHMENT (xsite); +CREATE INDEX BBS_SUBJECTATTACHMENT_storage ON BBS_SUBJECTATTACHMENT (xstorage); +CREATE INDEX BBS_SUBJECTATTACHMENT_subjectId ON BBS_SUBJECTATTACHMENT (xsubjectId); +CREATE INDEX BBS_SUBJECTINFO_forumId ON BBS_SUBJECTINFO (xforumId); +CREATE INDEX BBS_SUBJECTINFO_mainSectionId ON BBS_SUBJECTINFO (xmainSectionId); +CREATE INDEX BBS_SUBJECTINFO_sectionId ON BBS_SUBJECTINFO (xsectionId); +CREATE INDEX BBS_SUBJECTINFO_type ON BBS_SUBJECTINFO (xtype); +CREATE INDEX BBS_SUBJECTINFO_typeCategory ON BBS_SUBJECTINFO (xtypeCategory); +CREATE INDEX BBS_SUBJECTINFO_attachmentList_element ON BBS_SUBJECTINFO_attachmentList (xattachmentList); +CREATE INDEX BBS_SUBJECTINFO_attachmentList_join ON BBS_SUBJECTINFO_attachmentList (BBSSUBJECTINFO_XID); +CREATE INDEX BBS_SUBJECT_VOTERESULT_forumId ON BBS_SUBJECT_VOTERESULT (xforumId); +CREATE INDEX BBS_SUBJECT_VOTERESULT_mainSectionId ON BBS_SUBJECT_VOTERESULT (xmainSectionId); +CREATE INDEX BBS_SUBJECT_VOTERESULT_sectionId ON BBS_SUBJECT_VOTERESULT (xsectionId); +CREATE INDEX BBS_USERINFO_userName ON BBS_USERINFO (xuserName); +CREATE INDEX BBS_USERROLE_forumId ON BBS_USERROLE (xforumId); +CREATE INDEX BBS_USERROLE_mainSectionId ON BBS_USERROLE (xmainSectionId); +CREATE INDEX BBS_USERROLE_objectType ON BBS_USERROLE (xobjectType); +CREATE INDEX BBS_USERROLE_roleCode ON BBS_USERROLE (xroleCode); +CREATE INDEX BBS_USERROLE_roleId ON BBS_USERROLE (xroleId); +CREATE INDEX BBS_USERROLE_sectionId ON BBS_USERROLE (xsectionId); +CREATE INDEX BBS_USERROLE_topUnitName ON BBS_USERROLE (xtopUnitName); +CREATE INDEX BBS_USERROLE_uniqueId ON BBS_USERROLE (xuniqueId); +CREATE INDEX BBS_USERROLE_unitName ON BBS_USERROLE (xunitName); +CREATE INDEX BBS_VOTEOPTION_forumId ON BBS_VOTEOPTION (xforumId); +CREATE INDEX BBS_VOTEOPTION_mainSectionId ON BBS_VOTEOPTION (xmainSectionId); +CREATE INDEX BBS_VOTEOPTION_sectionId ON BBS_VOTEOPTION (xsectionId); +CREATE INDEX BBS_VOTEOPTION_subjectId ON BBS_VOTEOPTION (xsubjectId); +CREATE INDEX BBS_VOTEOPTIONGROUP_forumId ON BBS_VOTEOPTIONGROUP (xforumId); +CREATE INDEX BBS_VOTEOPTIONGROUP_mainSectionId ON BBS_VOTEOPTIONGROUP (xmainSectionId); +CREATE INDEX BBS_VOTEOPTIONGROUP_sectionId ON BBS_VOTEOPTIONGROUP (xsectionId); +CREATE INDEX BBS_VOTEOPTIONGROUP_subjectId ON BBS_VOTEOPTIONGROUP (xsubjectId); +CREATE INDEX BBS_VOTERECORD_forumId ON BBS_VOTERECORD (xforumId); +CREATE INDEX BBS_VOTERECORD_mainSectionId ON BBS_VOTERECORD (xmainSectionId); +CREATE INDEX BBS_VOTERECORD_sectionId ON BBS_VOTERECORD (xsectionId); +CREATE INDEX BBS_VOTERECORD_subjectId ON BBS_VOTERECORD (xsubjectId); +CREATE INDEX CAL_CALENDAR_createor ON CAL_CALENDAR (xcreateor); +CREATE INDEX CAL_CALENDAR_isPublic ON CAL_CALENDAR (xisPublic); +CREATE INDEX CAL_CALENDAR_name ON CAL_CALENDAR (xname); +CREATE INDEX CAL_CALENDAR_status ON CAL_CALENDAR (xstatus); +CREATE INDEX CAL_CALENDAR_target ON CAL_CALENDAR (xtarget); +CREATE INDEX CAL_CALENDAR_type ON CAL_CALENDAR (xtype); +CREATE INDEX CAL_CALENDAR_followers_element ON CAL_CALENDAR_followers (xfollowers); +CREATE INDEX CAL_CALENDAR_followers_join ON CAL_CALENDAR_followers (CALENDAR_XID); +CREATE INDEX CAL_CALENDAR_manageablePersonList_element ON CAL_CALENDAR_manageablePersonList (xmanageablePersonList); +CREATE INDEX CAL_CALENDAR_manageablePersonList_join ON CAL_CALENDAR_manageablePersonList (CALENDAR_XID); +CREATE INDEX CAL_CALENDAR_publishableGroupList_element ON CAL_CALENDAR_publishableGroupList (xpublishableGroupList); +CREATE INDEX CAL_CALENDAR_publishableGroupList_join ON CAL_CALENDAR_publishableGroupList (CALENDAR_XID); +CREATE INDEX CAL_CALENDAR_publishablePersonList_element ON CAL_CALENDAR_publishablePersonList (xpublishablePersonList); +CREATE INDEX CAL_CALENDAR_publishablePersonList_join ON CAL_CALENDAR_publishablePersonList (CALENDAR_XID); +CREATE INDEX CAL_CALENDAR_publishableUnitList_element ON CAL_CALENDAR_publishableUnitList (xpublishableUnitList); +CREATE INDEX CAL_CALENDAR_publishableUnitList_join ON CAL_CALENDAR_publishableUnitList (CALENDAR_XID); +CREATE INDEX CAL_CALENDAR_viewableGroupList_element ON CAL_CALENDAR_viewableGroupList (xviewableGroupList); +CREATE INDEX CAL_CALENDAR_viewableGroupList_join ON CAL_CALENDAR_viewableGroupList (CALENDAR_XID); +CREATE INDEX CAL_CALENDAR_viewablePersonList_element ON CAL_CALENDAR_viewablePersonList (xviewablePersonList); +CREATE INDEX CAL_CALENDAR_viewablePersonList_join ON CAL_CALENDAR_viewablePersonList (CALENDAR_XID); +CREATE INDEX CAL_CALENDAR_viewableUnitList_element ON CAL_CALENDAR_viewableUnitList (xviewableUnitList); +CREATE INDEX CAL_CALENDAR_viewableUnitList_join ON CAL_CALENDAR_viewableUnitList (CALENDAR_XID); +CREATE INDEX CAL_EVENT_bundle ON CAL_EVENT (xbundle); +CREATE INDEX CAL_EVENT_calendarId ON CAL_EVENT (xcalendarId); +CREATE INDEX CAL_EVENT_createPerson ON CAL_EVENT (xcreatePerson); +CREATE INDEX CAL_EVENT_daysOfDuration ON CAL_EVENT (xdaysOfDuration); +CREATE INDEX CAL_EVENT_endTime ON CAL_EVENT (xendTime); +CREATE INDEX CAL_EVENT_endTimeStr ON CAL_EVENT (xendTimeStr); +CREATE INDEX CAL_EVENT_eventType ON CAL_EVENT (xeventType); +CREATE INDEX CAL_EVENT_isAllDayEvent ON CAL_EVENT (xisAllDayEvent); +CREATE INDEX CAL_EVENT_isPublic ON CAL_EVENT (xisPublic); +CREATE INDEX CAL_EVENT_repeatMasterId ON CAL_EVENT (xrepeatMasterId); +CREATE INDEX CAL_EVENT_source ON CAL_EVENT (xsource); +CREATE INDEX CAL_EVENT_startTime ON CAL_EVENT (xstartTime); +CREATE INDEX CAL_EVENT_startTimeStr ON CAL_EVENT (xstartTimeStr); +CREATE INDEX CAL_EVENT_targetType ON CAL_EVENT (xtargetType); +CREATE INDEX CAL_EVENT_updatePerson ON CAL_EVENT (xupdatePerson); +CREATE INDEX CAL_EVENT_manageablePersonList_element ON CAL_EVENT_manageablePersonList (xmanageablePersonList); +CREATE INDEX CAL_EVENT_manageablePersonList_join ON CAL_EVENT_manageablePersonList (CALENDAR_EVENT_XID); +CREATE INDEX CAL_EVENT_participants_element ON CAL_EVENT_participants (xparticipants); +CREATE INDEX CAL_EVENT_participants_join ON CAL_EVENT_participants (CALENDAR_EVENT_XID); +CREATE INDEX CAL_EVENT_REPM_calendarId ON CAL_EVENT_REPM (xcalendarId); +CREATE INDEX CAL_EVENT_REPM_createPerson ON CAL_EVENT_REPM (xcreatePerson); +CREATE INDEX CAL_EVENT_REPM_daysOfDuration ON CAL_EVENT_REPM (xdaysOfDuration); +CREATE INDEX CAL_EVENT_REPM_endTime ON CAL_EVENT_REPM (xendTime); +CREATE INDEX CAL_EVENT_REPM_eventType ON CAL_EVENT_REPM (xeventType); +CREATE INDEX CAL_EVENT_REPM_isAllDayEvent ON CAL_EVENT_REPM (xisAllDayEvent); +CREATE INDEX CAL_EVENT_REPM_isPublic ON CAL_EVENT_REPM (xisPublic); +CREATE INDEX CAL_EVENT_REPM_repeatStatus ON CAL_EVENT_REPM (xrepeatStatus); +CREATE INDEX CAL_EVENT_REPM_source ON CAL_EVENT_REPM (xsource); +CREATE INDEX CAL_EVENT_REPM_startTime ON CAL_EVENT_REPM (xstartTime); +CREATE INDEX CAL_EVENT_REPM_targetType ON CAL_EVENT_REPM (xtargetType); +CREATE INDEX CAL_EVENT_REPM_updatePerson ON CAL_EVENT_REPM (xupdatePerson); +CREATE INDEX CAL_EVENT_REPM_createdMonthList_element ON CAL_EVENT_REPM_createdMonthList (xcreatedMonthList); +CREATE INDEX CAL_EVENT_REPM_createdMonthList_join ON CAL_EVENT_REPM_createdMonthList (CALENDAR_EVENTREPEATMASTER_XID); +CREATE INDEX CAL_EVENT_REPM_manageablePersonList_element ON CAL_EVENT_REPM_manageablePersonList (xmanageablePersonList); +CREATE INDEX CAL_EVENT_REPM_manageablePersonList_join ON CAL_EVENT_REPM_manageablePersonList (CALENDAR_EVENTREPEATMASTER_XID); +CREATE INDEX CAL_EVENT_REPM_participants_element ON CAL_EVENT_REPM_participants (xparticipants); +CREATE INDEX CAL_EVENT_REPM_participants_join ON CAL_EVENT_REPM_participants (CALENDAR_EVENTREPEATMASTER_XID); +CREATE INDEX CAL_EVENT_REPM_viewableGroupList_element ON CAL_EVENT_REPM_viewableGroupList (xviewableGroupList); +CREATE INDEX CAL_EVENT_REPM_viewableGroupList_join ON CAL_EVENT_REPM_viewableGroupList (CALENDAR_EVENTREPEATMASTER_XID); +CREATE INDEX CAL_EVENT_REPM_viewablePersonList_element ON CAL_EVENT_REPM_viewablePersonList (xviewablePersonList); +CREATE INDEX CAL_EVENT_REPM_viewablePersonList_join ON CAL_EVENT_REPM_viewablePersonList (CALENDAR_EVENTREPEATMASTER_XID); +CREATE INDEX CAL_EVENT_REPM_viewableUnitList_element ON CAL_EVENT_REPM_viewableUnitList (xviewableUnitList); +CREATE INDEX CAL_EVENT_REPM_viewableUnitList_join ON CAL_EVENT_REPM_viewableUnitList (CALENDAR_EVENTREPEATMASTER_XID); +CREATE INDEX CAL_EVENT_viewableGroupList_element ON CAL_EVENT_viewableGroupList (xviewableGroupList); +CREATE INDEX CAL_EVENT_viewableGroupList_join ON CAL_EVENT_viewableGroupList (CALENDAR_EVENT_XID); +CREATE INDEX CAL_EVENT_viewablePersonList_element ON CAL_EVENT_viewablePersonList (xviewablePersonList); +CREATE INDEX CAL_EVENT_viewablePersonList_join ON CAL_EVENT_viewablePersonList (CALENDAR_EVENT_XID); +CREATE INDEX CAL_EVENT_viewableUnitList_element ON CAL_EVENT_viewableUnitList (xviewableUnitList); +CREATE INDEX CAL_EVENT_viewableUnitList_join ON CAL_EVENT_viewableUnitList (CALENDAR_EVENT_XID); +CREATE INDEX CAL_SETTING_configCode ON CAL_SETTING (xconfigCode); +CREATE INDEX CMS_APPDICTITEM_appId ON CMS_APPDICTITEM (xappId); +CREATE INDEX CMS_APPDICTITEM_booleanValue ON CMS_APPDICTITEM (xbooleanValue); +CREATE INDEX CMS_APPDICTITEM_bundle ON CMS_APPDICTITEM (xbundle); +CREATE INDEX CMS_APPDICTITEM_dateTimeValue ON CMS_APPDICTITEM (xdateTimeValue); +CREATE INDEX CMS_APPDICTITEM_dateValue ON CMS_APPDICTITEM (xdateValue); +CREATE INDEX CMS_APPDICTITEM_itemCategory ON CMS_APPDICTITEM (xitemCategory); +CREATE INDEX CMS_APPDICTITEM_itemPrimitiveType ON CMS_APPDICTITEM (xitemPrimitiveType); +CREATE INDEX CMS_APPDICTITEM_itemStringValueType ON CMS_APPDICTITEM (xitemStringValueType); +CREATE INDEX CMS_APPDICTITEM_itemType ON CMS_APPDICTITEM (xitemType); +CREATE INDEX CMS_APPDICTITEM_numberValue ON CMS_APPDICTITEM (xnumberValue); +CREATE INDEX CMS_APPDICTITEM_path0 ON CMS_APPDICTITEM (xpath0); +CREATE INDEX CMS_APPDICTITEM_path0Location ON CMS_APPDICTITEM (xpath0Location); +CREATE INDEX CMS_APPDICTITEM_path1 ON CMS_APPDICTITEM (xpath1); +CREATE INDEX CMS_APPDICTITEM_path1Location ON CMS_APPDICTITEM (xpath1Location); +CREATE INDEX CMS_APPDICTITEM_path2 ON CMS_APPDICTITEM (xpath2); +CREATE INDEX CMS_APPDICTITEM_path2Location ON CMS_APPDICTITEM (xpath2Location); +CREATE INDEX CMS_APPDICTITEM_path3 ON CMS_APPDICTITEM (xpath3); +CREATE INDEX CMS_APPDICTITEM_path3Location ON CMS_APPDICTITEM (xpath3Location); +CREATE INDEX CMS_APPDICTITEM_path4 ON CMS_APPDICTITEM (xpath4); +CREATE INDEX CMS_APPDICTITEM_path4Location ON CMS_APPDICTITEM (xpath4Location); +CREATE INDEX CMS_APPDICTITEM_path5 ON CMS_APPDICTITEM (xpath5); +CREATE INDEX CMS_APPDICTITEM_path5Location ON CMS_APPDICTITEM (xpath5Location); +CREATE INDEX CMS_APPDICTITEM_path6 ON CMS_APPDICTITEM (xpath6); +CREATE INDEX CMS_APPDICTITEM_path6Location ON CMS_APPDICTITEM (xpath6Location); +CREATE INDEX CMS_APPDICTITEM_path7 ON CMS_APPDICTITEM (xpath7); +CREATE INDEX CMS_APPDICTITEM_path7Location ON CMS_APPDICTITEM (xpath7Location); +CREATE INDEX CMS_APPDICTITEM_stringShortValue ON CMS_APPDICTITEM (xstringShortValue); +CREATE INDEX CMS_APPDICTITEM_timeValue ON CMS_APPDICTITEM (xtimeValue); +CREATE INDEX CMS_APPINFO_allPeoplePublish ON CMS_APPINFO (xallPeoplePublish); +CREATE INDEX CMS_APPINFO_allPeopleView ON CMS_APPINFO (xallPeopleView); +CREATE INDEX CMS_APPINFO_anonymousAble ON CMS_APPINFO (xanonymousAble); +CREATE INDEX CMS_APPINFO_appAlias ON CMS_APPINFO (xappAlias); +CREATE INDEX CMS_APPINFO_appName ON CMS_APPINFO (xappName); +CREATE INDEX CMS_APPINFO_documentType ON CMS_APPINFO (xdocumentType); +CREATE INDEX CMS_APPINFO_sendNotify ON CMS_APPINFO (xsendNotify); +CREATE INDEX CMS_APPINFO_categoryList_element ON CMS_APPINFO_categoryList (xcategoryList); +CREATE INDEX CMS_APPINFO_categoryList_join ON CMS_APPINFO_categoryList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_manageableGroupList_element ON CMS_APPINFO_manageableGroupList (xmanageableGroupList); +CREATE INDEX CMS_APPINFO_manageableGroupList_join ON CMS_APPINFO_manageableGroupList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_manageablePersonList_element ON CMS_APPINFO_manageablePersonList (xmanageablePersonList); +CREATE INDEX CMS_APPINFO_manageablePersonList_join ON CMS_APPINFO_manageablePersonList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_manageableUnitList_element ON CMS_APPINFO_manageableUnitList (xmanageableUnitList); +CREATE INDEX CMS_APPINFO_manageableUnitList_join ON CMS_APPINFO_manageableUnitList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_publishableGroupList_element ON CMS_APPINFO_publishableGroupList (xpublishableGroupList); +CREATE INDEX CMS_APPINFO_publishableGroupList_join ON CMS_APPINFO_publishableGroupList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_publishablePersonList_element ON CMS_APPINFO_publishablePersonList (xpublishablePersonList); +CREATE INDEX CMS_APPINFO_publishablePersonList_join ON CMS_APPINFO_publishablePersonList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_publishableUnitList_element ON CMS_APPINFO_publishableUnitList (xpublishableUnitList); +CREATE INDEX CMS_APPINFO_publishableUnitList_join ON CMS_APPINFO_publishableUnitList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_viewableGroupList_element ON CMS_APPINFO_viewableGroupList (xviewableGroupList); +CREATE INDEX CMS_APPINFO_viewableGroupList_join ON CMS_APPINFO_viewableGroupList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_viewablePersonList_element ON CMS_APPINFO_viewablePersonList (xviewablePersonList); +CREATE INDEX CMS_APPINFO_viewablePersonList_join ON CMS_APPINFO_viewablePersonList (APPINFO_XID); +CREATE INDEX CMS_APPINFO_viewableUnitList_element ON CMS_APPINFO_viewableUnitList (xviewableUnitList); +CREATE INDEX CMS_APPINFO_viewableUnitList_join ON CMS_APPINFO_viewableUnitList (APPINFO_XID); +CREATE INDEX CMS_APPNDICT_alias ON CMS_APPNDICT (xalias); +CREATE INDEX CMS_APPNDICT_appId ON CMS_APPNDICT (xappId); +CREATE INDEX CMS_APPNDICT_creatorUid ON CMS_APPNDICT (xcreatorUid); +CREATE INDEX CMS_APPNDICT_description ON CMS_APPNDICT (xdescription); +CREATE INDEX CMS_APPNDICT_name ON CMS_APPNDICT (xname); +CREATE INDEX CMS_CATEGORYINFO_allPeoplePublish ON CMS_CATEGORYINFO (xallPeoplePublish); +CREATE INDEX CMS_CATEGORYINFO_allPeopleView ON CMS_CATEGORYINFO (xallPeopleView); +CREATE INDEX CMS_CATEGORYINFO_anonymousAble ON CMS_CATEGORYINFO (xanonymousAble); +CREATE INDEX CMS_CATEGORYINFO_appId ON CMS_CATEGORYINFO (xappId); +CREATE INDEX CMS_CATEGORYINFO_categoryAlias ON CMS_CATEGORYINFO (xcategoryAlias); +CREATE INDEX CMS_CATEGORYINFO_categoryName ON CMS_CATEGORYINFO (xcategoryName); +CREATE INDEX CMS_CATEGORYINFO_categorySeq ON CMS_CATEGORYINFO (xcategorySeq); +CREATE INDEX CMS_CATEGORYINFO_creatorIdentity ON CMS_CATEGORYINFO (xcreatorIdentity); +CREATE INDEX CMS_CATEGORYINFO_creatorPerson ON CMS_CATEGORYINFO (xcreatorPerson); +CREATE INDEX CMS_CATEGORYINFO_creatorTopUnitName ON CMS_CATEGORYINFO (xcreatorTopUnitName); +CREATE INDEX CMS_CATEGORYINFO_creatorUnitName ON CMS_CATEGORYINFO (xcreatorUnitName); +CREATE INDEX CMS_CATEGORYINFO_documentType ON CMS_CATEGORYINFO (xdocumentType); +CREATE INDEX CMS_CATEGORYINFO_parentId ON CMS_CATEGORYINFO (xparentId); +CREATE INDEX CMS_CATEGORYINFO_sendNotify ON CMS_CATEGORYINFO (xsendNotify); +CREATE INDEX CMS_CATEGORYINFO_manageableGroupList_element ON CMS_CATEGORYINFO_manageableGroupList (xmanageableGroupList); +CREATE INDEX CMS_CATEGORYINFO_manageableGroupList_join ON CMS_CATEGORYINFO_manageableGroupList (CATEGORYINFO_XID); +CREATE INDEX CMS_CATEGORYINFO_manageablePersonList_element ON CMS_CATEGORYINFO_manageablePersonList (xmanageablePersonList); +CREATE INDEX CMS_CATEGORYINFO_manageablePersonList_join ON CMS_CATEGORYINFO_manageablePersonList (CATEGORYINFO_XID); +CREATE INDEX CMS_CATEGORYINFO_manageableUnitList_element ON CMS_CATEGORYINFO_manageableUnitList (xmanageableUnitList); +CREATE INDEX CMS_CATEGORYINFO_manageableUnitList_join ON CMS_CATEGORYINFO_manageableUnitList (CATEGORYINFO_XID); +CREATE INDEX CMS_CATEGORYINFO_publishableGroupList_element ON CMS_CATEGORYINFO_publishableGroupList (xpublishableGroupList); +CREATE INDEX CMS_CATEGORYINFO_publishableGroupList_join ON CMS_CATEGORYINFO_publishableGroupList (CATEGORYINFO_XID); +CREATE INDEX CMS_CATEGORYINFO_publishablePersonList_element ON CMS_CATEGORYINFO_publishablePersonList (xpublishablePersonList); +CREATE INDEX CMS_CATEGORYINFO_publishablePersonList_join ON CMS_CATEGORYINFO_publishablePersonList (CATEGORYINFO_XID); +CREATE INDEX CMS_CATEGORYINFO_publishableUnitList_element ON CMS_CATEGORYINFO_publishableUnitList (xpublishableUnitList); +CREATE INDEX CMS_CATEGORYINFO_publishableUnitList_join ON CMS_CATEGORYINFO_publishableUnitList (CATEGORYINFO_XID); +CREATE INDEX CMS_CATEGORYINFO_viewableGroupList_element ON CMS_CATEGORYINFO_viewableGroupList (xviewableGroupList); +CREATE INDEX CMS_CATEGORYINFO_viewableGroupList_join ON CMS_CATEGORYINFO_viewableGroupList (CATEGORYINFO_XID); +CREATE INDEX CMS_CATEGORYINFO_viewablePersonList_element ON CMS_CATEGORYINFO_viewablePersonList (xviewablePersonList); +CREATE INDEX CMS_CATEGORYINFO_viewablePersonList_join ON CMS_CATEGORYINFO_viewablePersonList (CATEGORYINFO_XID); +CREATE INDEX CMS_CATEGORYINFO_viewableUnitList_element ON CMS_CATEGORYINFO_viewableUnitList (xviewableUnitList); +CREATE INDEX CMS_CATEGORYINFO_viewableUnitList_join ON CMS_CATEGORYINFO_viewableUnitList (CATEGORYINFO_XID); +CREATE INDEX CMS_DOCUMENT_appId ON CMS_DOCUMENT (xappId); +CREATE INDEX CMS_DOCUMENT_categoryAlias ON CMS_DOCUMENT (xcategoryAlias); +CREATE INDEX CMS_DOCUMENT_categoryId ON CMS_DOCUMENT (xcategoryId); +CREATE INDEX CMS_DOCUMENT_docStatus ON CMS_DOCUMENT (xdocStatus); +CREATE INDEX CMS_DOCUMENT_documentType ON CMS_DOCUMENT (xdocumentType); +CREATE INDEX CMS_DOCUMENT_hasIndexPic ON CMS_DOCUMENT (xhasIndexPic); +CREATE INDEX CMS_DOCUMENT_importBatchName ON CMS_DOCUMENT (ximportBatchName); +CREATE INDEX CMS_DOCUMENT_isTop ON CMS_DOCUMENT (xisTop); +CREATE INDEX CMS_DOCUMENT_modifyTime ON CMS_DOCUMENT (xmodifyTime); +CREATE INDEX CMS_DOCUMENT_publishTime ON CMS_DOCUMENT (xpublishTime); +CREATE INDEX CMS_DOCUMENT_reviewed ON CMS_DOCUMENT (xreviewed); +CREATE INDEX CMS_DOCUMENT_sequenceAppAlias ON CMS_DOCUMENT (xsequenceAppAlias); +CREATE INDEX CMS_DOCUMENT_sequenceCategoryAlias ON CMS_DOCUMENT (xsequenceCategoryAlias); +CREATE INDEX CMS_DOCUMENT_sequenceCreatorPerson ON CMS_DOCUMENT (xsequenceCreatorPerson); +CREATE INDEX CMS_DOCUMENT_sequenceCreatorUnitName ON CMS_DOCUMENT (xsequenceCreatorUnitName); +CREATE INDEX CMS_DOCUMENT_sequenceTitle ON CMS_DOCUMENT (xsequenceTitle); +CREATE INDEX CMS_DOCUMENT_title ON CMS_DOCUMENT (xtitle); +CREATE INDEX CMS_DOCUMENT_authorGroupList_element ON CMS_DOCUMENT_authorGroupList (xauthorGroupList); +CREATE INDEX CMS_DOCUMENT_authorGroupList_join ON CMS_DOCUMENT_authorGroupList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_authorPersonList_element ON CMS_DOCUMENT_authorPersonList (xauthorPersonList); +CREATE INDEX CMS_DOCUMENT_authorPersonList_join ON CMS_DOCUMENT_authorPersonList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_authorUnitList_element ON CMS_DOCUMENT_authorUnitList (xauthorUnitList); +CREATE INDEX CMS_DOCUMENT_authorUnitList_join ON CMS_DOCUMENT_authorUnitList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_COMMEND_commendPerson ON CMS_DOCUMENT_COMMEND (xcommendPerson); +CREATE INDEX CMS_DOCUMENT_COMMEND_documentId ON CMS_DOCUMENT_COMMEND (xdocumentId); +CREATE INDEX CMS_DOCUMENT_COMMENTCOMMEND_commendPerson ON CMS_DOCUMENT_COMMENTCOMMEND (xcommendPerson); +CREATE INDEX CMS_DOCUMENT_COMMENTCOMMEND_documentId ON CMS_DOCUMENT_COMMENTCOMMEND (xdocumentId); +CREATE INDEX CMS_DOCUMENT_COMMENTINFO_appId ON CMS_DOCUMENT_COMMENTINFO (xappId); +CREATE INDEX CMS_DOCUMENT_COMMENTINFO_auditorName ON CMS_DOCUMENT_COMMENTINFO (xauditorName); +CREATE INDEX CMS_DOCUMENT_COMMENTINFO_categoryId ON CMS_DOCUMENT_COMMENTINFO (xcategoryId); +CREATE INDEX CMS_DOCUMENT_COMMENTINFO_commentAuditStatus ON CMS_DOCUMENT_COMMENTINFO (xcommentAuditStatus); +CREATE INDEX CMS_DOCUMENT_COMMENTINFO_creatorName ON CMS_DOCUMENT_COMMENTINFO (xcreatorName); +CREATE INDEX CMS_DOCUMENT_COMMENTINFO_documentId ON CMS_DOCUMENT_COMMENTINFO (xdocumentId); +CREATE INDEX CMS_DOCUMENT_COMMENTINFO_isPrivate ON CMS_DOCUMENT_COMMENTINFO (xisPrivate); +CREATE INDEX CMS_DOCUMENT_COMMENTINFO_parentId ON CMS_DOCUMENT_COMMENTINFO (xparentId); +CREATE INDEX CMS_DOCUMENT_managerList_element ON CMS_DOCUMENT_managerList (xmanagerList); +CREATE INDEX CMS_DOCUMENT_managerList_join ON CMS_DOCUMENT_managerList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_pictureList_element ON CMS_DOCUMENT_pictureList (xpictureList); +CREATE INDEX CMS_DOCUMENT_pictureList_join ON CMS_DOCUMENT_pictureList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_readGroupList_element ON CMS_DOCUMENT_readGroupList (xreadGroupList); +CREATE INDEX CMS_DOCUMENT_readGroupList_join ON CMS_DOCUMENT_readGroupList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_readPersonList_element ON CMS_DOCUMENT_readPersonList (xreadPersonList); +CREATE INDEX CMS_DOCUMENT_readPersonList_join ON CMS_DOCUMENT_readPersonList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_readUnitList_element ON CMS_DOCUMENT_readUnitList (xreadUnitList); +CREATE INDEX CMS_DOCUMENT_readUnitList_join ON CMS_DOCUMENT_readUnitList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_remindGroupList_element ON CMS_DOCUMENT_remindGroupList (xremindGroupList); +CREATE INDEX CMS_DOCUMENT_remindGroupList_join ON CMS_DOCUMENT_remindGroupList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_remindPersonList_element ON CMS_DOCUMENT_remindPersonList (xremindPersonList); +CREATE INDEX CMS_DOCUMENT_remindPersonList_join ON CMS_DOCUMENT_remindPersonList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_remindUnitList_element ON CMS_DOCUMENT_remindUnitList (xremindUnitList); +CREATE INDEX CMS_DOCUMENT_remindUnitList_join ON CMS_DOCUMENT_remindUnitList (DOCUMENT_XID); +CREATE INDEX CMS_DOCUMENT_VIEWRECORD_documentId ON CMS_DOCUMENT_VIEWRECORD (xdocumentId); +CREATE INDEX CMS_DOCUMENT_VIEWRECORD_lastViewTime ON CMS_DOCUMENT_VIEWRECORD (xlastViewTime); +CREATE INDEX CMS_DOCUMENT_VIEWRECORD_title ON CMS_DOCUMENT_VIEWRECORD (xtitle); +CREATE INDEX CMS_DOCUMENT_VIEWRECORD_viewerName ON CMS_DOCUMENT_VIEWRECORD (xviewerName); +CREATE INDEX CMS_E_QUERYVIEW_appId ON CMS_E_QUERYVIEW (xappId); +CREATE INDEX CMS_E_QUERYVIEW_appName ON CMS_E_QUERYVIEW (xappName); +CREATE INDEX CMS_E_QUERYVIEW_creatorPerson ON CMS_E_QUERYVIEW (xcreatorPerson); +CREATE INDEX CMS_E_QUERYVIEW_display ON CMS_E_QUERYVIEW (xdisplay); +CREATE INDEX CMS_E_QUERYVIEW_lastUpdatePerson ON CMS_E_QUERYVIEW (xlastUpdatePerson); +CREATE INDEX CMS_E_QUERYVIEW_lastUpdateTime ON CMS_E_QUERYVIEW (xlastUpdateTime); +CREATE INDEX CMS_E_QUERYVIEW_name ON CMS_E_QUERYVIEW (xname); +CREATE INDEX CMS_E_QUERYVIEW_timingEnable ON CMS_E_QUERYVIEW (xtimingEnable); +CREATE INDEX CMS_E_QUERYVIEW_timingInterval ON CMS_E_QUERYVIEW (xtimingInterval); +CREATE INDEX CMS_E_QUERYVIEW_timingTouch ON CMS_E_QUERYVIEW (xtimingTouch); +CREATE INDEX CMS_E_QUERYVIEW_availableIdentityList_element ON CMS_E_QUERYVIEW_availableIdentityList (xavailableIdentityList); +CREATE INDEX CMS_E_QUERYVIEW_availableIdentityList_join ON CMS_E_QUERYVIEW_availableIdentityList (QUERYVIEW_XID); +CREATE INDEX CMS_E_QUERYVIEW_availablePersonList_element ON CMS_E_QUERYVIEW_availablePersonList (xavailablePersonList); +CREATE INDEX CMS_E_QUERYVIEW_availablePersonList_join ON CMS_E_QUERYVIEW_availablePersonList (QUERYVIEW_XID); +CREATE INDEX CMS_E_QUERYVIEW_availableUnitList_element ON CMS_E_QUERYVIEW_availableUnitList (xavailableUnitList); +CREATE INDEX CMS_E_QUERYVIEW_availableUnitList_join ON CMS_E_QUERYVIEW_availableUnitList (QUERYVIEW_XID); +CREATE INDEX CMS_E_QUERYVIEW_controllerList_element ON CMS_E_QUERYVIEW_controllerList (xcontrollerList); +CREATE INDEX CMS_E_QUERYVIEW_controllerList_join ON CMS_E_QUERYVIEW_controllerList (QUERYVIEW_XID); +CREATE INDEX CMS_FILE_appId ON CMS_FILE (xappId); +CREATE INDEX CMS_FILE_length ON CMS_FILE (xlength); +CREATE INDEX CMS_FILEINFO_deepPath ON CMS_FILEINFO (xdeepPath); +CREATE INDEX CMS_FILEINFO_documentId ON CMS_FILEINFO (xdocumentId); +CREATE INDEX CMS_FILEINFO_lastUpdateTime ON CMS_FILEINFO (xlastUpdateTime); +CREATE INDEX CMS_FILEINFO_length ON CMS_FILEINFO (xlength); +CREATE INDEX CMS_FILEINFO_storage ON CMS_FILEINFO (xstorage); +CREATE INDEX CMS_FILEINFO_controllerIdentityList_element ON CMS_FILEINFO_controllerIdentityList (xcontrollerIdentityList); +CREATE INDEX CMS_FILEINFO_controllerIdentityList_join ON CMS_FILEINFO_controllerIdentityList (FILEINFO_XID); +CREATE INDEX CMS_FILEINFO_controllerUnitList_element ON CMS_FILEINFO_controllerUnitList (xcontrollerUnitList); +CREATE INDEX CMS_FILEINFO_controllerUnitList_join ON CMS_FILEINFO_controllerUnitList (FILEINFO_XID); +CREATE INDEX CMS_FILEINFO_editIdentityList_element ON CMS_FILEINFO_editIdentityList (xeditIdentityList); +CREATE INDEX CMS_FILEINFO_editIdentityList_join ON CMS_FILEINFO_editIdentityList (FILEINFO_XID); +CREATE INDEX CMS_FILEINFO_editUnitList_element ON CMS_FILEINFO_editUnitList (xeditUnitList); +CREATE INDEX CMS_FILEINFO_editUnitList_join ON CMS_FILEINFO_editUnitList (FILEINFO_XID); +CREATE INDEX CMS_FILEINFO_readIdentityList_element ON CMS_FILEINFO_readIdentityList (xreadIdentityList); +CREATE INDEX CMS_FILEINFO_readIdentityList_join ON CMS_FILEINFO_readIdentityList (FILEINFO_XID); +CREATE INDEX CMS_FILEINFO_readUnitList_element ON CMS_FILEINFO_readUnitList (xreadUnitList); +CREATE INDEX CMS_FILEINFO_readUnitList_join ON CMS_FILEINFO_readUnitList (FILEINFO_XID); +CREATE INDEX CMS_FORM_appId ON CMS_FORM (xappId); +CREATE INDEX CMS_FORM_name ON CMS_FORM (xname); +CREATE INDEX CMS_FORMFIELD_appId ON CMS_FORMFIELD (xappId); +CREATE INDEX CMS_FORMFIELD_form ON CMS_FORMFIELD (xform); +CREATE INDEX CMS_LOG_appId ON CMS_LOG (xappId); +CREATE INDEX CMS_LOG_categoryId ON CMS_LOG (xcategoryId); +CREATE INDEX CMS_LOG_operationLevel ON CMS_LOG (xoperationLevel); +CREATE INDEX CMS_LOG_operationType ON CMS_LOG (xoperationType); +CREATE INDEX CMS_LOG_operatorUid ON CMS_LOG (xoperatorUid); +CREATE INDEX CMS_READREMIND_appId ON CMS_READREMIND (xappId); +CREATE INDEX CMS_READREMIND_categoryId ON CMS_READREMIND (xcategoryId); +CREATE INDEX CMS_READREMIND_documentId ON CMS_READREMIND (xdocumentId); +CREATE INDEX CMS_READREMIND_readed ON CMS_READREMIND (xreaded); +CREATE INDEX CMS_READREMIND_reminded ON CMS_READREMIND (xreminded); +CREATE INDEX CMS_REVIEW_appAlias ON CMS_REVIEW (xappAlias); +CREATE INDEX CMS_REVIEW_appId ON CMS_REVIEW (xappId); +CREATE INDEX CMS_REVIEW_appName ON CMS_REVIEW (xappName); +CREATE INDEX CMS_REVIEW_categoryAlias ON CMS_REVIEW (xcategoryAlias); +CREATE INDEX CMS_REVIEW_categoryId ON CMS_REVIEW (xcategoryId); +CREATE INDEX CMS_REVIEW_categoryName ON CMS_REVIEW (xcategoryName); +CREATE INDEX CMS_REVIEW_creatorIdentity ON CMS_REVIEW (xcreatorIdentity); +CREATE INDEX CMS_REVIEW_creatorPerson ON CMS_REVIEW (xcreatorPerson); +CREATE INDEX CMS_REVIEW_creatorUnitName ON CMS_REVIEW (xcreatorUnitName); +CREATE INDEX CMS_REVIEW_docCreateTime ON CMS_REVIEW (xdocCreateTime); +CREATE INDEX CMS_REVIEW_docId ON CMS_REVIEW (xdocId); +CREATE INDEX CMS_REVIEW_docSequence ON CMS_REVIEW (xdocSequence); +CREATE INDEX CMS_REVIEW_docStatus ON CMS_REVIEW (xdocStatus); +CREATE INDEX CMS_REVIEW_documentType ON CMS_REVIEW (xdocumentType); +CREATE INDEX CMS_REVIEW_hasIndexPic ON CMS_REVIEW (xhasIndexPic); +CREATE INDEX CMS_REVIEW_importBatchName ON CMS_REVIEW (ximportBatchName); +CREATE INDEX CMS_REVIEW_isTop ON CMS_REVIEW (xisTop); +CREATE INDEX CMS_REVIEW_modifyTime ON CMS_REVIEW (xmodifyTime); +CREATE INDEX CMS_REVIEW_permissionObj ON CMS_REVIEW (xpermissionObj); +CREATE INDEX CMS_REVIEW_publishTime ON CMS_REVIEW (xpublishTime); +CREATE INDEX CMS_REVIEW_sequenceAppAlias ON CMS_REVIEW (xsequenceAppAlias); +CREATE INDEX CMS_REVIEW_sequenceCategoryAlias ON CMS_REVIEW (xsequenceCategoryAlias); +CREATE INDEX CMS_REVIEW_sequenceCreatorPerson ON CMS_REVIEW (xsequenceCreatorPerson); +CREATE INDEX CMS_REVIEW_sequenceCreatorUnitName ON CMS_REVIEW (xsequenceCreatorUnitName); +CREATE INDEX CMS_REVIEW_sequenceTitle ON CMS_REVIEW (xsequenceTitle); +CREATE INDEX CMS_REVIEW_title ON CMS_REVIEW (xtitle); +CREATE INDEX CMS_SCRIPT_appId ON CMS_SCRIPT (xappId); +CREATE INDEX CMS_SCRIPT_dependScriptList_element ON CMS_SCRIPT_dependScriptList (xdependScriptList); +CREATE INDEX CMS_SCRIPT_dependScriptList_join ON CMS_SCRIPT_dependScriptList (SCRIPT_XID); +CREATE INDEX CMS_TEMPLATEFORM_category ON CMS_TEMPLATEFORM (xcategory); +CREATE INDEX CMS_VIEW_appId ON CMS_VIEW (xappId); +CREATE INDEX CMS_VIEW_formId ON CMS_VIEW (xformId); +CREATE INDEX CMS_VIEWCATEGORY_categoryId ON CMS_VIEWCATEGORY (xcategoryId); +CREATE INDEX CMS_VIEWCATEGORY_viewId ON CMS_VIEWCATEGORY (xviewId); +CREATE INDEX CMS_VIEWFIELD_CONFIG_viewId ON CMS_VIEWFIELD_CONFIG (xviewId); +CREATE INDEX CMS_VIEW_fieldConfigList_element ON CMS_VIEW_fieldConfigList (xfieldConfigList); +CREATE INDEX CMS_VIEW_fieldConfigList_join ON CMS_VIEW_fieldConfigList (VIEW_XID); +CREATE INDEX CPT_COMPONENT_name ON CPT_COMPONENT (xname); +CREATE INDEX CPT_COMPONENT_orderNumber ON CPT_COMPONENT (xorderNumber); +CREATE INDEX CPT_COMPONENT_allowList_element ON CPT_COMPONENT_allowList (xallowList); +CREATE INDEX CPT_COMPONENT_allowList_join ON CPT_COMPONENT_allowList (COMPONENT_XID); +CREATE INDEX CPT_COMPONENT_denyList_element ON CPT_COMPONENT_denyList (xdenyList); +CREATE INDEX CPT_COMPONENT_denyList_join ON CPT_COMPONENT_denyList (COMPONENT_XID); +CREATE INDEX CTE_AGENT_cron ON CTE_AGENT (xcron); +CREATE INDEX CTE_AGENT_enable ON CTE_AGENT (xenable); +CREATE INDEX CTE_AGENT_lastEndTime ON CTE_AGENT (xlastEndTime); +CREATE INDEX CTE_AGENT_lastStartTime ON CTE_AGENT (xlastStartTime); +CREATE INDEX CTE_AGENT_name ON CTE_AGENT (xname); +CREATE INDEX CTE_INVOKE_enable ON CTE_INVOKE (xenable); +CREATE INDEX CTE_INVOKE_lastEndTime ON CTE_INVOKE (xlastEndTime); +CREATE INDEX CTE_INVOKE_lastStartTime ON CTE_INVOKE (xlastStartTime); +CREATE INDEX CTE_INVOKE_name ON CTE_INVOKE (xname); +CREATE INDEX CTE_INVOKE_remoteAddrRegex ON CTE_INVOKE (xremoteAddrRegex); +CREATE INDEX CTE_PROMPTERRORLOG_exceptionClass ON CTE_PROMPTERRORLOG (xexceptionClass); +CREATE INDEX CTE_PROMPTERRORLOG_loggerName ON CTE_PROMPTERRORLOG (xloggerName); +CREATE INDEX CTE_PROMPTERRORLOG_occurTime ON CTE_PROMPTERRORLOG (xoccurTime); +CREATE INDEX CTE_PROMPTERRORLOG_person ON CTE_PROMPTERRORLOG (xperson); +CREATE INDEX CTE_PROMPTERRORLOG_requestRemoteAddr ON CTE_PROMPTERRORLOG (xrequestRemoteAddr); +CREATE INDEX CTE_PROMPTERRORLOG_requestRemoteHost ON CTE_PROMPTERRORLOG (xrequestRemoteHost); +CREATE INDEX CTE_SCHEDULELOG_application ON CTE_SCHEDULELOG (xapplication); +CREATE INDEX CTE_SCHEDULELOG_className ON CTE_SCHEDULELOG (xclassName); +CREATE INDEX CTE_SCHEDULELOG_elapsed ON CTE_SCHEDULELOG (xelapsed); +CREATE INDEX CTE_SCHEDULELOG_fireTime ON CTE_SCHEDULELOG (xfireTime); +CREATE INDEX CTE_SCHEDULELOG_node ON CTE_SCHEDULELOG (xnode); +CREATE INDEX CTE_SCHEDULELOG_success ON CTE_SCHEDULELOG (xsuccess); +CREATE INDEX CTE_SCHEDULELOG_type ON CTE_SCHEDULELOG (xtype); +CREATE INDEX CTE_STRUCTURE_deepPath ON CTE_STRUCTURE (xdeepPath); +CREATE INDEX CTE_STRUCTURE_lastUpdateTime ON CTE_STRUCTURE (xlastUpdateTime); +CREATE INDEX CTE_STRUCTURE_length ON CTE_STRUCTURE (xlength); +CREATE INDEX CTE_STRUCTURE_name ON CTE_STRUCTURE (xname); +CREATE INDEX CTE_STRUCTURE_storage ON CTE_STRUCTURE (xstorage); +CREATE INDEX CTE_UNEXPECTEDERRORLOG_exceptionClass ON CTE_UNEXPECTEDERRORLOG (xexceptionClass); +CREATE INDEX CTE_UNEXPECTEDERRORLOG_loggerName ON CTE_UNEXPECTEDERRORLOG (xloggerName); +CREATE INDEX CTE_UNEXPECTEDERRORLOG_occurTime ON CTE_UNEXPECTEDERRORLOG (xoccurTime); +CREATE INDEX CTE_UNEXPECTEDERRORLOG_person ON CTE_UNEXPECTEDERRORLOG (xperson); +CREATE INDEX CTE_UNEXPECTEDERRORLOG_requestRemoteAddr ON CTE_UNEXPECTEDERRORLOG (xrequestRemoteAddr); +CREATE INDEX CTE_UNEXPECTEDERRORLOG_requestRemoteHost ON CTE_UNEXPECTEDERRORLOG (xrequestRemoteHost); +CREATE INDEX CTE_WARNLOG_loggerName ON CTE_WARNLOG (xloggerName); +CREATE INDEX CTE_WARNLOG_occurTime ON CTE_WARNLOG (xoccurTime); +CREATE INDEX FILE_ATTACHMENT_deepPath ON FILE_ATTACHMENT (xdeepPath); +CREATE INDEX FILE_ATTACHMENT_folder ON FILE_ATTACHMENT (xfolder); +CREATE INDEX FILE_ATTACHMENT_lastUpdatePerson ON FILE_ATTACHMENT (xlastUpdatePerson); +CREATE INDEX FILE_ATTACHMENT_lastUpdateTime ON FILE_ATTACHMENT (xlastUpdateTime); +CREATE INDEX FILE_ATTACHMENT_length ON FILE_ATTACHMENT (xlength); +CREATE INDEX FILE_ATTACHMENT_name ON FILE_ATTACHMENT (xname); +CREATE INDEX FILE_ATTACHMENT_person ON FILE_ATTACHMENT (xperson); +CREATE INDEX FILE_ATTACHMENT_storage ON FILE_ATTACHMENT (xstorage); +CREATE INDEX FILE_ATTACHMENT2_folder ON FILE_ATTACHMENT2 (xfolder); +CREATE INDEX FILE_ATTACHMENT2_lastUpdatePerson ON FILE_ATTACHMENT2 (xlastUpdatePerson); +CREATE INDEX FILE_ATTACHMENT2_lastUpdateTime ON FILE_ATTACHMENT2 (xlastUpdateTime); +CREATE INDEX FILE_ATTACHMENT2_length ON FILE_ATTACHMENT2 (xlength); +CREATE INDEX FILE_ATTACHMENT2_name ON FILE_ATTACHMENT2 (xname); +CREATE INDEX FILE_ATTACHMENT2_originFile ON FILE_ATTACHMENT2 (xoriginFile); +CREATE INDEX FILE_ATTACHMENT2_person ON FILE_ATTACHMENT2 (xperson); +CREATE INDEX FILE_ATTACHMENT_editorList_element ON FILE_ATTACHMENT_editorList (xeditorList); +CREATE INDEX FILE_ATTACHMENT_editorList_join ON FILE_ATTACHMENT_editorList (ATTACHMENT_XID); +CREATE INDEX FILE_ATTACHMENT_shareList_element ON FILE_ATTACHMENT_shareList (xshareList); +CREATE INDEX FILE_ATTACHMENT_shareList_join ON FILE_ATTACHMENT_shareList (ATTACHMENT_XID); +CREATE INDEX FILE_FILE_deepPath ON FILE_FILE (xdeepPath); +CREATE INDEX FILE_FILE_extension ON FILE_FILE (xextension); +CREATE INDEX FILE_FILE_lastNotExistedTime ON FILE_FILE (xlastNotExistedTime); +CREATE INDEX FILE_FILE_lastUpdateTime ON FILE_FILE (xlastUpdateTime); +CREATE INDEX FILE_FILE_length ON FILE_FILE (xlength); +CREATE INDEX FILE_FILE_name ON FILE_FILE (xname); +CREATE INDEX FILE_FILE_person ON FILE_FILE (xperson); +CREATE INDEX FILE_FILE_reference ON FILE_FILE (xreference); +CREATE INDEX FILE_FILE_referenceType ON FILE_FILE (xreferenceType); +CREATE INDEX FILE_FILE_storage ON FILE_FILE (xstorage); +CREATE INDEX FILE_FOLDER_person ON FILE_FOLDER (xperson); +CREATE INDEX FILE_FOLDER_superior ON FILE_FOLDER (xsuperior); +CREATE INDEX FILE_FOLDER2_lastUpdateTime ON FILE_FOLDER2 (xlastUpdateTime); +CREATE INDEX FILE_FOLDER2_person ON FILE_FOLDER2 (xperson); +CREATE INDEX FILE_FOLDER2_superior ON FILE_FOLDER2 (xsuperior); +CREATE INDEX FILE_ORIGINFILE_deepPath ON FILE_ORIGINFILE (xdeepPath); +CREATE INDEX FILE_ORIGINFILE_fileMd5 ON FILE_ORIGINFILE (xfileMd5); +CREATE INDEX FILE_ORIGINFILE_lastUpdatePerson ON FILE_ORIGINFILE (xlastUpdatePerson); +CREATE INDEX FILE_ORIGINFILE_lastUpdateTime ON FILE_ORIGINFILE (xlastUpdateTime); +CREATE INDEX FILE_ORIGINFILE_length ON FILE_ORIGINFILE (xlength); +CREATE INDEX FILE_ORIGINFILE_name ON FILE_ORIGINFILE (xname); +CREATE INDEX FILE_ORIGINFILE_person ON FILE_ORIGINFILE (xperson); +CREATE INDEX FILE_ORIGINFILE_storage ON FILE_ORIGINFILE (xstorage); +CREATE INDEX FILE_RECYCLE_length ON FILE_RECYCLE (xlength); +CREATE INDEX FILE_RECYCLE_name ON FILE_RECYCLE (xname); +CREATE INDEX FILE_RECYCLE_person ON FILE_RECYCLE (xperson); +CREATE INDEX FILE_RECYCLE_validTime ON FILE_RECYCLE (xvalidTime); +CREATE INDEX FILE_SHARE_lastUpdateTime ON FILE_SHARE (xlastUpdateTime); +CREATE INDEX FILE_SHARE_length ON FILE_SHARE (xlength); +CREATE INDEX FILE_SHARE_name ON FILE_SHARE (xname); +CREATE INDEX FILE_SHARE_password ON FILE_SHARE (xpassword); +CREATE INDEX FILE_SHARE_person ON FILE_SHARE (xperson); +CREATE INDEX FILE_SHARE_validTime ON FILE_SHARE (xvalidTime); +CREATE INDEX FILE_SHARE_shareOrgList_element ON FILE_SHARE_shareOrgList (xshareOrgList); +CREATE INDEX FILE_SHARE_shareOrgList_join ON FILE_SHARE_shareOrgList (SHARE_XID); +CREATE INDEX FILE_SHARE_shareUserList_element ON FILE_SHARE_shareUserList (xshareUserList); +CREATE INDEX FILE_SHARE_shareUserList_join ON FILE_SHARE_shareUserList (SHARE_XID); +CREATE INDEX FILE_SHARE_shieldUserList_element ON FILE_SHARE_shieldUserList (xshieldUserList); +CREATE INDEX FILE_SHARE_shieldUserList_join ON FILE_SHARE_shieldUserList (SHARE_XID); +CREATE INDEX HOT_PICTURE_INFO_application ON HOT_PICTURE_INFO (xapplication); +CREATE INDEX MIND_BASE_INFO_cooperative_sequence ON MIND_BASE_INFO (xcooperative_sequence); +CREATE INDEX MIND_BASE_INFO_creator ON MIND_BASE_INFO (xcreator); +CREATE INDEX MIND_BASE_INFO_creatorUnit_sequence ON MIND_BASE_INFO (xcreatorUnit_sequence); +CREATE INDEX MIND_BASE_INFO_creator_sequence ON MIND_BASE_INFO (xcreator_sequence); +CREATE INDEX MIND_BASE_INFO_folderId ON MIND_BASE_INFO (xfolderId); +CREATE INDEX MIND_BASE_INFO_folder_sequence ON MIND_BASE_INFO (xfolder_sequence); +CREATE INDEX MIND_BASE_INFO_name ON MIND_BASE_INFO (xname); +CREATE INDEX MIND_BASE_INFO_shared ON MIND_BASE_INFO (xshared); +CREATE INDEX MIND_BASE_INFO_shared_sequence ON MIND_BASE_INFO (xshared_sequence); +CREATE INDEX MIND_BASE_INFO_editorList_element ON MIND_BASE_INFO_editorList (xeditorList); +CREATE INDEX MIND_BASE_INFO_editorList_join ON MIND_BASE_INFO_editorList (MINDBASEINFO_XID); +CREATE INDEX MIND_BASE_INFO_shareGroupList_element ON MIND_BASE_INFO_shareGroupList (xshareGroupList); +CREATE INDEX MIND_BASE_INFO_shareGroupList_join ON MIND_BASE_INFO_shareGroupList (MINDBASEINFO_XID); +CREATE INDEX MIND_BASE_INFO_sharePersonList_element ON MIND_BASE_INFO_sharePersonList (xsharePersonList); +CREATE INDEX MIND_BASE_INFO_sharePersonList_join ON MIND_BASE_INFO_sharePersonList (MINDBASEINFO_XID); +CREATE INDEX MIND_BASE_INFO_shareUnitList_element ON MIND_BASE_INFO_shareUnitList (xshareUnitList); +CREATE INDEX MIND_BASE_INFO_shareUnitList_join ON MIND_BASE_INFO_shareUnitList (MINDBASEINFO_XID); +CREATE INDEX MIND_FOLDER_INFO_creator ON MIND_FOLDER_INFO (xcreator); +CREATE INDEX MIND_FOLDER_INFO_name ON MIND_FOLDER_INFO (xname); +CREATE INDEX MIND_FOLDER_INFO_parentId ON MIND_FOLDER_INFO (xparentId); +CREATE INDEX MIND_RECYCLE_INFO_creator ON MIND_RECYCLE_INFO (xcreator); +CREATE INDEX MIND_RECYCLE_INFO_creatorUnit_sequence ON MIND_RECYCLE_INFO (xcreatorUnit_sequence); +CREATE INDEX MIND_RECYCLE_INFO_creator_sequence ON MIND_RECYCLE_INFO (xcreator_sequence); +CREATE INDEX MIND_RECYCLE_INFO_deleteor ON MIND_RECYCLE_INFO (xdeleteor); +CREATE INDEX MIND_RECYCLE_INFO_fileCreateTime ON MIND_RECYCLE_INFO (xfileCreateTime); +CREATE INDEX MIND_RECYCLE_INFO_folderId ON MIND_RECYCLE_INFO (xfolderId); +CREATE INDEX MIND_RECYCLE_INFO_folder_sequence ON MIND_RECYCLE_INFO (xfolder_sequence); +CREATE INDEX MIND_RECYCLE_INFO_name ON MIND_RECYCLE_INFO (xname); +CREATE INDEX MIND_RECYCLE_INFO_shared ON MIND_RECYCLE_INFO (xshared); +CREATE INDEX MIND_RECYCLE_INFO_shared_sequence ON MIND_RECYCLE_INFO (xshared_sequence); +CREATE INDEX MIND_SHARE_RECORED_fileId ON MIND_SHARE_RECORED (xfileId); +CREATE INDEX MIND_SHARE_RECORED_fileStatus ON MIND_SHARE_RECORED (xfileStatus); +CREATE INDEX MIND_SHARE_RECORED_fileType ON MIND_SHARE_RECORED (xfileType); +CREATE INDEX MIND_SHARE_RECORED_name ON MIND_SHARE_RECORED (xname); +CREATE INDEX MIND_SHARE_RECORED_shareType ON MIND_SHARE_RECORED (xshareType); +CREATE INDEX MIND_SHARE_RECORED_source ON MIND_SHARE_RECORED (xsource); +CREATE INDEX MIND_SHARE_RECORED_target ON MIND_SHARE_RECORED (xtarget); +CREATE INDEX MIND_SHARE_RECORED_targetType ON MIND_SHARE_RECORED (xtargetType); +CREATE INDEX MIND_VERSION_INFO_mindId ON MIND_VERSION_INFO (xmindId); +CREATE INDEX MSG_IM_CONVERSATIONpersonList_element ON MSG_IM_CONVERSATION_personList (xpersonList); +CREATE INDEX MSG_IM_CONVERSATIONpersonList_join ON MSG_IM_CONVERSATION_personList (IMCONVERSATION_XID); +CREATE INDEX MSG_INSTANT_consumed ON MSG_INSTANT (xconsumed); +CREATE INDEX MSG_INSTANT_person ON MSG_INSTANT (xperson); +CREATE INDEX MSG_INSTANT_title ON MSG_INSTANT (xtitle); +CREATE INDEX MSG_INSTANT_type ON MSG_INSTANT (xtype); +CREATE INDEX MSG_INSTANTconsumerList_element ON MSG_INSTANT_consumerList (xconsumerList); +CREATE INDEX MSG_INSTANTconsumerList_join ON MSG_INSTANT_consumerList (INSTANT_XID); +CREATE INDEX MSG_MASS_creatorPerson ON MSG_MASS (xcreatorPerson); +CREATE INDEX MSG_MASS_type ON MSG_MASS (xtype); +CREATE INDEX MSG_MASSgroupList_element ON MSG_MASS_groupList (xgroupList); +CREATE INDEX MSG_MASSgroupList_join ON MSG_MASS_groupList (MASS_XID); +CREATE INDEX MSG_MASSidentityList_element ON MSG_MASS_identityList (xidentityList); +CREATE INDEX MSG_MASSidentityList_join ON MSG_MASS_identityList (MASS_XID); +CREATE INDEX MSG_MASSpersonList_element ON MSG_MASS_personList (xpersonList); +CREATE INDEX MSG_MASSpersonList_join ON MSG_MASS_personList (MASS_XID); +CREATE INDEX MSG_MASSsendPersonList_element ON MSG_MASS_sendPersonList (xsendPersonList); +CREATE INDEX MSG_MASSsendPersonList_join ON MSG_MASS_sendPersonList (MASS_XID); +CREATE INDEX MSG_MASSunitList_element ON MSG_MASS_unitList (xunitList); +CREATE INDEX MSG_MASSunitList_join ON MSG_MASS_unitList (MASS_XID); +CREATE INDEX MSG_MESSAGE_consumed ON MSG_MESSAGE (xconsumed); +CREATE INDEX MSG_MESSAGE_consumer ON MSG_MESSAGE (xconsumer); +CREATE INDEX MSG_MESSAGE_instant ON MSG_MESSAGE (xinstant); +CREATE INDEX MSG_MESSAGE_person ON MSG_MESSAGE (xperson); +CREATE INDEX MSG_MESSAGE_title ON MSG_MESSAGE (xtitle); +CREATE INDEX MSG_MESSAGE_type ON MSG_MESSAGE (xtype); +CREATE INDEX MT_ATTACHMENT_deepPath ON MT_ATTACHMENT (xdeepPath); +CREATE INDEX MT_ATTACHMENT_lastUpdatePerson ON MT_ATTACHMENT (xlastUpdatePerson); +CREATE INDEX MT_ATTACHMENT_lastUpdateTime ON MT_ATTACHMENT (xlastUpdateTime); +CREATE INDEX MT_ATTACHMENT_length ON MT_ATTACHMENT (xlength); +CREATE INDEX MT_ATTACHMENT_meeting ON MT_ATTACHMENT (xmeeting); +CREATE INDEX MT_ATTACHMENT_name ON MT_ATTACHMENT (xname); +CREATE INDEX MT_ATTACHMENT_storage ON MT_ATTACHMENT (xstorage); +CREATE INDEX MT_ATTACHMENT_summary ON MT_ATTACHMENT (xsummary); +CREATE INDEX MT_BUILDING_address ON MT_BUILDING (xaddress); +CREATE INDEX MT_BUILDING_name ON MT_BUILDING (xname); +CREATE INDEX MT_BUILDING_pinyin ON MT_BUILDING (xpinyin); +CREATE INDEX MT_BUILDING_pinyinInitial ON MT_BUILDING (xpinyinInitial); +CREATE INDEX MT_MEETING_actualCompletedTime ON MT_MEETING (xactualCompletedTime); +CREATE INDEX MT_MEETING_actualStartTime ON MT_MEETING (xactualStartTime); +CREATE INDEX MT_MEETING_applicant ON MT_MEETING (xapplicant); +CREATE INDEX MT_MEETING_auditor ON MT_MEETING (xauditor); +CREATE INDEX MT_MEETING_completedTime ON MT_MEETING (xcompletedTime); +CREATE INDEX MT_MEETING_confirmStatus ON MT_MEETING (xconfirmStatus); +CREATE INDEX MT_MEETING_description ON MT_MEETING (xdescription); +CREATE INDEX MT_MEETING_manualCompleted ON MT_MEETING (xmanualCompleted); +CREATE INDEX MT_MEETING_pinyin ON MT_MEETING (xpinyin); +CREATE INDEX MT_MEETING_pinyinInitial ON MT_MEETING (xpinyinInitial); +CREATE INDEX MT_MEETING_room ON MT_MEETING (xroom); +CREATE INDEX MT_MEETING_startTime ON MT_MEETING (xstartTime); +CREATE INDEX MT_MEETING_subject ON MT_MEETING (xsubject); +CREATE INDEX MT_MEETING_acceptPersonList_element ON MT_MEETING_acceptPersonList (xacceptPersonList); +CREATE INDEX MT_MEETING_acceptPersonList_join ON MT_MEETING_acceptPersonList (MEETING_XID); +CREATE INDEX MT_MEETING_checkinPersonList_element ON MT_MEETING_checkinPersonList (xcheckinPersonList); +CREATE INDEX MT_MEETING_checkinPersonList_join ON MT_MEETING_checkinPersonList (MEETING_XID); +CREATE INDEX MT_MEETING_invitePersonList_element ON MT_MEETING_invitePersonList (xinvitePersonList); +CREATE INDEX MT_MEETING_invitePersonList_join ON MT_MEETING_invitePersonList (MEETING_XID); +CREATE INDEX MT_MEETING_rejectPersonList_element ON MT_MEETING_rejectPersonList (xrejectPersonList); +CREATE INDEX MT_MEETING_rejectPersonList_join ON MT_MEETING_rejectPersonList (MEETING_XID); +CREATE INDEX MT_ROOM_auditor ON MT_ROOM (xauditor); +CREATE INDEX MT_ROOM_available ON MT_ROOM (xavailable); +CREATE INDEX MT_ROOM_building ON MT_ROOM (xbuilding); +CREATE INDEX MT_ROOM_name ON MT_ROOM (xname); +CREATE INDEX MT_ROOM_phoneNumber ON MT_ROOM (xphoneNumber); +CREATE INDEX MT_ROOM_pinyin ON MT_ROOM (xpinyin); +CREATE INDEX MT_ROOM_pinyinInitial ON MT_ROOM (xpinyinInitial); +CREATE INDEX MT_ROOM_roomNumber ON MT_ROOM (xroomNumber); +CREATE INDEX OKR_ATTACHMENTFILEINFO_centerId ON OKR_ATTACHMENTFILEINFO (xcenterId); +CREATE INDEX OKR_ATTACHMENTFILEINFO_deepPath ON OKR_ATTACHMENTFILEINFO (xdeepPath); +CREATE INDEX OKR_ATTACHMENTFILEINFO_lastUpdateTime ON OKR_ATTACHMENTFILEINFO (xlastUpdateTime); +CREATE INDEX OKR_ATTACHMENTFILEINFO_length ON OKR_ATTACHMENTFILEINFO (xlength); +CREATE INDEX OKR_ATTACHMENTFILEINFO_storage ON OKR_ATTACHMENTFILEINFO (xstorage); +CREATE INDEX OKR_ATTACHMENTFILEINFO_workInfoId ON OKR_ATTACHMENTFILEINFO (xworkInfoId); +CREATE INDEX OKR_CENTERWORKINFO_deployMonth ON OKR_CENTERWORKINFO (xdeployMonth); +CREATE INDEX OKR_CENTERWORKINFO_deployYear ON OKR_CENTERWORKINFO (xdeployYear); +CREATE INDEX OKR_CENTERWORKINFO_title ON OKR_CENTERWORKINFO (xtitle); +CREATE INDEX OKR_CENTERWORKINFO_attachmentList_element ON OKR_CENTERWORKINFO_attachmentList (xattachmentList); +CREATE INDEX OKR_CENTERWORKINFO_attachmentList_join ON OKR_CENTERWORKINFO_attachmentList (OKRCENTERWORKINFO_XID); +CREATE INDEX OKR_CENTERWORKINFO_defaultLeaderIdentityList_element ON OKR_CENTERWORKINFO_defaultLeaderIdentityList (xdefaultLeaderIdentityList); +CREATE INDEX OKR_CENTERWORKINFO_defaultLeaderIdentityList_join ON OKR_CENTERWORKINFO_defaultLeaderIdentityList (OKRCENTERWORKINFO_XID); +CREATE INDEX OKR_CENTERWORKINFO_defaultLeaderList_element ON OKR_CENTERWORKINFO_defaultLeaderList (xdefaultLeaderList); +CREATE INDEX OKR_CENTERWORKINFO_defaultLeaderList_join ON OKR_CENTERWORKINFO_defaultLeaderList (OKRCENTERWORKINFO_XID); +CREATE INDEX OKR_CENTERWORKINFO_reportAuditLeaderIdentityList_element ON OKR_CENTERWORKINFO_reportAuditLeaderIdentityList (xreportAuditLeaderIdentityList); +CREATE INDEX OKR_CENTERWORKINFO_reportAuditLeaderIdentityList_join ON OKR_CENTERWORKINFO_reportAuditLeaderIdentityList (OKRCENTERWORKINFO_XID); +CREATE INDEX OKR_CENTERWORKINFO_reportAuditLeaderNameList_element ON OKR_CENTERWORKINFO_reportAuditLeaderNameList (xreportAuditLeaderNameList); +CREATE INDEX OKR_CENTERWORKINFO_reportAuditLeaderNameList_join ON OKR_CENTERWORKINFO_reportAuditLeaderNameList (OKRCENTERWORKINFO_XID); +CREATE INDEX OKR_CENTERWORKINFO_reportAuditLeaderTopUnitNameList_element ON OKR_CENTERWORKINFO_reportAuditLeaderTopUnitNameList (xreportAuditLeaderTopUnitNameList); +CREATE INDEX OKR_CENTERWORKINFO_reportAuditLeaderTopUnitNameList_join ON OKR_CENTERWORKINFO_reportAuditLeaderTopUnitNameList (OKRCENTERWORKINFO_XID); +CREATE INDEX OKR_CENTERWORKINFO_reportAuditLeaderUnitNameList_element ON OKR_CENTERWORKINFO_reportAuditLeaderUnitNameList (xreportAuditLeaderUnitNameList); +CREATE INDEX OKR_CENTERWORKINFO_reportAuditLeaderUnitNameList_join ON OKR_CENTERWORKINFO_reportAuditLeaderUnitNameList (OKRCENTERWORKINFO_XID); +CREATE INDEX OKR_CONFIG_SECRETARY_leaderIdentity ON OKR_CONFIG_SECRETARY (xleaderIdentity); +CREATE INDEX OKR_CONFIG_SECRETARY_secretaryIdentity ON OKR_CONFIG_SECRETARY (xsecretaryIdentity); +CREATE INDEX OKR_CONFIG_SECRETARY_secretaryName ON OKR_CONFIG_SECRETARY (xsecretaryName); +CREATE INDEX OKR_CONFIG_SYSTEM_configCode ON OKR_CONFIG_SYSTEM (xconfigCode); +CREATE INDEX OKR_ERRROIDENTITY_identity ON OKR_ERRROIDENTITY (xidentity); +CREATE INDEX OKR_ERRROIDENTITYRECORDS_flag ON OKR_ERRROIDENTITYRECORDS (xflag); +CREATE INDEX OKR_ERRROIDENTITYRECORDS_identity ON OKR_ERRROIDENTITYRECORDS (xidentity); +CREATE INDEX OKR_STATISTIC_REPORT_CONTENT_centerId ON OKR_STATISTIC_REPORT_CONTENT (xcenterId); +CREATE INDEX OKR_STATISTIC_REPORT_CONTENT_centerTitle ON OKR_STATISTIC_REPORT_CONTENT (xcenterTitle); +CREATE INDEX OKR_STATISTIC_REPORT_CONTENT_workId ON OKR_STATISTIC_REPORT_CONTENT (xworkId); +CREATE INDEX OKR_STATISTIC_REPORT_STATUS_centerId ON OKR_STATISTIC_REPORT_STATUS (xcenterId); +CREATE INDEX OKR_STATISTIC_REPORT_STATUS_statisticTimeFlag ON OKR_STATISTIC_REPORT_STATUS (xstatisticTimeFlag); +CREATE INDEX OKR_STATISTIC_REPORT_STATUS_statisticYear ON OKR_STATISTIC_REPORT_STATUS (xstatisticYear); +CREATE INDEX OKR_STATISTIC_REPORT_STATUS_workId ON OKR_STATISTIC_REPORT_STATUS (xworkId); +CREATE INDEX OKR_TASK_centerId ON OKR_TASK (xcenterId); +CREATE INDEX OKR_TASK_dynamicObjectId ON OKR_TASK (xdynamicObjectId); +CREATE INDEX OKR_TASK_dynamicObjectType ON OKR_TASK (xdynamicObjectType); +CREATE INDEX OKR_TASK_processType ON OKR_TASK (xprocessType); +CREATE INDEX OKR_TASK_status ON OKR_TASK (xstatus); +CREATE INDEX OKR_TASK_targetIdentity ON OKR_TASK (xtargetIdentity); +CREATE INDEX OKR_TASK_workId ON OKR_TASK (xworkId); +CREATE INDEX OKR_TASKHANDLED_centerId ON OKR_TASKHANDLED (xcenterId); +CREATE INDEX OKR_TASKHANDLED_processType ON OKR_TASKHANDLED (xprocessType); +CREATE INDEX OKR_TASKHANDLED_targetIdentity ON OKR_TASKHANDLED (xtargetIdentity); +CREATE INDEX OKR_TASKHANDLED_targetName ON OKR_TASKHANDLED (xtargetName); +CREATE INDEX OKR_TASKHANDLED_workId ON OKR_TASKHANDLED (xworkId); +CREATE INDEX OKR_USERINFO_userName ON OKR_USERINFO (xuserName); +CREATE INDEX OKR_WORKAPPRAISEINFO_centerId ON OKR_WORKAPPRAISEINFO (xcenterId); +CREATE INDEX OKR_WORKAPPRAISEINFO_status ON OKR_WORKAPPRAISEINFO (xstatus); +CREATE INDEX OKR_WORKAPPRAISEINFO_workId ON OKR_WORKAPPRAISEINFO (xworkId); +CREATE INDEX OKR_WORKBASEINFO_centerId ON OKR_WORKBASEINFO (xcenterId); +CREATE INDEX OKR_WORKBASEINFO_deployMonth ON OKR_WORKBASEINFO (xdeployMonth); +CREATE INDEX OKR_WORKBASEINFO_deployYear ON OKR_WORKBASEINFO (xdeployYear); +CREATE INDEX OKR_WORKBASEINFO_parentWorkId ON OKR_WORKBASEINFO (xparentWorkId); +CREATE INDEX OKR_WORKBASEINFO_title ON OKR_WORKBASEINFO (xtitle); +CREATE INDEX OKR_WORKBASEINFO_appraiseInfoList_element ON OKR_WORKBASEINFO_appraiseInfoList (xappraiseInfoList); +CREATE INDEX OKR_WORKBASEINFO_appraiseInfoList_join ON OKR_WORKBASEINFO_appraiseInfoList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_attachmentList_element ON OKR_WORKBASEINFO_attachmentList (xattachmentList); +CREATE INDEX OKR_WORKBASEINFO_attachmentList_join ON OKR_WORKBASEINFO_attachmentList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_cooperateEmployeeNameList_element ON OKR_WORKBASEINFO_cooperateEmployeeNameList (xcooperateEmployeeNameList); +CREATE INDEX OKR_WORKBASEINFO_cooperateEmployeeNameList_join ON OKR_WORKBASEINFO_cooperateEmployeeNameList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_cooperateIdentityList_element ON OKR_WORKBASEINFO_cooperateIdentityList (xcooperateIdentityList); +CREATE INDEX OKR_WORKBASEINFO_cooperateIdentityList_join ON OKR_WORKBASEINFO_cooperateIdentityList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_cooperateTopUnitNameList_element ON OKR_WORKBASEINFO_cooperateTopUnitNameList (xcooperateTopUnitNameList); +CREATE INDEX OKR_WORKBASEINFO_cooperateTopUnitNameList_join ON OKR_WORKBASEINFO_cooperateTopUnitNameList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_cooperateUnitNameList_element ON OKR_WORKBASEINFO_cooperateUnitNameList (xcooperateUnitNameList); +CREATE INDEX OKR_WORKBASEINFO_cooperateUnitNameList_join ON OKR_WORKBASEINFO_cooperateUnitNameList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_readLeaderIdentityList_element ON OKR_WORKBASEINFO_readLeaderIdentityList (xreadLeaderIdentityList); +CREATE INDEX OKR_WORKBASEINFO_readLeaderIdentityList_join ON OKR_WORKBASEINFO_readLeaderIdentityList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_readLeaderNameList_element ON OKR_WORKBASEINFO_readLeaderNameList (xreadLeaderNameList); +CREATE INDEX OKR_WORKBASEINFO_readLeaderNameList_join ON OKR_WORKBASEINFO_readLeaderNameList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_readLeaderTopUnitNameList_element ON OKR_WORKBASEINFO_readLeaderTopUnitNameList (xreadLeaderTopUnitNameList); +CREATE INDEX OKR_WORKBASEINFO_readLeaderTopUnitNameList_join ON OKR_WORKBASEINFO_readLeaderTopUnitNameList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKBASEINFO_readLeaderUnitNameList_element ON OKR_WORKBASEINFO_readLeaderUnitNameList (xreadLeaderUnitNameList); +CREATE INDEX OKR_WORKBASEINFO_readLeaderUnitNameList_join ON OKR_WORKBASEINFO_readLeaderUnitNameList (OKRWORKBASEINFO_XID); +CREATE INDEX OKR_WORKCHAT_workId ON OKR_WORKCHAT (xworkId); +CREATE INDEX OKR_WORKDETAILINFO_centerId ON OKR_WORKDETAILINFO (xcenterId); +CREATE INDEX OKR_WORKDYNAMICS_centerId ON OKR_WORKDYNAMICS (xcenterId); +CREATE INDEX OKR_WORKDYNAMICS_dynamicObjectId ON OKR_WORKDYNAMICS (xdynamicObjectId); +CREATE INDEX OKR_WORKDYNAMICS_dynamicObjectType ON OKR_WORKDYNAMICS (xdynamicObjectType); +CREATE INDEX OKR_WORKDYNAMICS_operatorName ON OKR_WORKDYNAMICS (xoperatorName); +CREATE INDEX OKR_WORKDYNAMICS_status ON OKR_WORKDYNAMICS (xstatus); +CREATE INDEX OKR_WORKDYNAMICS_targetIdentity ON OKR_WORKDYNAMICS (xtargetIdentity); +CREATE INDEX OKR_WORKDYNAMICS_workId ON OKR_WORKDYNAMICS (xworkId); +CREATE INDEX OKR_WORK_AUTHORIZE_RECORD_status ON OKR_WORK_AUTHORIZE_RECORD (xstatus); +CREATE INDEX OKR_WORK_AUTHORIZE_RECORD_workId ON OKR_WORK_AUTHORIZE_RECORD (xworkId); +CREATE INDEX OKR_WORK_PERSON_authorizeRecordId ON OKR_WORK_PERSON (xauthorizeRecordId); +CREATE INDEX OKR_WORK_PERSON_centerId ON OKR_WORK_PERSON (xcenterId); +CREATE INDEX OKR_WORK_PERSON_deployMonth ON OKR_WORK_PERSON (xdeployMonth); +CREATE INDEX OKR_WORK_PERSON_deployYear ON OKR_WORK_PERSON (xdeployYear); +CREATE INDEX OKR_WORK_PERSON_employeeIdentity ON OKR_WORK_PERSON (xemployeeIdentity); +CREATE INDEX OKR_WORK_PERSON_employeeName ON OKR_WORK_PERSON (xemployeeName); +CREATE INDEX OKR_WORK_PERSON_isCompleted ON OKR_WORK_PERSON (xisCompleted); +CREATE INDEX OKR_WORK_PERSON_isDelegateTarget ON OKR_WORK_PERSON (xisDelegateTarget); +CREATE INDEX OKR_WORK_PERSON_isOverTime ON OKR_WORK_PERSON (xisOverTime); +CREATE INDEX OKR_WORK_PERSON_parentWorkId ON OKR_WORK_PERSON (xparentWorkId); +CREATE INDEX OKR_WORK_PERSON_processIdentity ON OKR_WORK_PERSON (xprocessIdentity); +CREATE INDEX OKR_WORK_PERSON_status ON OKR_WORK_PERSON (xstatus); +CREATE INDEX OKR_WORK_PERSON_topUnitName ON OKR_WORK_PERSON (xtopUnitName); +CREATE INDEX OKR_WORK_PERSON_unitName ON OKR_WORK_PERSON (xunitName); +CREATE INDEX OKR_WORK_PERSON_workDateTimeType ON OKR_WORK_PERSON (xworkDateTimeType); +CREATE INDEX OKR_WORK_PERSON_workId ON OKR_WORK_PERSON (xworkId); +CREATE INDEX OKR_WORK_PERSON_workLevel ON OKR_WORK_PERSON (xworkLevel); +CREATE INDEX OKR_WORK_PERSON_workProcessStatus ON OKR_WORK_PERSON (xworkProcessStatus); +CREATE INDEX OKR_WORK_PERSON_workType ON OKR_WORK_PERSON (xworkType); +CREATE INDEX OKR_WORK_REPORTBASEINFO_creatorIdentity ON OKR_WORK_REPORTBASEINFO (xcreatorIdentity); +CREATE INDEX OKR_WORK_REPORTBASEINFO_creatorName ON OKR_WORK_REPORTBASEINFO (xcreatorName); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessLevel ON OKR_WORK_REPORTBASEINFO (xcurrentProcessLevel); +CREATE INDEX OKR_WORK_REPORTBASEINFO_reporterIdentity ON OKR_WORK_REPORTBASEINFO (xreporterIdentity); +CREATE INDEX OKR_WORK_REPORTBASEINFO_reporterName ON OKR_WORK_REPORTBASEINFO (xreporterName); +CREATE INDEX OKR_WORK_REPORTBASEINFO_workId ON OKR_WORK_REPORTBASEINFO (xworkId); +CREATE INDEX OKR_WORK_REPORTBASEINFO_attachmentList_element ON OKR_WORK_REPORTBASEINFO_attachmentList (xattachmentList); +CREATE INDEX OKR_WORK_REPORTBASEINFO_attachmentList_join ON OKR_WORK_REPORTBASEINFO_attachmentList (OKRWORKREPORTBASEINFO_XID); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessorIdentityList_element ON OKR_WORK_REPORTBASEINFO_currentProcessorIdentityList (xcurrentProcessorIdentityList); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessorIdentityList_join ON OKR_WORK_REPORTBASEINFO_currentProcessorIdentityList (OKRWORKREPORTBASEINFO_XID); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessorNameList_element ON OKR_WORK_REPORTBASEINFO_currentProcessorNameList (xcurrentProcessorNameList); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessorNameList_join ON OKR_WORK_REPORTBASEINFO_currentProcessorNameList (OKRWORKREPORTBASEINFO_XID); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessorTopUnitNameList_element ON OKR_WORK_REPORTBASEINFO_currentProcessorTopUnitNameList (xcurrentProcessorTopUnitNameList); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessorTopUnitNameList_join ON OKR_WORK_REPORTBASEINFO_currentProcessorTopUnitNameList (OKRWORKREPORTBASEINFO_XID); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessorUnitNameList_element ON OKR_WORK_REPORTBASEINFO_currentProcessorUnitNameList (xcurrentProcessorUnitNameList); +CREATE INDEX OKR_WORK_REPORTBASEINFO_currentProcessorUnitNameList_join ON OKR_WORK_REPORTBASEINFO_currentProcessorUnitNameList (OKRWORKREPORTBASEINFO_XID); +CREATE INDEX OKR_WORK_REPORTBASEINFO_readLeadersIdentityList_element ON OKR_WORK_REPORTBASEINFO_readLeadersIdentityList (xreadLeadersIdentityList); +CREATE INDEX OKR_WORK_REPORTBASEINFO_readLeadersIdentityList_join ON OKR_WORK_REPORTBASEINFO_readLeadersIdentityList (OKRWORKREPORTBASEINFO_XID); +CREATE INDEX OKR_WORK_REPORTBASEINFO_readLeadersNameList_element ON OKR_WORK_REPORTBASEINFO_readLeadersNameList (xreadLeadersNameList); +CREATE INDEX OKR_WORK_REPORTBASEINFO_readLeadersNameList_join ON OKR_WORK_REPORTBASEINFO_readLeadersNameList (OKRWORKREPORTBASEINFO_XID); +CREATE INDEX OKR_WORK_REPORT_PERSONLINK_processorIdentity ON OKR_WORK_REPORT_PERSONLINK (xprocessorIdentity); +CREATE INDEX OKR_WORK_REPORT_PERSONLINK_workId ON OKR_WORK_REPORT_PERSONLINK (xworkId); +CREATE INDEX OKR_WORK_REPORT_PERSONLINK_workReportId ON OKR_WORK_REPORT_PERSONLINK (xworkReportId); +CREATE INDEX OKR_WORK_REPORT_PROCESSLOG_centerId ON OKR_WORK_REPORT_PROCESSLOG (xcenterId); +CREATE INDEX OKR_WORK_REPORT_PROCESSLOG_processorIdentity ON OKR_WORK_REPORT_PROCESSLOG (xprocessorIdentity); +CREATE INDEX OKR_WORK_REPORT_PROCESSLOG_workId ON OKR_WORK_REPORT_PROCESSLOG (xworkId); +CREATE INDEX OKR_WORK_REPORT_PROCESSLOG_workReportId ON OKR_WORK_REPORT_PROCESSLOG (xworkReportId); +CREATE INDEX ORG_A_EMPOWER_application ON ORG_A_EMPOWER (xapplication); +CREATE INDEX ORG_A_EMPOWER_applicationAlias ON ORG_A_EMPOWER (xapplicationAlias); +CREATE INDEX ORG_A_EMPOWER_applicationName ON ORG_A_EMPOWER (xapplicationName); +CREATE INDEX ORG_A_EMPOWER_completedTime ON ORG_A_EMPOWER (xcompletedTime); +CREATE INDEX ORG_A_EMPOWER_enable ON ORG_A_EMPOWER (xenable); +CREATE INDEX ORG_A_EMPOWER_fromIdentity ON ORG_A_EMPOWER (xfromIdentity); +CREATE INDEX ORG_A_EMPOWER_fromPerson ON ORG_A_EMPOWER (xfromPerson); +CREATE INDEX ORG_A_EMPOWER_process ON ORG_A_EMPOWER (xprocess); +CREATE INDEX ORG_A_EMPOWER_processAlias ON ORG_A_EMPOWER (xprocessAlias); +CREATE INDEX ORG_A_EMPOWER_processName ON ORG_A_EMPOWER (xprocessName); +CREATE INDEX ORG_A_EMPOWER_startTime ON ORG_A_EMPOWER (xstartTime); +CREATE INDEX ORG_A_EMPOWER_toIdentity ON ORG_A_EMPOWER (xtoIdentity); +CREATE INDEX ORG_A_EMPOWER_toPerson ON ORG_A_EMPOWER (xtoPerson); +CREATE INDEX ORG_A_EMPOWER_type ON ORG_A_EMPOWER (xtype); +CREATE INDEX ORG_A_EMPOWERLOG_activity ON ORG_A_EMPOWERLOG (xactivity); +CREATE INDEX ORG_A_EMPOWERLOG_activityAlias ON ORG_A_EMPOWERLOG (xactivityAlias); +CREATE INDEX ORG_A_EMPOWERLOG_activityName ON ORG_A_EMPOWERLOG (xactivityName); +CREATE INDEX ORG_A_EMPOWERLOG_application ON ORG_A_EMPOWERLOG (xapplication); +CREATE INDEX ORG_A_EMPOWERLOG_applicationAlias ON ORG_A_EMPOWERLOG (xapplicationAlias); +CREATE INDEX ORG_A_EMPOWERLOG_applicationName ON ORG_A_EMPOWERLOG (xapplicationName); +CREATE INDEX ORG_A_EMPOWERLOG_empowerTime ON ORG_A_EMPOWERLOG (xempowerTime); +CREATE INDEX ORG_A_EMPOWERLOG_fromIdentity ON ORG_A_EMPOWERLOG (xfromIdentity); +CREATE INDEX ORG_A_EMPOWERLOG_fromPerson ON ORG_A_EMPOWERLOG (xfromPerson); +CREATE INDEX ORG_A_EMPOWERLOG_job ON ORG_A_EMPOWERLOG (xjob); +CREATE INDEX ORG_A_EMPOWERLOG_process ON ORG_A_EMPOWERLOG (xprocess); +CREATE INDEX ORG_A_EMPOWERLOG_processAlias ON ORG_A_EMPOWERLOG (xprocessAlias); +CREATE INDEX ORG_A_EMPOWERLOG_processName ON ORG_A_EMPOWERLOG (xprocessName); +CREATE INDEX ORG_A_EMPOWERLOG_title ON ORG_A_EMPOWERLOG (xtitle); +CREATE INDEX ORG_A_EMPOWERLOG_toIdentity ON ORG_A_EMPOWERLOG (xtoIdentity); +CREATE INDEX ORG_A_EMPOWERLOG_toPerson ON ORG_A_EMPOWERLOG (xtoPerson); +CREATE INDEX ORG_A_EMPOWERLOG_work ON ORG_A_EMPOWERLOG (xwork); +CREATE INDEX ORG_BIND_meta ON ORG_BIND (xmeta); +CREATE INDEX ORG_BIND_name ON ORG_BIND (xname); +CREATE INDEX ORG_CUSTOM_name ON ORG_CUSTOM (xname); +CREATE INDEX ORG_CUSTOM_person ON ORG_CUSTOM (xperson); +CREATE INDEX ORG_DEFINTION_name ON ORG_DEFINTION (xname); +CREATE INDEX ORG_GROUP_description ON ORG_GROUP (xdescription); +CREATE INDEX ORG_GROUP_distinguishedName ON ORG_GROUP (xdistinguishedName); +CREATE INDEX ORG_GROUP_name ON ORG_GROUP (xname); +CREATE INDEX ORG_GROUP_orderNumber ON ORG_GROUP (xorderNumber); +CREATE INDEX ORG_GROUP_pinyin ON ORG_GROUP (xpinyin); +CREATE INDEX ORG_GROUP_pinyinInitial ON ORG_GROUP (xpinyinInitial); +CREATE INDEX ORG_GROUP_unique ON ORG_GROUP (xunique); +CREATE INDEX ORG_GROUP_groupList_element ON ORG_GROUP_groupList (xgroupList); +CREATE INDEX ORG_GROUP_groupList_join ON ORG_GROUP_groupList (GROUP_XID); +CREATE INDEX ORG_GROUP_personList_element ON ORG_GROUP_personList (xpersonList); +CREATE INDEX ORG_GROUP_personList_join ON ORG_GROUP_personList (GROUP_XID); +CREATE INDEX ORG_GROUP_unitList_element ON ORG_GROUP_unitList (xunitList); +CREATE INDEX ORG_GROUP_unitList_join ON ORG_GROUP_unitList (GROUP_XID); +CREATE INDEX ORG_IDENTITY_description ON ORG_IDENTITY (xdescription); +CREATE INDEX ORG_IDENTITY_distinguishedName ON ORG_IDENTITY (xdistinguishedName); +CREATE INDEX ORG_IDENTITY_major ON ORG_IDENTITY (xmajor); +CREATE INDEX ORG_IDENTITY_name ON ORG_IDENTITY (xname); +CREATE INDEX ORG_IDENTITY_orderNumber ON ORG_IDENTITY (xorderNumber); +CREATE INDEX ORG_IDENTITY_person ON ORG_IDENTITY (xperson); +CREATE INDEX ORG_IDENTITY_pinyin ON ORG_IDENTITY (xpinyin); +CREATE INDEX ORG_IDENTITY_pinyinInitial ON ORG_IDENTITY (xpinyinInitial); +CREATE INDEX ORG_IDENTITY_unique ON ORG_IDENTITY (xunique); +CREATE INDEX ORG_IDENTITY_unit ON ORG_IDENTITY (xunit); +CREATE INDEX ORG_IDENTITY_unitLevel ON ORG_IDENTITY (xunitLevel); +CREATE INDEX ORG_IDENTITY_unitName ON ORG_IDENTITY (xunitName); +CREATE INDEX ORG_OAUTHCODE_clientId ON ORG_OAUTHCODE (xclientId); +CREATE INDEX ORG_OAUTHCODE_code ON ORG_OAUTHCODE (xcode); +CREATE INDEX ORG_OAUTHCODE_codeUsed ON ORG_OAUTHCODE (xcodeUsed); +CREATE INDEX ORG_OAUTHCODE_person ON ORG_OAUTHCODE (xperson); +CREATE INDEX ORG_OAUTHCODE_scope ON ORG_OAUTHCODE (xscope); +CREATE INDEX ORG_PERMISSIONSETTING_explain ON ORG_PERMISSIONSETTING (xexplain); +CREATE INDEX ORG_PERMISSIONSETTING_extend1 ON ORG_PERMISSIONSETTING (xextend1); +CREATE INDEX ORG_PERMISSIONSETTING_extend2 ON ORG_PERMISSIONSETTING (xextend2); +CREATE INDEX ORG_PERMISSIONSETTING_extend3 ON ORG_PERMISSIONSETTING (xextend3); +CREATE INDEX ORG_PERMISSIONSETTING_status ON ORG_PERMISSIONSETTING (xstatus); +CREATE INDEX ORG_PERMISSIONSETTING_excludePerson_element ON ORG_PERMISSIONSETTING_excludePerson (xexcludePerson); +CREATE INDEX ORG_PERMISSIONSETTING_excludePerson_join ON ORG_PERMISSIONSETTING_excludePerson (PERMISSIONSETTING_XID); +CREATE INDEX ORG_PERMISSIONSETTING_excludeUnit_element ON ORG_PERMISSIONSETTING_excludeUnit (xexcludeUnit); +CREATE INDEX ORG_PERMISSIONSETTING_excludeUnit_join ON ORG_PERMISSIONSETTING_excludeUnit (PERMISSIONSETTING_XID); +CREATE INDEX ORG_PERMISSIONSETTING_limitQueryAll_element ON ORG_PERMISSIONSETTING_limitQueryAll (xlimitQueryAll); +CREATE INDEX ORG_PERMISSIONSETTING_limitQueryAll_join ON ORG_PERMISSIONSETTING_limitQueryAll (PERMISSIONSETTING_XID); +CREATE INDEX ORG_PERMISSIONSETTING_limitQueryOuter_element ON ORG_PERMISSIONSETTING_limitQueryOuter (xlimitQueryOuter); +CREATE INDEX ORG_PERMISSIONSETTING_limitQueryOuter_join ON ORG_PERMISSIONSETTING_limitQueryOuter (PERMISSIONSETTING_XID); +CREATE INDEX ORG_PERSON_birthday ON ORG_PERSON (xbirthday); +CREATE INDEX ORG_PERSON_description ON ORG_PERSON (xdescription); +CREATE INDEX ORG_PERSON_dingdingHash ON ORG_PERSON (xdingdingHash); +CREATE INDEX ORG_PERSON_dingdingId ON ORG_PERSON (xdingdingId); +CREATE INDEX ORG_PERSON_distinguishedName ON ORG_PERSON (xdistinguishedName); +CREATE INDEX ORG_PERSON_employee ON ORG_PERSON (xemployee); +CREATE INDEX ORG_PERSON_genderType ON ORG_PERSON (xgenderType); +CREATE INDEX ORG_PERSON_lastLoginAddress ON ORG_PERSON (xlastLoginAddress); +CREATE INDEX ORG_PERSON_lastLoginClient ON ORG_PERSON (xlastLoginClient); +CREATE INDEX ORG_PERSON_lastLoginTime ON ORG_PERSON (xlastLoginTime); +CREATE INDEX ORG_PERSON_mail ON ORG_PERSON (xmail); +CREATE INDEX ORG_PERSON_mobile ON ORG_PERSON (xmobile); +CREATE INDEX ORG_PERSON_name ON ORG_PERSON (xname); +CREATE INDEX ORG_PERSON_open1Id ON ORG_PERSON (xopen1Id); +CREATE INDEX ORG_PERSON_open2Id ON ORG_PERSON (xopen2Id); +CREATE INDEX ORG_PERSON_open3Id ON ORG_PERSON (xopen3Id); +CREATE INDEX ORG_PERSON_open4Id ON ORG_PERSON (xopen4Id); +CREATE INDEX ORG_PERSON_open5Id ON ORG_PERSON (xopen5Id); +CREATE INDEX ORG_PERSON_orderNumber ON ORG_PERSON (xorderNumber); +CREATE INDEX ORG_PERSON_pinyin ON ORG_PERSON (xpinyin); +CREATE INDEX ORG_PERSON_pinyinInitial ON ORG_PERSON (xpinyinInitial); +CREATE INDEX ORG_PERSON_qiyeweixinHash ON ORG_PERSON (xqiyeweixinHash); +CREATE INDEX ORG_PERSON_qiyeweixinId ON ORG_PERSON (xqiyeweixinId); +CREATE INDEX ORG_PERSON_qq ON ORG_PERSON (xqq); +CREATE INDEX ORG_PERSON_superior ON ORG_PERSON (xsuperior); +CREATE INDEX ORG_PERSON_unique ON ORG_PERSON (xunique); +CREATE INDEX ORG_PERSON_weixin ON ORG_PERSON (xweixin); +CREATE INDEX ORG_PERSON_zhengwuDingdingHash ON ORG_PERSON (xzhengwuDingdingHash); +CREATE INDEX ORG_PERSON_zhengwuDingdingId ON ORG_PERSON (xzhengwuDingdingId); +CREATE INDEX ORG_PERSONATTRIBUTE_description ON ORG_PERSONATTRIBUTE (xdescription); +CREATE INDEX ORG_PERSONATTRIBUTE_distinguishedName ON ORG_PERSONATTRIBUTE (xdistinguishedName); +CREATE INDEX ORG_PERSONATTRIBUTE_name ON ORG_PERSONATTRIBUTE (xname); +CREATE INDEX ORG_PERSONATTRIBUTE_orderNumber ON ORG_PERSONATTRIBUTE (xorderNumber); +CREATE INDEX ORG_PERSONATTRIBUTE_person ON ORG_PERSONATTRIBUTE (xperson); +CREATE INDEX ORG_PERSONATTRIBUTE_pinyin ON ORG_PERSONATTRIBUTE (xpinyin); +CREATE INDEX ORG_PERSONATTRIBUTE_pinyinInitial ON ORG_PERSONATTRIBUTE (xpinyinInitial); +CREATE INDEX ORG_PERSONATTRIBUTE_unique ON ORG_PERSONATTRIBUTE (xunique); +CREATE INDEX ORG_PERSONATTRIBUTE_attributeList_element ON ORG_PERSONATTRIBUTE_attributeList (xattributeList); +CREATE INDEX ORG_PERSONATTRIBUTE_attributeList_join ON ORG_PERSONATTRIBUTE_attributeList (PERSONATTRIBUTE_XID); +CREATE INDEX ORG_PERSONCARD_address ON ORG_PERSONCARD (xaddress); +CREATE INDEX ORG_PERSONCARD_description ON ORG_PERSONCARD (xdescription); +CREATE INDEX ORG_PERSONCARD_distinguishedName ON ORG_PERSONCARD (xdistinguishedName); +CREATE INDEX ORG_PERSONCARD_extend1 ON ORG_PERSONCARD (xextend1); +CREATE INDEX ORG_PERSONCARD_extend2 ON ORG_PERSONCARD (xextend2); +CREATE INDEX ORG_PERSONCARD_extend3 ON ORG_PERSONCARD (xextend3); +CREATE INDEX ORG_PERSONCARD_genderType ON ORG_PERSONCARD (xgenderType); +CREATE INDEX ORG_PERSONCARD_groupType ON ORG_PERSONCARD (xgroupType); +CREATE INDEX ORG_PERSONCARD_inputTime ON ORG_PERSONCARD (xinputTime); +CREATE INDEX ORG_PERSONCARD_mobile ON ORG_PERSONCARD (xmobile); +CREATE INDEX ORG_PERSONCARD_name ON ORG_PERSONCARD (xname); +CREATE INDEX ORG_PERSONCARD_orderNumber ON ORG_PERSONCARD (xorderNumber); +CREATE INDEX ORG_PERSONCARD_pinyin ON ORG_PERSONCARD (xpinyin); +CREATE INDEX ORG_PERSONCARD_pinyinInitial ON ORG_PERSONCARD (xpinyinInitial); +CREATE INDEX ORG_PERSONCARD_status ON ORG_PERSONCARD (xstatus); +CREATE INDEX ORG_PERSON_controllerList_element ON ORG_PERSON_controllerList (xcontrollerList); +CREATE INDEX ORG_PERSON_controllerList_join ON ORG_PERSON_controllerList (PERSON_XID); +CREATE INDEX ORG_PERSON_topUnitList_element ON ORG_PERSON_topUnitList (xtopUnitList); +CREATE INDEX ORG_PERSON_topUnitList_join ON ORG_PERSON_topUnitList (PERSON_XID); +CREATE INDEX ORG_ROLE_description ON ORG_ROLE (xdescription); +CREATE INDEX ORG_ROLE_distinguishedName ON ORG_ROLE (xdistinguishedName); +CREATE INDEX ORG_ROLE_name ON ORG_ROLE (xname); +CREATE INDEX ORG_ROLE_orderNumber ON ORG_ROLE (xorderNumber); +CREATE INDEX ORG_ROLE_pinyin ON ORG_ROLE (xpinyin); +CREATE INDEX ORG_ROLE_pinyinInitial ON ORG_ROLE (xpinyinInitial); +CREATE INDEX ORG_ROLE_unique ON ORG_ROLE (xunique); +CREATE INDEX ORG_ROLE_groupList_element ON ORG_ROLE_groupList (xgroupList); +CREATE INDEX ORG_ROLE_groupList_join ON ORG_ROLE_groupList (ROLE_XID); +CREATE INDEX ORG_ROLE_personList_element ON ORG_ROLE_personList (xpersonList); +CREATE INDEX ORG_ROLE_personList_join ON ORG_ROLE_personList (ROLE_XID); +CREATE INDEX ORG_UNIT_description ON ORG_UNIT (xdescription); +CREATE INDEX ORG_UNIT_dingdingHash ON ORG_UNIT (xdingdingHash); +CREATE INDEX ORG_UNIT_dingdingId ON ORG_UNIT (xdingdingId); +CREATE INDEX ORG_UNIT_distinguishedName ON ORG_UNIT (xdistinguishedName); +CREATE INDEX ORG_UNIT_level ON ORG_UNIT (xlevel); +CREATE INDEX ORG_UNIT_name ON ORG_UNIT (xname); +CREATE INDEX ORG_UNIT_orderNumber ON ORG_UNIT (xorderNumber); +CREATE INDEX ORG_UNIT_pinyin ON ORG_UNIT (xpinyin); +CREATE INDEX ORG_UNIT_pinyinInitial ON ORG_UNIT (xpinyinInitial); +CREATE INDEX ORG_UNIT_qiyeweixinHash ON ORG_UNIT (xqiyeweixinHash); +CREATE INDEX ORG_UNIT_qiyeweixinId ON ORG_UNIT (xqiyeweixinId); +CREATE INDEX ORG_UNIT_superior ON ORG_UNIT (xsuperior); +CREATE INDEX ORG_UNIT_unique ON ORG_UNIT (xunique); +CREATE INDEX ORG_UNIT_zhengwuDingdingHash ON ORG_UNIT (xzhengwuDingdingHash); +CREATE INDEX ORG_UNIT_zhengwuDingdingId ON ORG_UNIT (xzhengwuDingdingId); +CREATE INDEX ORG_UNITATTRIBUTE_description ON ORG_UNITATTRIBUTE (xdescription); +CREATE INDEX ORG_UNITATTRIBUTE_distinguishedName ON ORG_UNITATTRIBUTE (xdistinguishedName); +CREATE INDEX ORG_UNITATTRIBUTE_name ON ORG_UNITATTRIBUTE (xname); +CREATE INDEX ORG_UNITATTRIBUTE_orderNumber ON ORG_UNITATTRIBUTE (xorderNumber); +CREATE INDEX ORG_UNITATTRIBUTE_pinyin ON ORG_UNITATTRIBUTE (xpinyin); +CREATE INDEX ORG_UNITATTRIBUTE_pinyinInitial ON ORG_UNITATTRIBUTE (xpinyinInitial); +CREATE INDEX ORG_UNITATTRIBUTE_unique ON ORG_UNITATTRIBUTE (xunique); +CREATE INDEX ORG_UNITATTRIBUTE_unit ON ORG_UNITATTRIBUTE (xunit); +CREATE INDEX ORG_UNITATTRIBUTE_attributeList_element ON ORG_UNITATTRIBUTE_attributeList (xattributeList); +CREATE INDEX ORG_UNITATTRIBUTE_attributeList_join ON ORG_UNITATTRIBUTE_attributeList (UNITATTRIBUTE_XID); +CREATE INDEX ORG_UNITDUTY_description ON ORG_UNITDUTY (xdescription); +CREATE INDEX ORG_UNITDUTY_distinguishedName ON ORG_UNITDUTY (xdistinguishedName); +CREATE INDEX ORG_UNITDUTY_name ON ORG_UNITDUTY (xname); +CREATE INDEX ORG_UNITDUTY_orderNumber ON ORG_UNITDUTY (xorderNumber); +CREATE INDEX ORG_UNITDUTY_pinyin ON ORG_UNITDUTY (xpinyin); +CREATE INDEX ORG_UNITDUTY_pinyinInitial ON ORG_UNITDUTY (xpinyinInitial); +CREATE INDEX ORG_UNITDUTY_unique ON ORG_UNITDUTY (xunique); +CREATE INDEX ORG_UNITDUTY_unit ON ORG_UNITDUTY (xunit); +CREATE INDEX ORG_UNITDUTY_identityList_element ON ORG_UNITDUTY_identityList (xidentityList); +CREATE INDEX ORG_UNITDUTY_identityList_join ON ORG_UNITDUTY_identityList (UNITDUTY_XID); +CREATE INDEX ORG_UNITcontrollerList_element ON ORG_UNIT_controllerList (xcontrollerList); +CREATE INDEX ORG_UNIT_controllerList_join ON ORG_UNIT_controllerList (UNIT_XID); +CREATE INDEX ORG_UNIT_inheritedControllerList_element ON ORG_UNIT_inheritedControllerList (xinheritedControllerList); +CREATE INDEX ORG_UNIT_inheritedControllerList_join ON ORG_UNIT_inheritedControllerList (UNIT_XID); +CREATE INDEX ORG_UNIT_typeList_element ON ORG_UNIT_typeList (xtypeList); +CREATE INDEX ORG_UNIT_typeList_join ON ORG_UNIT_typeList (UNIT_XID); +CREATE INDEX PP_C_ATTACHMENT_activity ON PP_C_ATTACHMENT (xactivity); +CREATE INDEX PP_C_ATTACHMENT_activityName ON PP_C_ATTACHMENT (xactivityName); +CREATE INDEX PP_C_ATTACHMENT_activityToken ON PP_C_ATTACHMENT (xactivityToken); +CREATE INDEX PP_C_ATTACHMENT_activityType ON PP_C_ATTACHMENT (xactivityType); +CREATE INDEX PP_C_ATTACHMENT_application ON PP_C_ATTACHMENT (xapplication); +CREATE INDEX PP_C_ATTACHMENT_completed ON PP_C_ATTACHMENT (xcompleted); +CREATE INDEX PP_C_ATTACHMENT_deepPath ON PP_C_ATTACHMENT (xdeepPath); +CREATE INDEX PP_C_ATTACHMENT_job ON PP_C_ATTACHMENT (xjob); +CREATE INDEX PP_C_ATTACHMENT_lastUpdatePerson ON PP_C_ATTACHMENT (xlastUpdatePerson); +CREATE INDEX PP_C_ATTACHMENT_lastUpdateTime ON PP_C_ATTACHMENT (xlastUpdateTime); +CREATE INDEX PP_C_ATTACHMENT_length ON PP_C_ATTACHMENT (xlength); +CREATE INDEX PP_C_ATTACHMENT_name ON PP_C_ATTACHMENT (xname); +CREATE INDEX PP_C_ATTACHMENT_orderNumber ON PP_C_ATTACHMENT (xorderNumber); +CREATE INDEX PP_C_ATTACHMENT_person ON PP_C_ATTACHMENT (xperson); +CREATE INDEX PP_C_ATTACHMENT_process ON PP_C_ATTACHMENT (xprocess); +CREATE INDEX PP_C_ATTACHMENT_storage ON PP_C_ATTACHMENT (xstorage); +CREATE INDEX PP_C_ATTACHMENT_work ON PP_C_ATTACHMENT (xwork); +CREATE INDEX PP_C_ATTACHMENT_workCompleted ON PP_C_ATTACHMENT (xworkCompleted); +CREATE INDEX PP_C_ATTACHMENT_workCreateTime ON PP_C_ATTACHMENT (xworkCreateTime); +CREATE INDEX PP_C_ATTACHMENT_controllerIdentityList_element ON PP_C_ATTACHMENT_controllerIdentityList (xcontrollerIdentityList); +CREATE INDEX PP_C_ATTACHMENT_controllerIdentityList_join ON PP_C_ATTACHMENT_controllerIdentityList (ATTACHMENT_XID); +CREATE INDEX PP_C_ATTACHMENT_controllerUnitList_element ON PP_C_ATTACHMENT_controllerUnitList (xcontrollerUnitList); +CREATE INDEX PP_C_ATTACHMENT_controllerUnitList_join ON PP_C_ATTACHMENT_controllerUnitList (ATTACHMENT_XID); +CREATE INDEX PP_C_ATTACHMENT_divisionList_element ON PP_C_ATTACHMENT_divisionList (xdivisionList); +CREATE INDEX PP_C_ATTACHMENT_divisionList_join ON PP_C_ATTACHMENT_divisionList (ATTACHMENT_XID); +CREATE INDEX PP_C_ATTACHMENT_editIdentityList_element ON PP_C_ATTACHMENT_editIdentityList (xeditIdentityList); +CREATE INDEX PP_C_ATTACHMENT_editIdentityList_join ON PP_C_ATTACHMENT_editIdentityList (ATTACHMENT_XID); +CREATE INDEX PP_C_ATTACHMENT_editUnitList_element ON PP_C_ATTACHMENT_editUnitList (xeditUnitList); +CREATE INDEX PP_C_ATTACHMENT_editUnitList_join ON PP_C_ATTACHMENT_editUnitList (ATTACHMENT_XID); +CREATE INDEX PP_C_ATTACHMENT_readIdentityList_element ON PP_C_ATTACHMENT_readIdentityList (xreadIdentityList); +CREATE INDEX PP_C_ATTACHMENT_readIdentityList_join ON PP_C_ATTACHMENT_readIdentityList (ATTACHMENT_XID); +CREATE INDEX PP_C_ATTACHMENT_readUnitList_element ON PP_C_ATTACHMENT_readUnitList (xreadUnitList); +CREATE INDEX PP_C_ATTACHMENT_readUnitList_join ON PP_C_ATTACHMENT_readUnitList (ATTACHMENT_XID); +CREATE INDEX PP_C_DOCUMENTVERSION_activity ON PP_C_DOCUMENTVERSION (xactivity); +CREATE INDEX PP_C_DOCUMENTVERSION_activityAlias ON PP_C_DOCUMENTVERSION (xactivityAlias); +CREATE INDEX PP_C_DOCUMENTVERSION_activityDescription ON PP_C_DOCUMENTVERSION (xactivityDescription); +CREATE INDEX PP_C_DOCUMENTVERSION_activityName ON PP_C_DOCUMENTVERSION (xactivityName); +CREATE INDEX PP_C_DOCUMENTVERSION_activityToken ON PP_C_DOCUMENTVERSION (xactivityToken); +CREATE INDEX PP_C_DOCUMENTVERSION_activityType ON PP_C_DOCUMENTVERSION (xactivityType); +CREATE INDEX PP_C_DOCUMENTVERSION_application ON PP_C_DOCUMENTVERSION (xapplication); +CREATE INDEX PP_C_DOCUMENTVERSION_category ON PP_C_DOCUMENTVERSION (xcategory); +CREATE INDEX PP_C_DOCUMENTVERSION_completed ON PP_C_DOCUMENTVERSION (xcompleted); +CREATE INDEX PP_C_DOCUMENTVERSION_job ON PP_C_DOCUMENTVERSION (xjob); +CREATE INDEX PP_C_DOCUMENTVERSION_person ON PP_C_DOCUMENTVERSION (xperson); +CREATE INDEX PP_C_DOCUMENTVERSION_process ON PP_C_DOCUMENTVERSION (xprocess); +CREATE INDEX PP_C_DRAFT_application ON PP_C_DRAFT (xapplication); +CREATE INDEX PP_C_DRAFT_applicationAlias ON PP_C_DRAFT (xapplicationAlias); +CREATE INDEX PP_C_DRAFT_applicationName ON PP_C_DRAFT (xapplicationName); +CREATE INDEX PP_C_DRAFT_identity ON PP_C_DRAFT (xidentity); +CREATE INDEX PP_C_DRAFT_person ON PP_C_DRAFT (xperson); +CREATE INDEX PP_C_DRAFT_process ON PP_C_DRAFT (xprocess); +CREATE INDEX PP_C_DRAFT_processAlias ON PP_C_DRAFT (xprocessAlias); +CREATE INDEX PP_C_DRAFT_processName ON PP_C_DRAFT (xprocessName); +CREATE INDEX PP_C_DRAFT_title ON PP_C_DRAFT (xtitle); +CREATE INDEX PP_C_DRAFT_unit ON PP_C_DRAFT (xunit); +CREATE INDEX PP_C_KEYLOCK_key ON PP_C_KEYLOCK (xkey); +CREATE INDEX PP_C_KEYLOCK_person ON PP_C_KEYLOCK (xperson); +CREATE INDEX PP_C_READ_activity ON PP_C_READ (xactivity); +CREATE INDEX PP_C_READ_activityAlias ON PP_C_READ (xactivityAlias); +CREATE INDEX PP_C_READ_activityDescription ON PP_C_READ (xactivityDescription); +CREATE INDEX PP_C_READ_activityName ON PP_C_READ (xactivityName); +CREATE INDEX PP_C_READ_activityToken ON PP_C_READ (xactivityToken); +CREATE INDEX PP_C_READ_activityType ON PP_C_READ (xactivityType); +CREATE INDEX PP_C_READ_application ON PP_C_READ (xapplication); +CREATE INDEX PP_C_READ_applicationAlias ON PP_C_READ (xapplicationAlias); +CREATE INDEX PP_C_READ_applicationName ON PP_C_READ (xapplicationName); +CREATE INDEX PP_C_READ_booleanValue01 ON PP_C_READ (xbooleanValue01); +CREATE INDEX PP_C_READ_booleanValue02 ON PP_C_READ (xbooleanValue02); +CREATE INDEX PP_C_READ_completed ON PP_C_READ (xcompleted); +CREATE INDEX PP_C_READ_creatorIdentity ON PP_C_READ (xcreatorIdentity); +CREATE INDEX PP_C_READ_creatorPerson ON PP_C_READ (xcreatorPerson); +CREATE INDEX PP_C_READ_creatorUnit ON PP_C_READ (xcreatorUnit); +CREATE INDEX PP_C_READ_currentActivityName ON PP_C_READ (xcurrentActivityName); +CREATE INDEX PP_C_READ_dateTimeValue01 ON PP_C_READ (xdateTimeValue01); +CREATE INDEX PP_C_READ_dateTimeValue02 ON PP_C_READ (xdateTimeValue02); +CREATE INDEX PP_C_READ_dateTimeValue03 ON PP_C_READ (xdateTimeValue03); +CREATE INDEX PP_C_READ_dateTimeValue04 ON PP_C_READ (xdateTimeValue04); +CREATE INDEX PP_C_READ_dateTimeValue05 ON PP_C_READ (xdateTimeValue05); +CREATE INDEX PP_C_READ_dateValue01 ON PP_C_READ (xdateValue01); +CREATE INDEX PP_C_READ_dateValue02 ON PP_C_READ (xdateValue02); +CREATE INDEX PP_C_READ_doubleValue01 ON PP_C_READ (xdoubleValue01); +CREATE INDEX PP_C_READ_doubleValue02 ON PP_C_READ (xdoubleValue02); +CREATE INDEX PP_C_READ_doubleValue03 ON PP_C_READ (xdoubleValue03); +CREATE INDEX PP_C_READ_doubleValue04 ON PP_C_READ (xdoubleValue04); +CREATE INDEX PP_C_READ_doubleValue05 ON PP_C_READ (xdoubleValue05); +CREATE INDEX PP_C_READ_identity ON PP_C_READ (xidentity); +CREATE INDEX PP_C_READ_job ON PP_C_READ (xjob); +CREATE INDEX PP_C_READ_longValue01 ON PP_C_READ (xlongValue01); +CREATE INDEX PP_C_READ_longValue02 ON PP_C_READ (xlongValue02); +CREATE INDEX PP_C_READ_longValue03 ON PP_C_READ (xlongValue03); +CREATE INDEX PP_C_READ_longValue04 ON PP_C_READ (xlongValue04); +CREATE INDEX PP_C_READ_longValue05 ON PP_C_READ (xlongValue05); +CREATE INDEX PP_C_READ_opinion ON PP_C_READ (xopinion); +CREATE INDEX PP_C_READ_person ON PP_C_READ (xperson); +CREATE INDEX PP_C_READ_process ON PP_C_READ (xprocess); +CREATE INDEX PP_C_READ_processAlias ON PP_C_READ (xprocessAlias); +CREATE INDEX PP_C_READ_processName ON PP_C_READ (xprocessName); +CREATE INDEX PP_C_READ_serial ON PP_C_READ (xserial); +CREATE INDEX PP_C_READ_startTime ON PP_C_READ (xstartTime); +CREATE INDEX PP_C_READ_startTimeMonth ON PP_C_READ (xstartTimeMonth); +CREATE INDEX PP_C_READ_stringValue01 ON PP_C_READ (xstringValue01); +CREATE INDEX PP_C_READ_stringValue02 ON PP_C_READ (xstringValue02); +CREATE INDEX PP_C_READ_stringValue03 ON PP_C_READ (xstringValue03); +CREATE INDEX PP_C_READ_stringValue04 ON PP_C_READ (xstringValue04); +CREATE INDEX PP_C_READ_stringValue05 ON PP_C_READ (xstringValue05); +CREATE INDEX PP_C_READ_stringValue06 ON PP_C_READ (xstringValue06); +CREATE INDEX PP_C_READ_stringValue07 ON PP_C_READ (xstringValue07); +CREATE INDEX PP_C_READ_stringValue08 ON PP_C_READ (xstringValue08); +CREATE INDEX PP_C_READ_stringValue09 ON PP_C_READ (xstringValue09); +CREATE INDEX PP_C_READ_stringValue10 ON PP_C_READ (xstringValue10); +CREATE INDEX PP_C_READ_timeValue01 ON PP_C_READ (xtimeValue01); +CREATE INDEX PP_C_READ_timeValue02 ON PP_C_READ (xtimeValue02); +CREATE INDEX PP_C_READ_title ON PP_C_READ (xtitle); +CREATE INDEX PP_C_READ_unit ON PP_C_READ (xunit); +CREATE INDEX PP_C_READ_viewed ON PP_C_READ (xviewed); +CREATE INDEX PP_C_READ_work ON PP_C_READ (xwork); +CREATE INDEX PP_C_READ_workCompleted ON PP_C_READ (xworkCompleted); +CREATE INDEX PP_C_READCOMPLETED_activity ON PP_C_READCOMPLETED (xactivity); +CREATE INDEX PP_C_READCOMPLETED_activityAlias ON PP_C_READCOMPLETED (xactivityAlias); +CREATE INDEX PP_C_READCOMPLETED_activityDescription ON PP_C_READCOMPLETED (xactivityDescription); +CREATE INDEX PP_C_READCOMPLETED_activityName ON PP_C_READCOMPLETED (xactivityName); +CREATE INDEX PP_C_READCOMPLETED_activityToken ON PP_C_READCOMPLETED (xactivityToken); +CREATE INDEX PP_C_READCOMPLETED_activityType ON PP_C_READCOMPLETED (xactivityType); +CREATE INDEX PP_C_READCOMPLETED_application ON PP_C_READCOMPLETED (xapplication); +CREATE INDEX PP_C_READCOMPLETED_applicationAlias ON PP_C_READCOMPLETED (xapplicationAlias); +CREATE INDEX PP_C_READCOMPLETED_applicationName ON PP_C_READCOMPLETED (xapplicationName); +CREATE INDEX PP_C_READCOMPLETED_booleanValue01 ON PP_C_READCOMPLETED (xbooleanValue01); +CREATE INDEX PP_C_READCOMPLETED_booleanValue02 ON PP_C_READCOMPLETED (xbooleanValue02); +CREATE INDEX PP_C_READCOMPLETED_completed ON PP_C_READCOMPLETED (xcompleted); +CREATE INDEX PP_C_READCOMPLETED_completedTime ON PP_C_READCOMPLETED (xcompletedTime); +CREATE INDEX PP_C_READCOMPLETED_completedTimeMonth ON PP_C_READCOMPLETED (xcompletedTimeMonth); +CREATE INDEX PP_C_READCOMPLETED_creatorIdentity ON PP_C_READCOMPLETED (xcreatorIdentity); +CREATE INDEX PP_C_READCOMPLETED_creatorPerson ON PP_C_READCOMPLETED (xcreatorPerson); +CREATE INDEX PP_C_READCOMPLETED_creatorUnit ON PP_C_READCOMPLETED (xcreatorUnit); +CREATE INDEX PP_C_READCOMPLETED_currentActivityName ON PP_C_READCOMPLETED (xcurrentActivityName); +CREATE INDEX PP_C_READCOMPLETED_dateTimeValue01 ON PP_C_READCOMPLETED (xdateTimeValue01); +CREATE INDEX PP_C_READCOMPLETED_dateTimeValue02 ON PP_C_READCOMPLETED (xdateTimeValue02); +CREATE INDEX PP_C_READCOMPLETED_dateTimeValue03 ON PP_C_READCOMPLETED (xdateTimeValue03); +CREATE INDEX PP_C_READCOMPLETED_dateTimeValue04 ON PP_C_READCOMPLETED (xdateTimeValue04); +CREATE INDEX PP_C_READCOMPLETED_dateTimeValue05 ON PP_C_READCOMPLETED (xdateTimeValue05); +CREATE INDEX PP_C_READCOMPLETED_dateValue01 ON PP_C_READCOMPLETED (xdateValue01); +CREATE INDEX PP_C_READCOMPLETED_dateValue02 ON PP_C_READCOMPLETED (xdateValue02); +CREATE INDEX PP_C_READCOMPLETED_doubleValue01 ON PP_C_READCOMPLETED (xdoubleValue01); +CREATE INDEX PP_C_READCOMPLETED_doubleValue02 ON PP_C_READCOMPLETED (xdoubleValue02); +CREATE INDEX PP_C_READCOMPLETED_doubleValue03 ON PP_C_READCOMPLETED (xdoubleValue03); +CREATE INDEX PP_C_READCOMPLETED_doubleValue04 ON PP_C_READCOMPLETED (xdoubleValue04); +CREATE INDEX PP_C_READCOMPLETED_doubleValue05 ON PP_C_READCOMPLETED (xdoubleValue05); +CREATE INDEX PP_C_READCOMPLETED_identity ON PP_C_READCOMPLETED (xidentity); +CREATE INDEX PP_C_READCOMPLETED_job ON PP_C_READCOMPLETED (xjob); +CREATE INDEX PP_C_READCOMPLETED_longValue01 ON PP_C_READCOMPLETED (xlongValue01); +CREATE INDEX PP_C_READCOMPLETED_longValue02 ON PP_C_READCOMPLETED (xlongValue02); +CREATE INDEX PP_C_READCOMPLETED_longValue03 ON PP_C_READCOMPLETED (xlongValue03); +CREATE INDEX PP_C_READCOMPLETED_longValue04 ON PP_C_READCOMPLETED (xlongValue04); +CREATE INDEX PP_C_READCOMPLETED_longValue05 ON PP_C_READCOMPLETED (xlongValue05); +CREATE INDEX PP_C_READCOMPLETED_opinion ON PP_C_READCOMPLETED (xopinion); +CREATE INDEX PP_C_READCOMPLETED_person ON PP_C_READCOMPLETED (xperson); +CREATE INDEX PP_C_READCOMPLETED_process ON PP_C_READCOMPLETED (xprocess); +CREATE INDEX PP_C_READCOMPLETED_processAlias ON PP_C_READCOMPLETED (xprocessAlias); +CREATE INDEX PP_C_READCOMPLETED_processName ON PP_C_READCOMPLETED (xprocessName); +CREATE INDEX PP_C_READCOMPLETED_read ON PP_C_READCOMPLETED (xread); +CREATE INDEX PP_C_READCOMPLETED_serial ON PP_C_READCOMPLETED (xserial); +CREATE INDEX PP_C_READCOMPLETED_startTime ON PP_C_READCOMPLETED (xstartTime); +CREATE INDEX PP_C_READCOMPLETED_startTimeMonth ON PP_C_READCOMPLETED (xstartTimeMonth); +CREATE INDEX PP_C_READCOMPLETED_stringValue01 ON PP_C_READCOMPLETED (xstringValue01); +CREATE INDEX PP_C_READCOMPLETED_stringValue02 ON PP_C_READCOMPLETED (xstringValue02); +CREATE INDEX PP_C_READCOMPLETED_stringValue03 ON PP_C_READCOMPLETED (xstringValue03); +CREATE INDEX PP_C_READCOMPLETED_stringValue04 ON PP_C_READCOMPLETED (xstringValue04); +CREATE INDEX PP_C_READCOMPLETED_stringValue05 ON PP_C_READCOMPLETED (xstringValue05); +CREATE INDEX PP_C_READCOMPLETED_stringValue06 ON PP_C_READCOMPLETED (xstringValue06); +CREATE INDEX PP_C_READCOMPLETED_stringValue07 ON PP_C_READCOMPLETED (xstringValue07); +CREATE INDEX PP_C_READCOMPLETED_stringValue08 ON PP_C_READCOMPLETED (xstringValue08); +CREATE INDEX PP_C_READCOMPLETED_stringValue09 ON PP_C_READCOMPLETED (xstringValue09); +CREATE INDEX PP_C_READCOMPLETED_stringValue10 ON PP_C_READCOMPLETED (xstringValue10); +CREATE INDEX PP_C_READCOMPLETED_timeValue01 ON PP_C_READCOMPLETED (xtimeValue01); +CREATE INDEX PP_C_READCOMPLETED_timeValue02 ON PP_C_READCOMPLETED (xtimeValue02); +CREATE INDEX PP_C_READCOMPLETED_title ON PP_C_READCOMPLETED (xtitle); +CREATE INDEX PP_C_READCOMPLETED_unit ON PP_C_READCOMPLETED (xunit); +CREATE INDEX PP_C_READCOMPLETED_work ON PP_C_READCOMPLETED (xwork); +CREATE INDEX PP_C_READCOMPLETED_workCompleted ON PP_C_READCOMPLETED (xworkCompleted); +CREATE INDEX PP_C_Record_application ON PP_C_Record (xapplication); +CREATE INDEX PP_C_Record_arrivedActivity ON PP_C_Record (xarrivedActivity); +CREATE INDEX PP_C_Record_arrivedActivityAlias ON PP_C_Record (xarrivedActivityAlias); +CREATE INDEX PP_C_Record_arrivedActivityName ON PP_C_Record (xarrivedActivityName); +CREATE INDEX PP_C_Record_arrivedActivityToken ON PP_C_Record (xarrivedActivityToken); +CREATE INDEX PP_C_Record_arrivedActivityType ON PP_C_Record (xarrivedActivityType); +CREATE INDEX PP_C_Record_completed ON PP_C_Record (xcompleted); +CREATE INDEX PP_C_Record_display ON PP_C_Record (xdisplay); +CREATE INDEX PP_C_Record_fromActivity ON PP_C_Record (xfromActivity); +CREATE INDEX PP_C_Record_fromActivityAlias ON PP_C_Record (xfromActivityAlias); +CREATE INDEX PP_C_Record_fromActivityName ON PP_C_Record (xfromActivityName); +CREATE INDEX PP_C_Record_fromActivityToken ON PP_C_Record (xfromActivityToken); +CREATE INDEX PP_C_Record_fromActivityType ON PP_C_Record (xfromActivityType); +CREATE INDEX PP_C_Record_identity ON PP_C_Record (xidentity); +CREATE INDEX PP_C_Record_job ON PP_C_Record (xjob); +CREATE INDEX PP_C_Record_order ON PP_C_Record (xorder); +CREATE INDEX PP_C_Record_person ON PP_C_Record (xperson); +CREATE INDEX PP_C_Record_process ON PP_C_Record (xprocess); +CREATE INDEX PP_C_Record_recordTime ON PP_C_Record (xrecordTime); +CREATE INDEX PP_C_Record_type ON PP_C_Record (xtype); +CREATE INDEX PP_C_Record_unit ON PP_C_Record (xunit); +CREATE INDEX PP_C_Record_work ON PP_C_Record (xwork); +CREATE INDEX PP_C_Record_workCompleted ON PP_C_Record (xworkCompleted); +CREATE INDEX PP_C_REVIEW_application ON PP_C_REVIEW (xapplication); +CREATE INDEX PP_C_REVIEW_applicationAlias ON PP_C_REVIEW (xapplicationAlias); +CREATE INDEX PP_C_REVIEW_applicationName ON PP_C_REVIEW (xapplicationName); +CREATE INDEX PP_C_REVIEW_booleanValue01 ON PP_C_REVIEW (xbooleanValue01); +CREATE INDEX PP_C_REVIEW_booleanValue02 ON PP_C_REVIEW (xbooleanValue02); +CREATE INDEX PP_C_REVIEW_completed ON PP_C_REVIEW (xcompleted); +CREATE INDEX PP_C_REVIEW_completedTime ON PP_C_REVIEW (xcompletedTime); +CREATE INDEX PP_C_REVIEW_completedTimeMonth ON PP_C_REVIEW (xcompletedTimeMonth); +CREATE INDEX PP_C_REVIEW_creatorIdentity ON PP_C_REVIEW (xcreatorIdentity); +CREATE INDEX PP_C_REVIEW_creatorPerson ON PP_C_REVIEW (xcreatorPerson); +CREATE INDEX PP_C_REVIEW_creatorUnit ON PP_C_REVIEW (xcreatorUnit); +CREATE INDEX PP_C_REVIEW_currentActivityName ON PP_C_REVIEW (xcurrentActivityName); +CREATE INDEX PP_C_REVIEW_dateTimeValue01 ON PP_C_REVIEW (xdateTimeValue01); +CREATE INDEX PP_C_REVIEW_dateTimeValue02 ON PP_C_REVIEW (xdateTimeValue02); +CREATE INDEX PP_C_REVIEW_dateTimeValue03 ON PP_C_REVIEW (xdateTimeValue03); +CREATE INDEX PP_C_REVIEW_dateTimeValue04 ON PP_C_REVIEW (xdateTimeValue04); +CREATE INDEX PP_C_REVIEW_dateTimeValue05 ON PP_C_REVIEW (xdateTimeValue05); +CREATE INDEX PP_C_REVIEW_dateValue01 ON PP_C_REVIEW (xdateValue01); +CREATE INDEX PP_C_REVIEW_dateValue02 ON PP_C_REVIEW (xdateValue02); +CREATE INDEX PP_C_REVIEW_doubleValue01 ON PP_C_REVIEW (xdoubleValue01); +CREATE INDEX PP_C_REVIEW_doubleValue02 ON PP_C_REVIEW (xdoubleValue02); +CREATE INDEX PP_C_REVIEW_doubleValue03 ON PP_C_REVIEW (xdoubleValue03); +CREATE INDEX PP_C_REVIEW_doubleValue04 ON PP_C_REVIEW (xdoubleValue04); +CREATE INDEX PP_C_REVIEW_doubleValue05 ON PP_C_REVIEW (xdoubleValue05); +CREATE INDEX PP_C_REVIEW_job ON PP_C_REVIEW (xjob); +CREATE INDEX PP_C_REVIEW_longValue01 ON PP_C_REVIEW (xlongValue01); +CREATE INDEX PP_C_REVIEW_longValue02 ON PP_C_REVIEW (xlongValue02); +CREATE INDEX PP_C_REVIEW_longValue03 ON PP_C_REVIEW (xlongValue03); +CREATE INDEX PP_C_REVIEW_longValue04 ON PP_C_REVIEW (xlongValue04); +CREATE INDEX PP_C_REVIEW_longValue05 ON PP_C_REVIEW (xlongValue05); +CREATE INDEX PP_C_REVIEW_person ON PP_C_REVIEW (xperson); +CREATE INDEX PP_C_REVIEW_process ON PP_C_REVIEW (xprocess); +CREATE INDEX PP_C_REVIEW_processAlias ON PP_C_REVIEW (xprocessAlias); +CREATE INDEX PP_C_REVIEW_processName ON PP_C_REVIEW (xprocessName); +CREATE INDEX PP_C_REVIEW_serial ON PP_C_REVIEW (xserial); +CREATE INDEX PP_C_REVIEW_startTime ON PP_C_REVIEW (xstartTime); +CREATE INDEX PP_C_REVIEW_startTimeMonth ON PP_C_REVIEW (xstartTimeMonth); +CREATE INDEX PP_C_REVIEW_stringValue01 ON PP_C_REVIEW (xstringValue01); +CREATE INDEX PP_C_REVIEW_stringValue02 ON PP_C_REVIEW (xstringValue02); +CREATE INDEX PP_C_REVIEW_stringValue03 ON PP_C_REVIEW (xstringValue03); +CREATE INDEX PP_C_REVIEW_stringValue04 ON PP_C_REVIEW (xstringValue04); +CREATE INDEX PP_C_REVIEW_stringValue05 ON PP_C_REVIEW (xstringValue05); +CREATE INDEX PP_C_REVIEW_stringValue06 ON PP_C_REVIEW (xstringValue06); +CREATE INDEX PP_C_REVIEW_stringValue07 ON PP_C_REVIEW (xstringValue07); +CREATE INDEX PP_C_REVIEW_stringValue08 ON PP_C_REVIEW (xstringValue08); +CREATE INDEX PP_C_REVIEW_stringValue09 ON PP_C_REVIEW (xstringValue09); +CREATE INDEX PP_C_REVIEW_stringValue10 ON PP_C_REVIEW (xstringValue10); +CREATE INDEX PP_C_REVIEW_timeValue01 ON PP_C_REVIEW (xtimeValue01); +CREATE INDEX PP_C_REVIEW_timeValue02 ON PP_C_REVIEW (xtimeValue02); +CREATE INDEX PP_C_REVIEW_title ON PP_C_REVIEW (xtitle); +CREATE INDEX PP_C_REVIEW_work ON PP_C_REVIEW (xwork); +CREATE INDEX PP_C_REVIEW_workCompleted ON PP_C_REVIEW (xworkCompleted); +CREATE INDEX PP_C_SERIALNUMBER_application ON PP_C_SERIALNUMBER (xapplication); +CREATE INDEX PP_C_SERIALNUMBER_name ON PP_C_SERIALNUMBER (xname); +CREATE INDEX PP_C_SERIALNUMBER_process ON PP_C_SERIALNUMBER (xprocess); +CREATE INDEX PP_C_SERIALNUMBER_serial ON PP_C_SERIALNUMBER (xserial); +CREATE INDEX PP_C_TASK_activity ON PP_C_TASK (xactivity); +CREATE INDEX PP_C_TASK_activityAlias ON PP_C_TASK (xactivityAlias); +CREATE INDEX PP_C_TASK_activityDescription ON PP_C_TASK (xactivityDescription); +CREATE INDEX PP_C_TASK_activityName ON PP_C_TASK (xactivityName); +CREATE INDEX PP_C_TASK_activityToken ON PP_C_TASK (xactivityToken); +CREATE INDEX PP_C_TASK_activityType ON PP_C_TASK (xactivityType); +CREATE INDEX PP_C_TASK_application ON PP_C_TASK (xapplication); +CREATE INDEX PP_C_TASK_applicationAlias ON PP_C_TASK (xapplicationAlias); +CREATE INDEX PP_C_TASK_applicationName ON PP_C_TASK (xapplicationName); +CREATE INDEX PP_C_TASK_booleanValue01 ON PP_C_TASK (xbooleanValue01); +CREATE INDEX PP_C_TASK_booleanValue02 ON PP_C_TASK (xbooleanValue02); +CREATE INDEX PP_C_TASK_creatorIdentity ON PP_C_TASK (xcreatorIdentity); +CREATE INDEX PP_C_TASK_creatorPerson ON PP_C_TASK (xcreatorPerson); +CREATE INDEX PP_C_TASK_creatorUnit ON PP_C_TASK (xcreatorUnit); +CREATE INDEX PP_C_TASK_dateTimeValue01 ON PP_C_TASK (xdateTimeValue01); +CREATE INDEX PP_C_TASK_dateTimeValue02 ON PP_C_TASK (xdateTimeValue02); +CREATE INDEX PP_C_TASK_dateTimeValue03 ON PP_C_TASK (xdateTimeValue03); +CREATE INDEX PP_C_TASK_dateTimeValue04 ON PP_C_TASK (xdateTimeValue04); +CREATE INDEX PP_C_TASK_dateTimeValue05 ON PP_C_TASK (xdateTimeValue05); +CREATE INDEX PP_C_TASK_dateValue01 ON PP_C_TASK (xdateValue01); +CREATE INDEX PP_C_TASK_dateValue02 ON PP_C_TASK (xdateValue02); +CREATE INDEX PP_C_TASK_doubleValue01 ON PP_C_TASK (xdoubleValue01); +CREATE INDEX PP_C_TASK_doubleValue02 ON PP_C_TASK (xdoubleValue02); +CREATE INDEX PP_C_TASK_doubleValue03 ON PP_C_TASK (xdoubleValue03); +CREATE INDEX PP_C_TASK_doubleValue04 ON PP_C_TASK (xdoubleValue04); +CREATE INDEX PP_C_TASK_doubleValue05 ON PP_C_TASK (xdoubleValue05); +CREATE INDEX PP_C_TASK_empowerFromIdentity ON PP_C_TASK (xempowerFromIdentity); +CREATE INDEX PP_C_TASK_expired ON PP_C_TASK (xexpired); +CREATE INDEX PP_C_TASK_expireTime ON PP_C_TASK (xexpireTime); +CREATE INDEX PP_C_TASK_identity ON PP_C_TASK (xidentity); +CREATE INDEX PP_C_TASK_job ON PP_C_TASK (xjob); +CREATE INDEX PP_C_TASK_longValue01 ON PP_C_TASK (xlongValue01); +CREATE INDEX PP_C_TASK_longValue02 ON PP_C_TASK (xlongValue02); +CREATE INDEX PP_C_TASK_longValue03 ON PP_C_TASK (xlongValue03); +CREATE INDEX PP_C_TASK_longValue04 ON PP_C_TASK (xlongValue04); +CREATE INDEX PP_C_TASK_longValue05 ON PP_C_TASK (xlongValue05); +CREATE INDEX PP_C_TASK_modified ON PP_C_TASK (xmodified); +CREATE INDEX PP_C_TASK_opinion ON PP_C_TASK (xopinion); +CREATE INDEX PP_C_TASK_person ON PP_C_TASK (xperson); +CREATE INDEX PP_C_TASK_process ON PP_C_TASK (xprocess); +CREATE INDEX PP_C_TASK_processAlias ON PP_C_TASK (xprocessAlias); +CREATE INDEX PP_C_TASK_processName ON PP_C_TASK (xprocessName); +CREATE INDEX PP_C_TASK_serial ON PP_C_TASK (xserial); +CREATE INDEX PP_C_TASK_series ON PP_C_TASK (xseries); +CREATE INDEX PP_C_TASK_startTime ON PP_C_TASK (xstartTime); +CREATE INDEX PP_C_TASK_startTimeMonth ON PP_C_TASK (xstartTimeMonth); +CREATE INDEX PP_C_TASK_stringValue01 ON PP_C_TASK (xstringValue01); +CREATE INDEX PP_C_TASK_stringValue02 ON PP_C_TASK (xstringValue02); +CREATE INDEX PP_C_TASK_stringValue03 ON PP_C_TASK (xstringValue03); +CREATE INDEX PP_C_TASK_stringValue04 ON PP_C_TASK (xstringValue04); +CREATE INDEX PP_C_TASK_stringValue05 ON PP_C_TASK (xstringValue05); +CREATE INDEX PP_C_TASK_stringValue06 ON PP_C_TASK (xstringValue06); +CREATE INDEX PP_C_TASK_stringValue07 ON PP_C_TASK (xstringValue07); +CREATE INDEX PP_C_TASK_stringValue08 ON PP_C_TASK (xstringValue08); +CREATE INDEX PP_C_TASK_stringValue09 ON PP_C_TASK (xstringValue09); +CREATE INDEX PP_C_TASK_stringValue10 ON PP_C_TASK (xstringValue10); +CREATE INDEX PP_C_TASK_timeValue01 ON PP_C_TASK (xtimeValue01); +CREATE INDEX PP_C_TASK_timeValue02 ON PP_C_TASK (xtimeValue02); +CREATE INDEX PP_C_TASK_title ON PP_C_TASK (xtitle); +CREATE INDEX PP_C_TASK_unit ON PP_C_TASK (xunit); +CREATE INDEX PP_C_TASK_urged ON PP_C_TASK (xurged); +CREATE INDEX PP_C_TASK_urgeTime ON PP_C_TASK (xurgeTime); +CREATE INDEX PP_C_TASK_viewed ON PP_C_TASK (xviewed); +CREATE INDEX PP_C_TASK_work ON PP_C_TASK (xwork); +CREATE INDEX PP_C_TASK_workCreateType ON PP_C_TASK (xworkCreateType); +CREATE INDEX PP_C_TASKCOMPLETED_activity ON PP_C_TASKCOMPLETED (xactivity); +CREATE INDEX PP_C_TASKCOMPLETED_activityAlias ON PP_C_TASKCOMPLETED (xactivityAlias); +CREATE INDEX PP_C_TASKCOMPLETED_activityDescription ON PP_C_TASKCOMPLETED (xactivityDescription); +CREATE INDEX PP_C_TASKCOMPLETED_activityName ON PP_C_TASKCOMPLETED (xactivityName); +CREATE INDEX PP_C_TASKCOMPLETED_activityToken ON PP_C_TASKCOMPLETED (xactivityToken); +CREATE INDEX PP_C_TASKCOMPLETED_activityType ON PP_C_TASKCOMPLETED (xactivityType); +CREATE INDEX PP_C_TASKCOMPLETED_application ON PP_C_TASKCOMPLETED (xapplication); +CREATE INDEX PP_C_TASKCOMPLETED_applicationAlias ON PP_C_TASKCOMPLETED (xapplicationAlias); +CREATE INDEX PP_C_TASKCOMPLETED_applicationName ON PP_C_TASKCOMPLETED (xapplicationName); +CREATE INDEX PP_C_TASKCOMPLETED_booleanValue01 ON PP_C_TASKCOMPLETED (xbooleanValue01); +CREATE INDEX PP_C_TASKCOMPLETED_booleanValue02 ON PP_C_TASKCOMPLETED (xbooleanValue02); +CREATE INDEX PP_C_TASKCOMPLETED_completed ON PP_C_TASKCOMPLETED (xcompleted); +CREATE INDEX PP_C_TASKCOMPLETED_completedTime ON PP_C_TASKCOMPLETED (xcompletedTime); +CREATE INDEX PP_C_TASKCOMPLETED_completedTimeMonth ON PP_C_TASKCOMPLETED (xcompletedTimeMonth); +CREATE INDEX PP_C_TASKCOMPLETED_creatorIdentity ON PP_C_TASKCOMPLETED (xcreatorIdentity); +CREATE INDEX PP_C_TASKCOMPLETED_creatorPerson ON PP_C_TASKCOMPLETED (xcreatorPerson); +CREATE INDEX PP_C_TASKCOMPLETED_creatorUnit ON PP_C_TASKCOMPLETED (xcreatorUnit); +CREATE INDEX PP_C_TASKCOMPLETED_currentActivityName ON PP_C_TASKCOMPLETED (xcurrentActivityName); +CREATE INDEX PP_C_TASKCOMPLETED_dateTimeValue01 ON PP_C_TASKCOMPLETED (xdateTimeValue01); +CREATE INDEX PP_C_TASKCOMPLETED_dateTimeValue02 ON PP_C_TASKCOMPLETED (xdateTimeValue02); +CREATE INDEX PP_C_TASKCOMPLETED_dateTimeValue03 ON PP_C_TASKCOMPLETED (xdateTimeValue03); +CREATE INDEX PP_C_TASKCOMPLETED_dateTimeValue04 ON PP_C_TASKCOMPLETED (xdateTimeValue04); +CREATE INDEX PP_C_TASKCOMPLETED_dateTimeValue05 ON PP_C_TASKCOMPLETED (xdateTimeValue05); +CREATE INDEX PP_C_TASKCOMPLETED_dateValue01 ON PP_C_TASKCOMPLETED (xdateValue01); +CREATE INDEX PP_C_TASKCOMPLETED_dateValue02 ON PP_C_TASKCOMPLETED (xdateValue02); +CREATE INDEX PP_C_TASKCOMPLETED_doubleValue01 ON PP_C_TASKCOMPLETED (xdoubleValue01); +CREATE INDEX PP_C_TASKCOMPLETED_doubleValue02 ON PP_C_TASKCOMPLETED (xdoubleValue02); +CREATE INDEX PP_C_TASKCOMPLETED_doubleValue03 ON PP_C_TASKCOMPLETED (xdoubleValue03); +CREATE INDEX PP_C_TASKCOMPLETED_doubleValue04 ON PP_C_TASKCOMPLETED (xdoubleValue04); +CREATE INDEX PP_C_TASKCOMPLETED_doubleValue05 ON PP_C_TASKCOMPLETED (xdoubleValue05); +CREATE INDEX PP_C_TASKCOMPLETED_empowerFromIdentity ON PP_C_TASKCOMPLETED (xempowerFromIdentity); +CREATE INDEX PP_C_TASKCOMPLETED_empowerToIdentity ON PP_C_TASKCOMPLETED (xempowerToIdentity); +CREATE INDEX PP_C_TASKCOMPLETED_expired ON PP_C_TASKCOMPLETED (xexpired); +CREATE INDEX PP_C_TASKCOMPLETED_expireTime ON PP_C_TASKCOMPLETED (xexpireTime); +CREATE INDEX PP_C_TASKCOMPLETED_identity ON PP_C_TASKCOMPLETED (xidentity); +CREATE INDEX PP_C_TASKCOMPLETED_job ON PP_C_TASKCOMPLETED (xjob); +CREATE INDEX PP_C_TASKCOMPLETED_joinInquire ON PP_C_TASKCOMPLETED (xjoinInquire); +CREATE INDEX PP_C_TASKCOMPLETED_latest ON PP_C_TASKCOMPLETED (xlatest); +CREATE INDEX PP_C_TASKCOMPLETED_longValue01 ON PP_C_TASKCOMPLETED (xlongValue01); +CREATE INDEX PP_C_TASKCOMPLETED_longValue02 ON PP_C_TASKCOMPLETED (xlongValue02); +CREATE INDEX PP_C_TASKCOMPLETED_longValue03 ON PP_C_TASKCOMPLETED (xlongValue03); +CREATE INDEX PP_C_TASKCOMPLETED_longValue04 ON PP_C_TASKCOMPLETED (xlongValue04); +CREATE INDEX PP_C_TASKCOMPLETED_longValue05 ON PP_C_TASKCOMPLETED (xlongValue05); +CREATE INDEX PP_C_TASKCOMPLETED_opinion ON PP_C_TASKCOMPLETED (xopinion); +CREATE INDEX PP_C_TASKCOMPLETED_person ON PP_C_TASKCOMPLETED (xperson); +CREATE INDEX PP_C_TASKCOMPLETED_process ON PP_C_TASKCOMPLETED (xprocess); +CREATE INDEX PP_C_TASKCOMPLETED_processAlias ON PP_C_TASKCOMPLETED (xprocessAlias); +CREATE INDEX PP_C_TASKCOMPLETED_processingType ON PP_C_TASKCOMPLETED (xprocessingType); +CREATE INDEX PP_C_TASKCOMPLETED_processName ON PP_C_TASKCOMPLETED (xprocessName); +CREATE INDEX PP_C_TASKCOMPLETED_serial ON PP_C_TASKCOMPLETED (xserial); +CREATE INDEX PP_C_TASKCOMPLETED_startTime ON PP_C_TASKCOMPLETED (xstartTime); +CREATE INDEX PP_C_TASKCOMPLETED_startTimeMonth ON PP_C_TASKCOMPLETED (xstartTimeMonth); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue01 ON PP_C_TASKCOMPLETED (xstringValue01); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue02 ON PP_C_TASKCOMPLETED (xstringValue02); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue03 ON PP_C_TASKCOMPLETED (xstringValue03); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue04 ON PP_C_TASKCOMPLETED (xstringValue04); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue05 ON PP_C_TASKCOMPLETED (xstringValue05); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue06 ON PP_C_TASKCOMPLETED (xstringValue06); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue07 ON PP_C_TASKCOMPLETED (xstringValue07); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue08 ON PP_C_TASKCOMPLETED (xstringValue08); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue09 ON PP_C_TASKCOMPLETED (xstringValue09); +CREATE INDEX PP_C_TASKCOMPLETED_stringValue10 ON PP_C_TASKCOMPLETED (xstringValue10); +CREATE INDEX PP_C_TASKCOMPLETED_task ON PP_C_TASKCOMPLETED (xtask); +CREATE INDEX PP_C_TASKCOMPLETED_timeValue01 ON PP_C_TASKCOMPLETED (xtimeValue01); +CREATE INDEX PP_C_TASKCOMPLETED_timeValue02 ON PP_C_TASKCOMPLETED (xtimeValue02); +CREATE INDEX PP_C_TASKCOMPLETED_title ON PP_C_TASKCOMPLETED (xtitle); +CREATE INDEX PP_C_TASKCOMPLETED_unit ON PP_C_TASKCOMPLETED (xunit); +CREATE INDEX PP_C_TASKCOMPLETED_work ON PP_C_TASKCOMPLETED (xwork); +CREATE INDEX PP_C_TASKCOMPLETED_workCompleted ON PP_C_TASKCOMPLETED (xworkCompleted); +CREATE INDEX PP_C_TASK_routeDecisionOpinionList_join ON PP_C_TASK_routeDecisionOpinionList (TASK_XID); +CREATE INDEX PP_C_TASK_routeList_join ON PP_C_TASK_routeList (TASK_XID); +CREATE INDEX PP_C_TASK_routeNameList_join ON PP_C_TASK_routeNameList (TASK_XID); +CREATE INDEX PP_C_TASK_routeOpinionList_join ON PP_C_TASK_routeOpinionList (TASK_XID); +CREATE INDEX PP_C_WORK_activity ON PP_C_WORK (xactivity); +CREATE INDEX PP_C_WORK_activityAlias ON PP_C_WORK (xactivityAlias); +CREATE INDEX PP_C_WORK_activityArrivedTime ON PP_C_WORK (xactivityArrivedTime); +CREATE INDEX PP_C_WORK_activityDescription ON PP_C_WORK (xactivityDescription); +CREATE INDEX PP_C_WORK_activityName ON PP_C_WORK (xactivityName); +CREATE INDEX PP_C_WORK_activityToken ON PP_C_WORK (xactivityToken); +CREATE INDEX PP_C_WORK_activityType ON PP_C_WORK (xactivityType); +CREATE INDEX PP_C_WORK_application ON PP_C_WORK (xapplication); +CREATE INDEX PP_C_WORK_applicationAlias ON PP_C_WORK (xapplicationAlias); +CREATE INDEX PP_C_WORK_applicationName ON PP_C_WORK (xapplicationName); +CREATE INDEX PP_C_WORK_booleanValue01 ON PP_C_WORK (xbooleanValue01); +CREATE INDEX PP_C_WORK_booleanValue02 ON PP_C_WORK (xbooleanValue02); +CREATE INDEX PP_C_WORK_creatorIdentity ON PP_C_WORK (xcreatorIdentity); +CREATE INDEX PP_C_WORK_creatorPerson ON PP_C_WORK (xcreatorPerson); +CREATE INDEX PP_C_WORK_creatorUnit ON PP_C_WORK (xcreatorUnit); +CREATE INDEX PP_C_WORK_dataChanged ON PP_C_WORK (xdataChanged); +CREATE INDEX PP_C_WORK_dateTimeValue01 ON PP_C_WORK (xdateTimeValue01); +CREATE INDEX PP_C_WORK_dateTimeValue02 ON PP_C_WORK (xdateTimeValue02); +CREATE INDEX PP_C_WORK_dateTimeValue03 ON PP_C_WORK (xdateTimeValue03); +CREATE INDEX PP_C_WORK_dateTimeValue04 ON PP_C_WORK (xdateTimeValue04); +CREATE INDEX PP_C_WORK_dateTimeValue05 ON PP_C_WORK (xdateTimeValue05); +CREATE INDEX PP_C_WORK_dateValue01 ON PP_C_WORK (xdateValue01); +CREATE INDEX PP_C_WORK_dateValue02 ON PP_C_WORK (xdateValue02); +CREATE INDEX PP_C_WORK_destinationActivity ON PP_C_WORK (xdestinationActivity); +CREATE INDEX PP_C_WORK_destinationActivityType ON PP_C_WORK (xdestinationActivityType); +CREATE INDEX PP_C_WORK_doubleValue01 ON PP_C_WORK (xdoubleValue01); +CREATE INDEX PP_C_WORK_doubleValue02 ON PP_C_WORK (xdoubleValue02); +CREATE INDEX PP_C_WORK_doubleValue03 ON PP_C_WORK (xdoubleValue03); +CREATE INDEX PP_C_WORK_doubleValue04 ON PP_C_WORK (xdoubleValue04); +CREATE INDEX PP_C_WORK_doubleValue05 ON PP_C_WORK (xdoubleValue05); +CREATE INDEX PP_C_WORK_embedTargetWork ON PP_C_WORK (xembedTargetWork); +CREATE INDEX PP_C_WORK_expireTime ON PP_C_WORK (xexpireTime); +CREATE INDEX PP_C_WORK_job ON PP_C_WORK (xjob); +CREATE INDEX PP_C_WORK_longValue01 ON PP_C_WORK (xlongValue01); +CREATE INDEX PP_C_WORK_longValue02 ON PP_C_WORK (xlongValue02); +CREATE INDEX PP_C_WORK_longValue03 ON PP_C_WORK (xlongValue03); +CREATE INDEX PP_C_WORK_longValue04 ON PP_C_WORK (xlongValue04); +CREATE INDEX PP_C_WORK_longValue05 ON PP_C_WORK (xlongValue05); +CREATE INDEX PP_C_WORK_process ON PP_C_WORK (xprocess); +CREATE INDEX PP_C_WORK_processAlias ON PP_C_WORK (xprocessAlias); +CREATE INDEX PP_C_WORK_processName ON PP_C_WORK (xprocessName); +CREATE INDEX PP_C_WORK_serial ON PP_C_WORK (xserial); +CREATE INDEX PP_C_WORK_splitting ON PP_C_WORK (xsplitting); +CREATE INDEX PP_C_WORK_startTime ON PP_C_WORK (xstartTime); +CREATE INDEX PP_C_WORK_startTimeMonth ON PP_C_WORK (xstartTimeMonth); +CREATE INDEX PP_C_WORK_stringValue01 ON PP_C_WORK (xstringValue01); +CREATE INDEX PP_C_WORK_stringValue02 ON PP_C_WORK (xstringValue02); +CREATE INDEX PP_C_WORK_stringValue03 ON PP_C_WORK (xstringValue03); +CREATE INDEX PP_C_WORK_stringValue04 ON PP_C_WORK (xstringValue04); +CREATE INDEX PP_C_WORK_stringValue05 ON PP_C_WORK (xstringValue05); +CREATE INDEX PP_C_WORK_stringValue06 ON PP_C_WORK (xstringValue06); +CREATE INDEX PP_C_WORK_stringValue07 ON PP_C_WORK (xstringValue07); +CREATE INDEX PP_C_WORK_stringValue08 ON PP_C_WORK (xstringValue08); +CREATE INDEX PP_C_WORK_stringValue09 ON PP_C_WORK (xstringValue09); +CREATE INDEX PP_C_WORK_stringValue10 ON PP_C_WORK (xstringValue10); +CREATE INDEX PP_C_WORK_timeValue01 ON PP_C_WORK (xtimeValue01); +CREATE INDEX PP_C_WORK_timeValue02 ON PP_C_WORK (xtimeValue02); +CREATE INDEX PP_C_WORK_title ON PP_C_WORK (xtitle); +CREATE INDEX PP_C_WORK_workCreateType ON PP_C_WORK (xworkCreateType); +CREATE INDEX PP_C_WORK_workStatus ON PP_C_WORK (xworkStatus); +CREATE INDEX PP_C_WORK_workThroughManual ON PP_C_WORK (xworkThroughManual); +CREATE INDEX PP_C_WORKCOMPLETED_allowRollback ON PP_C_WORKCOMPLETED (xallowRollback); +CREATE INDEX PP_C_WORKCOMPLETED_application ON PP_C_WORKCOMPLETED (xapplication); +CREATE INDEX PP_C_WORKCOMPLETED_applicationAlias ON PP_C_WORKCOMPLETED (xapplicationAlias); +CREATE INDEX PP_C_WORKCOMPLETED_applicationName ON PP_C_WORKCOMPLETED (xapplicationName); +CREATE INDEX PP_C_WORKCOMPLETED_booleanValue01 ON PP_C_WORKCOMPLETED (xbooleanValue01); +CREATE INDEX PP_C_WORKCOMPLETED_booleanValue02 ON PP_C_WORKCOMPLETED (xbooleanValue02); +CREATE INDEX PP_C_WORKCOMPLETED_completedTime ON PP_C_WORKCOMPLETED (xcompletedTime); +CREATE INDEX PP_C_WORKCOMPLETED_completedTimeMonth ON PP_C_WORKCOMPLETED (xcompletedTimeMonth); +CREATE INDEX PP_C_WORKCOMPLETED_creatorIdentity ON PP_C_WORKCOMPLETED (xcreatorIdentity); +CREATE INDEX PP_C_WORKCOMPLETED_creatorPerson ON PP_C_WORKCOMPLETED (xcreatorPerson); +CREATE INDEX PP_C_WORKCOMPLETED_creatorUnit ON PP_C_WORKCOMPLETED (xcreatorUnit); +CREATE INDEX PP_C_WORKCOMPLETED_dateTimeValue01 ON PP_C_WORKCOMPLETED (xdateTimeValue01); +CREATE INDEX PP_C_WORKCOMPLETED_dateTimeValue02 ON PP_C_WORKCOMPLETED (xdateTimeValue02); +CREATE INDEX PP_C_WORKCOMPLETED_dateTimeValue03 ON PP_C_WORKCOMPLETED (xdateTimeValue03); +CREATE INDEX PP_C_WORKCOMPLETED_dateTimeValue04 ON PP_C_WORKCOMPLETED (xdateTimeValue04); +CREATE INDEX PP_C_WORKCOMPLETED_dateTimeValue05 ON PP_C_WORKCOMPLETED (xdateTimeValue05); +CREATE INDEX PP_C_WORKCOMPLETED_dateValue01 ON PP_C_WORKCOMPLETED (xdateValue01); +CREATE INDEX PP_C_WORKCOMPLETED_dateValue02 ON PP_C_WORKCOMPLETED (xdateValue02); +CREATE INDEX PP_C_WORKCOMPLETED_doubleValue01 ON PP_C_WORKCOMPLETED (xdoubleValue01); +CREATE INDEX PP_C_WORKCOMPLETED_doubleValue02 ON PP_C_WORKCOMPLETED (xdoubleValue02); +CREATE INDEX PP_C_WORKCOMPLETED_doubleValue03 ON PP_C_WORKCOMPLETED (xdoubleValue03); +CREATE INDEX PP_C_WORKCOMPLETED_doubleValue04 ON PP_C_WORKCOMPLETED (xdoubleValue04); +CREATE INDEX PP_C_WORKCOMPLETED_doubleValue05 ON PP_C_WORKCOMPLETED (xdoubleValue05); +CREATE INDEX PP_C_WORKCOMPLETED_expired ON PP_C_WORKCOMPLETED (xexpired); +CREATE INDEX PP_C_WORKCOMPLETED_expireTime ON PP_C_WORKCOMPLETED (xexpireTime); +CREATE INDEX PP_C_WORKCOMPLETED_form ON PP_C_WORKCOMPLETED (xform); +CREATE INDEX PP_C_WORKCOMPLETED_job ON PP_C_WORKCOMPLETED (xjob); +CREATE INDEX PP_C_WORKCOMPLETED_longValue01 ON PP_C_WORKCOMPLETED (xlongValue01); +CREATE INDEX PP_C_WORKCOMPLETED_longValue02 ON PP_C_WORKCOMPLETED (xlongValue02); +CREATE INDEX PP_C_WORKCOMPLETED_longValue03 ON PP_C_WORKCOMPLETED (xlongValue03); +CREATE INDEX PP_C_WORKCOMPLETED_longValue04 ON PP_C_WORKCOMPLETED (xlongValue04); +CREATE INDEX PP_C_WORKCOMPLETED_longValue05 ON PP_C_WORKCOMPLETED (xlongValue05); +CREATE INDEX PP_C_WORKCOMPLETED_merged ON PP_C_WORKCOMPLETED (xmerged); +CREATE INDEX PP_C_WORKCOMPLETED_process ON PP_C_WORKCOMPLETED (xprocess); +CREATE INDEX PP_C_WORKCOMPLETED_processAlias ON PP_C_WORKCOMPLETED (xprocessAlias); +CREATE INDEX PP_C_WORKCOMPLETED_processName ON PP_C_WORKCOMPLETED (xprocessName); +CREATE INDEX PP_C_WORKCOMPLETED_serial ON PP_C_WORKCOMPLETED (xserial); +CREATE INDEX PP_C_WORKCOMPLETED_startTime ON PP_C_WORKCOMPLETED (xstartTime); +CREATE INDEX PP_C_WORKCOMPLETED_startTimeMonth ON PP_C_WORKCOMPLETED (xstartTimeMonth); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue01 ON PP_C_WORKCOMPLETED (xstringValue01); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue02 ON PP_C_WORKCOMPLETED (xstringValue02); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue03 ON PP_C_WORKCOMPLETED (xstringValue03); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue04 ON PP_C_WORKCOMPLETED (xstringValue04); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue05 ON PP_C_WORKCOMPLETED (xstringValue05); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue06 ON PP_C_WORKCOMPLETED (xstringValue06); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue07 ON PP_C_WORKCOMPLETED (xstringValue07); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue08 ON PP_C_WORKCOMPLETED (xstringValue08); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue09 ON PP_C_WORKCOMPLETED (xstringValue09); +CREATE INDEX PP_C_WORKCOMPLETED_stringValue10 ON PP_C_WORKCOMPLETED (xstringValue10); +CREATE INDEX PP_C_WORKCOMPLETED_timeValue01 ON PP_C_WORKCOMPLETED (xtimeValue01); +CREATE INDEX PP_C_WORKCOMPLETED_timeValue02 ON PP_C_WORKCOMPLETED (xtimeValue02); +CREATE INDEX PP_C_WORKCOMPLETED_title ON PP_C_WORKCOMPLETED (xtitle); +CREATE INDEX PP_C_WORKCOMPLETED_work ON PP_C_WORKCOMPLETED (xwork); +CREATE INDEX PP_C_WORKLOG_application ON PP_C_WORKLOG (xapplication); +CREATE INDEX PP_C_WORKLOG_applicationAlias ON PP_C_WORKLOG (xapplicationAlias); +CREATE INDEX PP_C_WORKLOG_applicationName ON PP_C_WORKLOG (xapplicationName); +CREATE INDEX PP_C_WORKLOG_arrivedActivity ON PP_C_WORKLOG (xarrivedActivity); +CREATE INDEX PP_C_WORKLOG_arrivedActivityAlias ON PP_C_WORKLOG (xarrivedActivityAlias); +CREATE INDEX PP_C_WORKLOG_arrivedActivityName ON PP_C_WORKLOG (xarrivedActivityName); +CREATE INDEX PP_C_WORKLOG_arrivedActivityToken ON PP_C_WORKLOG (xarrivedActivityToken); +CREATE INDEX PP_C_WORKLOG_arrivedActivityType ON PP_C_WORKLOG (xarrivedActivityType); +CREATE INDEX PP_C_WORKLOG_arrivedTime ON PP_C_WORKLOG (xarrivedTime); +CREATE INDEX PP_C_WORKLOG_completed ON PP_C_WORKLOG (xcompleted); +CREATE INDEX PP_C_WORKLOG_connected ON PP_C_WORKLOG (xconnected); +CREATE INDEX PP_C_WORKLOG_duration ON PP_C_WORKLOG (xduration); +CREATE INDEX PP_C_WORKLOG_fromActivity ON PP_C_WORKLOG (xfromActivity); +CREATE INDEX PP_C_WORKLOG_fromActivityAlias ON PP_C_WORKLOG (xfromActivityAlias); +CREATE INDEX PP_C_WORKLOG_fromActivityName ON PP_C_WORKLOG (xfromActivityName); +CREATE INDEX PP_C_WORKLOG_fromActivityToken ON PP_C_WORKLOG (xfromActivityToken); +CREATE INDEX PP_C_WORKLOG_fromActivityType ON PP_C_WORKLOG (xfromActivityType); +CREATE INDEX PP_C_WORKLOG_fromTime ON PP_C_WORKLOG (xfromTime); +CREATE INDEX PP_C_WORKLOG_job ON PP_C_WORKLOG (xjob); +CREATE INDEX PP_C_WORKLOG_process ON PP_C_WORKLOG (xprocess); +CREATE INDEX PP_C_WORKLOG_processAlias ON PP_C_WORKLOG (xprocessAlias); +CREATE INDEX PP_C_WORKLOG_processName ON PP_C_WORKLOG (xprocessName); +CREATE INDEX PP_C_WORKLOG_route ON PP_C_WORKLOG (xroute); +CREATE INDEX PP_C_WORKLOG_routeName ON PP_C_WORKLOG (xrouteName); +CREATE INDEX PP_C_WORKLOG_splitWork ON PP_C_WORKLOG (xsplitWork); +CREATE INDEX PP_C_WORKLOG_work ON PP_C_WORKLOG (xwork); +CREATE INDEX PP_C_WORKLOG_workCompleted ON PP_C_WORKLOG (xworkCompleted); +CREATE INDEX PP_C_WORK_manualTaskIdentityList_element ON PP_C_WORK_manualTaskIdentityList (xmanualTaskIdentityList); +CREATE INDEX PP_C_WORK_manualTaskIdentityList_join ON PP_C_WORK_manualTaskIdentityList (WORK_XID); +CREATE INDEX PP_C_WORK_splitTokenList_element ON PP_C_WORK_splitTokenList (xsplitTokenList); +CREATE INDEX PP_C_WORK_splitTokenList_join ON PP_C_WORK_splitTokenList (WORK_XID); +CREATE INDEX PP_E_AGENT_allowReroute ON PP_E_AGENT (xallowReroute); +CREATE INDEX PP_E_AGENT_allowRerouteTo ON PP_E_AGENT (xallowRerouteTo); +CREATE INDEX PP_E_AGENT_form ON PP_E_AGENT (xform); +CREATE INDEX PP_E_AGENT_process ON PP_E_AGENT (xprocess); +CREATE INDEX PP_E_AGENT_readDataPathList_element ON PP_E_AGENT_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_AGENT_readDataPathList_join ON PP_E_AGENT_readDataPathList (AGENT_XID); +CREATE INDEX PP_E_AGENT_readGroupList_element ON PP_E_AGENT_readGroupList (xreadGroupList); +CREATE INDEX PP_E_AGENT_readGroupList_join ON PP_E_AGENT_readGroupList (AGENT_XID); +CREATE INDEX PP_E_AGENT_readIdentityList_element ON PP_E_AGENT_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_AGENT_readIdentityList_join ON PP_E_AGENT_readIdentityList (AGENT_XID); +CREATE INDEX PP_E_AGENT_readUnitList_element ON PP_E_AGENT_readUnitList (xreadUnitList); +CREATE INDEX PP_E_AGENT_readUnitList_join ON PP_E_AGENT_readUnitList (AGENT_XID); +CREATE INDEX PP_E_AGENT_reviewDataPathList_element ON PP_E_AGENT_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_AGENT_reviewDataPathList_join ON PP_E_AGENT_reviewDataPathList (AGENT_XID); +CREATE INDEX PP_E_AGENT_reviewGroupList_element ON PP_E_AGENT_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_AGENT_reviewGroupList_join ON PP_E_AGENT_reviewGroupList (AGENT_XID); +CREATE INDEX PP_E_AGENT_reviewIdentityList_element ON PP_E_AGENT_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_AGENT_reviewIdentityList_join ON PP_E_AGENT_reviewIdentityList (AGENT_XID); +CREATE INDEX PP_E_AGENT_reviewUnitList_element ON PP_E_AGENT_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_AGENT_reviewUnitList_join ON PP_E_AGENT_reviewUnitList (AGENT_XID); +CREATE INDEX PP_E_APPLICATIONDICT_alias ON PP_E_APPLICATIONDICT (xalias); +CREATE INDEX PP_E_APPLICATIONDICT_application ON PP_E_APPLICATIONDICT (xapplication); +CREATE INDEX PP_E_APPLICATIONDICT_description ON PP_E_APPLICATIONDICT (xdescription); +CREATE INDEX PP_E_APPLICATIONDICT_name ON PP_E_APPLICATIONDICT (xname); +CREATE INDEX PP_E_APPLICATIONDICTITEM_application ON PP_E_APPLICATIONDICTITEM (xapplication); +CREATE INDEX PP_E_APPLICATIONDICTITEM_booleanValue ON PP_E_APPLICATIONDICTITEM (xbooleanValue); +CREATE INDEX PP_E_APPLICATIONDICTITEM_bundle ON PP_E_APPLICATIONDICTITEM (xbundle); +CREATE INDEX PP_E_APPLICATIONDICTITEM_dateTimeValue ON PP_E_APPLICATIONDICTITEM (xdateTimeValue); +CREATE INDEX PP_E_APPLICATIONDICTITEM_dateValue ON PP_E_APPLICATIONDICTITEM (xdateValue); +CREATE INDEX PP_E_APPLICATIONDICTITEM_itemCategory ON PP_E_APPLICATIONDICTITEM (xitemCategory); +CREATE INDEX PP_E_APPLICATIONDICTITEM_itemPrimitiveType ON PP_E_APPLICATIONDICTITEM (xitemPrimitiveType); +CREATE INDEX PP_E_APPLICATIONDICTITEM_itemStringValueType ON PP_E_APPLICATIONDICTITEM (xitemStringValueType); +CREATE INDEX PP_E_APPLICATIONDICTITEM_itemType ON PP_E_APPLICATIONDICTITEM (xitemType); +CREATE INDEX PP_E_APPLICATIONDICTITEM_numberValue ON PP_E_APPLICATIONDICTITEM (xnumberValue); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path0 ON PP_E_APPLICATIONDICTITEM (xpath0); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path0Location ON PP_E_APPLICATIONDICTITEM (xpath0Location); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path1 ON PP_E_APPLICATIONDICTITEM (xpath1); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path1Location ON PP_E_APPLICATIONDICTITEM (xpath1Location); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path2 ON PP_E_APPLICATIONDICTITEM (xpath2); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path2Location ON PP_E_APPLICATIONDICTITEM (xpath2Location); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path3 ON PP_E_APPLICATIONDICTITEM (xpath3); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path3Location ON PP_E_APPLICATIONDICTITEM (xpath3Location); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path4 ON PP_E_APPLICATIONDICTITEM (xpath4); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path4Location ON PP_E_APPLICATIONDICTITEM (xpath4Location); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path5 ON PP_E_APPLICATIONDICTITEM (xpath5); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path5Location ON PP_E_APPLICATIONDICTITEM (xpath5Location); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path6 ON PP_E_APPLICATIONDICTITEM (xpath6); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path6Location ON PP_E_APPLICATIONDICTITEM (xpath6Location); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path7 ON PP_E_APPLICATIONDICTITEM (xpath7); +CREATE INDEX PP_E_APPLICATIONDICTITEM_path7Location ON PP_E_APPLICATIONDICTITEM (xpath7Location); +CREATE INDEX PP_E_APPLICATIONDICTITEM_stringShortValue ON PP_E_APPLICATIONDICTITEM (xstringShortValue); +CREATE INDEX PP_E_APPLICATIONDICTITEM_timeValue ON PP_E_APPLICATIONDICTITEM (xtimeValue); +CREATE INDEX PP_E_APPLICATION_availableIdentityList_element ON PP_E_APPLICATION_availableIdentityList (xavailableIdentityList); +CREATE INDEX PP_E_APPLICATION_availableIdentityList_join ON PP_E_APPLICATION_availableIdentityList (APPLICATION_XID); +CREATE INDEX PP_E_APPLICATION_availableUnitList_element ON PP_E_APPLICATION_availableUnitList (xavailableUnitList); +CREATE INDEX PP_E_APPLICATION_availableUnitList_join ON PP_E_APPLICATION_availableUnitList (APPLICATION_XID); +CREATE INDEX PP_E_APPLICATION_controllerList_element ON PP_E_APPLICATION_controllerList (xcontrollerList); +CREATE INDEX PP_E_APPLICATION_controllerList_join ON PP_E_APPLICATION_controllerList (APPLICATION_XID); +CREATE INDEX PP_E_BEGIN_allowReroute ON PP_E_BEGIN (xallowReroute); +CREATE INDEX PP_E_BEGIN_allowRerouteTo ON PP_E_BEGIN (xallowRerouteTo); +CREATE INDEX PP_E_BEGIN_form ON PP_E_BEGIN (xform); +CREATE INDEX PP_E_BEGIN_process ON PP_E_BEGIN (xprocess); +CREATE INDEX PP_E_BEGIN_readDataPathList_element ON PP_E_BEGIN_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_BEGIN_readDataPathList_join ON PP_E_BEGIN_readDataPathList (BEGIN_XID); +CREATE INDEX PP_E_BEGIN_readGroupList_element ON PP_E_BEGIN_readGroupList (xreadGroupList); +CREATE INDEX PP_E_BEGIN_readGroupList_join ON PP_E_BEGIN_readGroupList (BEGIN_XID); +CREATE INDEX PP_E_BEGIN_readIdentityList_element ON PP_E_BEGIN_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_BEGIN_readIdentityList_join ON PP_E_BEGIN_readIdentityList (BEGIN_XID); +CREATE INDEX PP_E_BEGIN_readUnitList_element ON PP_E_BEGIN_readUnitList (xreadUnitList); +CREATE INDEX PP_E_BEGIN_readUnitList_join ON PP_E_BEGIN_readUnitList (BEGIN_XID); +CREATE INDEX PP_E_BEGIN_reviewDataPathList_element ON PP_E_BEGIN_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_BEGIN_reviewDataPathList_join ON PP_E_BEGIN_reviewDataPathList (BEGIN_XID); +CREATE INDEX PP_E_BEGIN_reviewGroupList_element ON PP_E_BEGIN_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_BEGIN_reviewGroupList_join ON PP_E_BEGIN_reviewGroupList (BEGIN_XID); +CREATE INDEX PP_E_BEGIN_reviewIdentityList_element ON PP_E_BEGIN_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_BEGIN_reviewIdentityList_join ON PP_E_BEGIN_reviewIdentityList (BEGIN_XID); +CREATE INDEX PP_E_BEGIN_reviewUnitList_element ON PP_E_BEGIN_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_BEGIN_reviewUnitList_join ON PP_E_BEGIN_reviewUnitList (BEGIN_XID); +CREATE INDEX PP_E_CANCEL_allowReroute ON PP_E_CANCEL (xallowReroute); +CREATE INDEX PP_E_CANCEL_allowRerouteTo ON PP_E_CANCEL (xallowRerouteTo); +CREATE INDEX PP_E_CANCEL_form ON PP_E_CANCEL (xform); +CREATE INDEX PP_E_CANCEL_process ON PP_E_CANCEL (xprocess); +CREATE INDEX PP_E_CANCEL_readDataPathList_element ON PP_E_CANCEL_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_CANCEL_readDataPathList_join ON PP_E_CANCEL_readDataPathList (CANCEL_XID); +CREATE INDEX PP_E_CANCEL_readGroupList_element ON PP_E_CANCEL_readGroupList (xreadGroupList); +CREATE INDEX PP_E_CANCEL_readGroupList_join ON PP_E_CANCEL_readGroupList (CANCEL_XID); +CREATE INDEX PP_E_CANCEL_readIdentityList_element ON PP_E_CANCEL_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_CANCEL_readIdentityList_join ON PP_E_CANCEL_readIdentityList (CANCEL_XID); +CREATE INDEX PP_E_CANCEL_readUnitList_element ON PP_E_CANCEL_readUnitList (xreadUnitList); +CREATE INDEX PP_E_CANCEL_readUnitList_join ON PP_E_CANCEL_readUnitList (CANCEL_XID); +CREATE INDEX PP_E_CANCEL_reviewDataPathList_element ON PP_E_CANCEL_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_CANCEL_reviewDataPathList_join ON PP_E_CANCEL_reviewDataPathList (CANCEL_XID); +CREATE INDEX PP_E_CANCEL_reviewGroupList_element ON PP_E_CANCEL_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_CANCEL_reviewGroupList_join ON PP_E_CANCEL_reviewGroupList (CANCEL_XID); +CREATE INDEX PP_E_CANCEL_reviewIdentityList_element ON PP_E_CANCEL_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_CANCEL_reviewIdentityList_join ON PP_E_CANCEL_reviewIdentityList (CANCEL_XID); +CREATE INDEX PP_E_CANCEL_reviewUnitList_element ON PP_E_CANCEL_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_CANCEL_reviewUnitList_join ON PP_E_CANCEL_reviewUnitList (CANCEL_XID); +CREATE INDEX PP_E_CHOICE_allowReroute ON PP_E_CHOICE (xallowReroute); +CREATE INDEX PP_E_CHOICE_allowRerouteTo ON PP_E_CHOICE (xallowRerouteTo); +CREATE INDEX PP_E_CHOICE_form ON PP_E_CHOICE (xform); +CREATE INDEX PP_E_CHOICE_process ON PP_E_CHOICE (xprocess); +CREATE INDEX PP_E_CHOICE_readDataPathList_element ON PP_E_CHOICE_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_CHOICE_readDataPathList_join ON PP_E_CHOICE_readDataPathList (CHOICE_XID); +CREATE INDEX PP_E_CHOICE_readGroupList_element ON PP_E_CHOICE_readGroupList (xreadGroupList); +CREATE INDEX PP_E_CHOICE_readGroupList_join ON PP_E_CHOICE_readGroupList (CHOICE_XID); +CREATE INDEX PP_E_CHOICE_readIdentityList_element ON PP_E_CHOICE_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_CHOICE_readIdentityList_join ON PP_E_CHOICE_readIdentityList (CHOICE_XID); +CREATE INDEX PP_E_CHOICE_readUnitList_element ON PP_E_CHOICE_readUnitList (xreadUnitList); +CREATE INDEX PP_E_CHOICE_readUnitList_join ON PP_E_CHOICE_readUnitList (CHOICE_XID); +CREATE INDEX PP_E_CHOICE_reviewDataPathList_element ON PP_E_CHOICE_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_CHOICE_reviewDataPathList_join ON PP_E_CHOICE_reviewDataPathList (CHOICE_XID); +CREATE INDEX PP_E_CHOICE_reviewGroupList_element ON PP_E_CHOICE_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_CHOICE_reviewGroupList_join ON PP_E_CHOICE_reviewGroupList (CHOICE_XID); +CREATE INDEX PP_E_CHOICE_reviewIdentityList_element ON PP_E_CHOICE_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_CHOICE_reviewIdentityList_join ON PP_E_CHOICE_reviewIdentityList (CHOICE_XID); +CREATE INDEX PP_E_CHOICE_reviewUnitList_element ON PP_E_CHOICE_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_CHOICE_reviewUnitList_join ON PP_E_CHOICE_reviewUnitList (CHOICE_XID); +CREATE INDEX PP_E_CHOICE_routeList_element ON PP_E_CHOICE_routeList (xrouteList); +CREATE INDEX PP_E_CHOICE_routeList_join ON PP_E_CHOICE_routeList (CHOICE_XID); +CREATE INDEX PP_E_DELAY_allowReroute ON PP_E_DELAY (xallowReroute); +CREATE INDEX PP_E_DELAY_allowRerouteTo ON PP_E_DELAY (xallowRerouteTo); +CREATE INDEX PP_E_DELAY_form ON PP_E_DELAY (xform); +CREATE INDEX PP_E_DELAY_process ON PP_E_DELAY (xprocess); +CREATE INDEX PP_E_DELAY_readDataPathList_element ON PP_E_DELAY_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_DELAY_readDataPathList_join ON PP_E_DELAY_readDataPathList (DELAY_XID); +CREATE INDEX PP_E_DELAY_readGroupList_element ON PP_E_DELAY_readGroupList (xreadGroupList); +CREATE INDEX PP_E_DELAY_readGroupList_join ON PP_E_DELAY_readGroupList (DELAY_XID); +CREATE INDEX PP_E_DELAY_readIdentityList_element ON PP_E_DELAY_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_DELAY_readIdentityList_join ON PP_E_DELAY_readIdentityList (DELAY_XID); +CREATE INDEX PP_E_DELAY_readUnitList_element ON PP_E_DELAY_readUnitList (xreadUnitList); +CREATE INDEX PP_E_DELAY_readUnitList_join ON PP_E_DELAY_readUnitList (DELAY_XID); +CREATE INDEX PP_E_DELAY_reviewDataPathList_element ON PP_E_DELAY_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_DELAY_reviewDataPathList_join ON PP_E_DELAY_reviewDataPathList (DELAY_XID); +CREATE INDEX PP_E_DELAY_reviewGroupList_element ON PP_E_DELAY_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_DELAY_reviewGroupList_join ON PP_E_DELAY_reviewGroupList (DELAY_XID); +CREATE INDEX PP_E_DELAY_reviewIdentityList_element ON PP_E_DELAY_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_DELAY_reviewIdentityList_join ON PP_E_DELAY_reviewIdentityList (DELAY_XID); +CREATE INDEX PP_E_DELAY_reviewUnitList_element ON PP_E_DELAY_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_DELAY_reviewUnitList_join ON PP_E_DELAY_reviewUnitList (DELAY_XID); +CREATE INDEX PP_E_EMBED_allowReroute ON PP_E_EMBED (xallowReroute); +CREATE INDEX PP_E_EMBED_allowRerouteTo ON PP_E_EMBED (xallowRerouteTo); +CREATE INDEX PP_E_EMBED_form ON PP_E_EMBED (xform); +CREATE INDEX PP_E_EMBED_inheritAttachment ON PP_E_EMBED (xinheritAttachment); +CREATE INDEX PP_E_EMBED_inheritData ON PP_E_EMBED (xinheritData); +CREATE INDEX PP_E_EMBED_process ON PP_E_EMBED (xprocess); +CREATE INDEX PP_E_EMBED_targetApplication ON PP_E_EMBED (xtargetApplication); +CREATE INDEX PP_E_EMBED_targetApplicationAlias ON PP_E_EMBED (xtargetApplicationAlias); +CREATE INDEX PP_E_EMBED_targetApplicationName ON PP_E_EMBED (xtargetApplicationName); +CREATE INDEX PP_E_EMBED_targetIdentity ON PP_E_EMBED (xtargetIdentity); +CREATE INDEX PP_E_EMBED_targetProcess ON PP_E_EMBED (xtargetProcess); +CREATE INDEX PP_E_EMBED_targetProcessAlias ON PP_E_EMBED (xtargetProcessAlias); +CREATE INDEX PP_E_EMBED_targetProcessName ON PP_E_EMBED (xtargetProcessName); +CREATE INDEX PP_E_EMBED_readDataPathList_element ON PP_E_EMBED_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_EMBED_readDataPathList_join ON PP_E_EMBED_readDataPathList (EMBED_XID); +CREATE INDEX PP_E_EMBED_readGroupList_element ON PP_E_EMBED_readGroupList (xreadGroupList); +CREATE INDEX PP_E_EMBED_readGroupList_join ON PP_E_EMBED_readGroupList (EMBED_XID); +CREATE INDEX PP_E_EMBED_readIdentityList_element ON PP_E_EMBED_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_EMBED_readIdentityList_join ON PP_E_EMBED_readIdentityList (EMBED_XID); +CREATE INDEX PP_E_EMBED_readUnitList_element ON PP_E_EMBED_readUnitList (xreadUnitList); +CREATE INDEX PP_E_EMBED_readUnitList_join ON PP_E_EMBED_readUnitList (EMBED_XID); +CREATE INDEX PP_E_EMBED_reviewDataPathList_element ON PP_E_EMBED_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_EMBED_reviewDataPathList_join ON PP_E_EMBED_reviewDataPathList (EMBED_XID); +CREATE INDEX PP_E_EMBED_reviewGroupList_element ON PP_E_EMBED_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_EMBED_reviewGroupList_join ON PP_E_EMBED_reviewGroupList (EMBED_XID); +CREATE INDEX PP_E_EMBED_reviewIdentityList_element ON PP_E_EMBED_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_EMBED_reviewIdentityList_join ON PP_E_EMBED_reviewIdentityList (EMBED_XID); +CREATE INDEX PP_E_EMBED_reviewUnitList_element ON PP_E_EMBED_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_EMBED_reviewUnitList_join ON PP_E_EMBED_reviewUnitList (EMBED_XID); +CREATE INDEX PP_E_END_allowReroute ON PP_E_END (xallowReroute); +CREATE INDEX PP_E_END_allowRerouteTo ON PP_E_END (xallowRerouteTo); +CREATE INDEX PP_E_END_form ON PP_E_END (xform); +CREATE INDEX PP_E_END_process ON PP_E_END (xprocess); +CREATE INDEX PP_E_END_readDataPathList_element ON PP_E_END_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_END_readDataPathList_join ON PP_E_END_readDataPathList (END_XID); +CREATE INDEX PP_E_END_readGroupList_element ON PP_E_END_readGroupList (xreadGroupList); +CREATE INDEX PP_E_END_readGroupList_join ON PP_E_END_readGroupList (END_XID); +CREATE INDEX PP_E_END_readIdentityList_element ON PP_E_END_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_END_readIdentityList_join ON PP_E_END_readIdentityList (END_XID); +CREATE INDEX PP_E_END_readUnitList_element ON PP_E_END_readUnitList (xreadUnitList); +CREATE INDEX PP_E_END_readUnitList_join ON PP_E_END_readUnitList (END_XID); +CREATE INDEX PP_E_END_reviewDataPathList_element ON PP_E_END_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_END_reviewDataPathList_join ON PP_E_END_reviewDataPathList (END_XID); +CREATE INDEX PP_E_END_reviewGroupList_element ON PP_E_END_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_END_reviewGroupList_join ON PP_E_END_reviewGroupList (END_XID); +CREATE INDEX PP_E_END_reviewIdentityList_element ON PP_E_END_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_END_reviewIdentityList_join ON PP_E_END_reviewIdentityList (END_XID); +CREATE INDEX PP_E_END_reviewUnitList_element ON PP_E_END_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_END_reviewUnitList_join ON PP_E_END_reviewUnitList (END_XID); +CREATE INDEX PP_E_FILE_application ON PP_E_FILE (xapplication); +CREATE INDEX PP_E_FILE_length ON PP_E_FILE (xlength); +CREATE INDEX PP_E_FORM_application ON PP_E_FORM (xapplication); +CREATE INDEX PP_E_FORM_category ON PP_E_FORM (xcategory); +CREATE INDEX PP_E_FORMFIELD_application ON PP_E_FORMFIELD (xapplication); +CREATE INDEX PP_E_FORMFIELD_form ON PP_E_FORMFIELD (xform); +CREATE INDEX PP_E_FORMVERSION_form ON PP_E_FORMVERSION (xform); +CREATE INDEX PP_E_INVOKE_allowReroute ON PP_E_INVOKE (xallowReroute); +CREATE INDEX PP_E_INVOKE_allowRerouteTo ON PP_E_INVOKE (xallowRerouteTo); +CREATE INDEX PP_E_INVOKE_form ON PP_E_INVOKE (xform); +CREATE INDEX PP_E_INVOKE_process ON PP_E_INVOKE (xprocess); +CREATE INDEX PP_E_INVOKE_readDataPathList_element ON PP_E_INVOKE_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_INVOKE_readDataPathList_join ON PP_E_INVOKE_readDataPathList (INVOKE_XID); +CREATE INDEX PP_E_INVOKE_readGroupList_element ON PP_E_INVOKE_readGroupList (xreadGroupList); +CREATE INDEX PP_E_INVOKE_readGroupList_join ON PP_E_INVOKE_readGroupList (INVOKE_XID); +CREATE INDEX PP_E_INVOKE_readIdentityList_element ON PP_E_INVOKE_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_INVOKE_readIdentityList_join ON PP_E_INVOKE_readIdentityList (INVOKE_XID); +CREATE INDEX PP_E_INVOKE_readUnitList_element ON PP_E_INVOKE_readUnitList (xreadUnitList); +CREATE INDEX PP_E_INVOKE_readUnitList_join ON PP_E_INVOKE_readUnitList (INVOKE_XID); +CREATE INDEX PP_E_INVOKE_reviewDataPathList_element ON PP_E_INVOKE_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_INVOKE_reviewDataPathList_join ON PP_E_INVOKE_reviewDataPathList (INVOKE_XID); +CREATE INDEX PP_E_INVOKE_reviewGroupList_element ON PP_E_INVOKE_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_INVOKE_reviewGroupList_join ON PP_E_INVOKE_reviewGroupList (INVOKE_XID); +CREATE INDEX PP_E_INVOKE_reviewIdentityList_element ON PP_E_INVOKE_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_INVOKE_reviewIdentityList_join ON PP_E_INVOKE_reviewIdentityList (INVOKE_XID); +CREATE INDEX PP_E_INVOKE_reviewUnitList_element ON PP_E_INVOKE_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_INVOKE_reviewUnitList_join ON PP_E_INVOKE_reviewUnitList (INVOKE_XID); +CREATE INDEX PP_E_MANUAL_allowReroute ON PP_E_MANUAL (xallowReroute); +CREATE INDEX PP_E_MANUAL_allowRerouteTo ON PP_E_MANUAL (xallowRerouteTo); +CREATE INDEX PP_E_MANUAL_form ON PP_E_MANUAL (xform); +CREATE INDEX PP_E_MANUAL_manualMode ON PP_E_MANUAL (xmanualMode); +CREATE INDEX PP_E_MANUAL_process ON PP_E_MANUAL (xprocess); +CREATE INDEX PP_E_MANUAL_taskExpireType ON PP_E_MANUAL (xtaskExpireType); +CREATE INDEX PP_E_MANUAL_readDataPathList_element ON PP_E_MANUAL_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_MANUAL_readDataPathList_join ON PP_E_MANUAL_readDataPathList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_readGroupList_element ON PP_E_MANUAL_readGroupList (xreadGroupList); +CREATE INDEX PP_E_MANUAL_readGroupList_join ON PP_E_MANUAL_readGroupList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_readIdentityList_element ON PP_E_MANUAL_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_MANUAL_readIdentityList_join ON PP_E_MANUAL_readIdentityList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_readUnitList_element ON PP_E_MANUAL_readUnitList (xreadUnitList); +CREATE INDEX PP_E_MANUAL_readUnitList_join ON PP_E_MANUAL_readUnitList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_reviewDataPathList_element ON PP_E_MANUAL_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_MANUAL_reviewDataPathList_join ON PP_E_MANUAL_reviewDataPathList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_reviewGroupList_element ON PP_E_MANUAL_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_MANUAL_reviewGroupList_join ON PP_E_MANUAL_reviewGroupList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_reviewIdentityList_element ON PP_E_MANUAL_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_MANUAL_reviewIdentityList_join ON PP_E_MANUAL_reviewIdentityList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_reviewUnitList_element ON PP_E_MANUAL_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_MANUAL_reviewUnitList_join ON PP_E_MANUAL_reviewUnitList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_routeList_element ON PP_E_MANUAL_routeList (xrouteList); +CREATE INDEX PP_E_MANUAL_routeList_join ON PP_E_MANUAL_routeList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_taskDataPathList_element ON PP_E_MANUAL_taskDataPathList (xtaskDataPathList); +CREATE INDEX PP_E_MANUAL_taskDataPathList_join ON PP_E_MANUAL_taskDataPathList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_taskGroupList_element ON PP_E_MANUAL_taskGroupList (xtaskGroupList); +CREATE INDEX PP_E_MANUAL_taskGroupList_join ON PP_E_MANUAL_taskGroupList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_taskIdentityList_element ON PP_E_MANUAL_taskIdentityList (xtaskIdentityList); +CREATE INDEX PP_E_MANUAL_taskIdentityList_join ON PP_E_MANUAL_taskIdentityList (MANUAL_XID); +CREATE INDEX PP_E_MANUAL_taskUnitList_element ON PP_E_MANUAL_taskUnitList (xtaskUnitList); +CREATE INDEX PP_E_MANUAL_taskUnitList_join ON PP_E_MANUAL_taskUnitList (MANUAL_XID); +CREATE INDEX PP_E_MAPPING_application ON PP_E_MAPPING (xapplication); +CREATE INDEX PP_E_MAPPING_process ON PP_E_MAPPING (xprocess); +CREATE INDEX PP_E_MAPPING_tableName ON PP_E_MAPPING (xtableName); +CREATE INDEX PP_E_MERGE_allowReroute ON PP_E_MERGE (xallowReroute); +CREATE INDEX PP_E_MERGE_allowRerouteTo ON PP_E_MERGE (xallowRerouteTo); +CREATE INDEX PP_E_MERGE_form ON PP_E_MERGE (xform); +CREATE INDEX PP_E_MERGE_process ON PP_E_MERGE (xprocess); +CREATE INDEX PP_E_MERGE_readDataPathList_element ON PP_E_MERGE_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_MERGE_readDataPathList_join ON PP_E_MERGE_readDataPathList (MERGE_XID); +CREATE INDEX PP_E_MERGE_readGroupList_element ON PP_E_MERGE_readGroupList (xreadGroupList); +CREATE INDEX PP_E_MERGE_readGroupList_join ON PP_E_MERGE_readGroupList (MERGE_XID); +CREATE INDEX PP_E_MERGE_readIdentityList_element ON PP_E_MERGE_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_MERGE_readIdentityList_join ON PP_E_MERGE_readIdentityList (MERGE_XID); +CREATE INDEX PP_E_MERGE_readUnitList_element ON PP_E_MERGE_readUnitList (xreadUnitList); +CREATE INDEX PP_E_MERGE_readUnitList_join ON PP_E_MERGE_readUnitList (MERGE_XID); +CREATE INDEX PP_E_MERGE_reviewDataPathList_element ON PP_E_MERGE_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_MERGE_reviewDataPathList_join ON PP_E_MERGE_reviewDataPathList (MERGE_XID); +CREATE INDEX PP_E_MERGE_reviewGroupList_element ON PP_E_MERGE_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_MERGE_reviewGroupList_join ON PP_E_MERGE_reviewGroupList (MERGE_XID); +CREATE INDEX PP_E_MERGE_reviewIdentityList_element ON PP_E_MERGE_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_MERGE_reviewIdentityList_join ON PP_E_MERGE_reviewIdentityList (MERGE_XID); +CREATE INDEX PP_E_MERGE_reviewUnitList_element ON PP_E_MERGE_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_MERGE_reviewUnitList_join ON PP_E_MERGE_reviewUnitList (MERGE_XID); +CREATE INDEX PP_E_MESSAGE_allowReroute ON PP_E_MESSAGE (xallowReroute); +CREATE INDEX PP_E_MESSAGE_allowRerouteTo ON PP_E_MESSAGE (xallowRerouteTo); +CREATE INDEX PP_E_MESSAGE_form ON PP_E_MESSAGE (xform); +CREATE INDEX PP_E_MESSAGE_process ON PP_E_MESSAGE (xprocess); +CREATE INDEX PP_E_MESSAGE_readDataPathList_element ON PP_E_MESSAGE_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_MESSAGE_readDataPathList_join ON PP_E_MESSAGE_readDataPathList (MESSAGE_XID); +CREATE INDEX PP_E_MESSAGE_readGroupList_element ON PP_E_MESSAGE_readGroupList (xreadGroupList); +CREATE INDEX PP_E_MESSAGE_readGroupList_join ON PP_E_MESSAGE_readGroupList (MESSAGE_XID); +CREATE INDEX PP_E_MESSAGE_readIdentityList_element ON PP_E_MESSAGE_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_MESSAGE_readIdentityList_join ON PP_E_MESSAGE_readIdentityList (MESSAGE_XID); +CREATE INDEX PP_E_MESSAGE_readUnitList_element ON PP_E_MESSAGE_readUnitList (xreadUnitList); +CREATE INDEX PP_E_MESSAGE_readUnitList_join ON PP_E_MESSAGE_readUnitList (MESSAGE_XID); +CREATE INDEX PP_E_MESSAGE_reviewDataPathList_element ON PP_E_MESSAGE_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_MESSAGE_reviewDataPathList_join ON PP_E_MESSAGE_reviewDataPathList (MESSAGE_XID); +CREATE INDEX PP_E_MESSAGE_reviewGroupList_element ON PP_E_MESSAGE_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_MESSAGE_reviewGroupList_join ON PP_E_MESSAGE_reviewGroupList (MESSAGE_XID); +CREATE INDEX PP_E_MESSAGE_reviewIdentityList_element ON PP_E_MESSAGE_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_MESSAGE_reviewIdentityList_join ON PP_E_MESSAGE_reviewIdentityList (MESSAGE_XID); +CREATE INDEX PP_E_MESSAGE_reviewUnitList_element ON PP_E_MESSAGE_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_MESSAGE_reviewUnitList_join ON PP_E_MESSAGE_reviewUnitList (MESSAGE_XID); +CREATE INDEX PP_E_PARALLEL_allowReroute ON PP_E_PARALLEL (xallowReroute); +CREATE INDEX PP_E_PARALLEL_allowRerouteTo ON PP_E_PARALLEL (xallowRerouteTo); +CREATE INDEX PP_E_PARALLEL_form ON PP_E_PARALLEL (xform); +CREATE INDEX PP_E_PARALLEL_process ON PP_E_PARALLEL (xprocess); +CREATE INDEX PP_E_PARALLEL_readDataPathList_element ON PP_E_PARALLEL_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_PARALLEL_readDataPathList_join ON PP_E_PARALLEL_readDataPathList (PARALLEL_XID); +CREATE INDEX PP_E_PARALLEL_readGroupList_element ON PP_E_PARALLEL_readGroupList (xreadGroupList); +CREATE INDEX PP_E_PARALLEL_readGroupList_join ON PP_E_PARALLEL_readGroupList (PARALLEL_XID); +CREATE INDEX PP_E_PARALLEL_readIdentityList_element ON PP_E_PARALLEL_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_PARALLEL_readIdentityList_join ON PP_E_PARALLEL_readIdentityList (PARALLEL_XID); +CREATE INDEX PP_E_PARALLEL_readUnitList_element ON PP_E_PARALLEL_readUnitList (xreadUnitList); +CREATE INDEX PP_E_PARALLEL_readUnitList_join ON PP_E_PARALLEL_readUnitList (PARALLEL_XID); +CREATE INDEX PP_E_PARALLEL_reviewDataPathList_element ON PP_E_PARALLEL_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_PARALLEL_reviewDataPathList_join ON PP_E_PARALLEL_reviewDataPathList (PARALLEL_XID); +CREATE INDEX PP_E_PARALLEL_reviewGroupList_element ON PP_E_PARALLEL_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_PARALLEL_reviewGroupList_join ON PP_E_PARALLEL_reviewGroupList (PARALLEL_XID); +CREATE INDEX PP_E_PARALLEL_reviewIdentityList_element ON PP_E_PARALLEL_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_PARALLEL_reviewIdentityList_join ON PP_E_PARALLEL_reviewIdentityList (PARALLEL_XID); +CREATE INDEX PP_E_PARALLEL_reviewUnitList_element ON PP_E_PARALLEL_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_PARALLEL_reviewUnitList_join ON PP_E_PARALLEL_reviewUnitList (PARALLEL_XID); +CREATE INDEX PP_E_PARALLEL_routeList_element ON PP_E_PARALLEL_routeList (xrouteList); +CREATE INDEX PP_E_PARALLEL_routeList_join ON PP_E_PARALLEL_routeList (PARALLEL_XID); +CREATE INDEX PP_E_PROCESSVERSION_process ON PP_E_PROCESSVERSION (xprocess); +CREATE INDEX PP_E_PROCESS_controllerList_element ON PP_E_PROCESS_controllerList (xcontrollerList); +CREATE INDEX PP_E_PROCESS_controllerList_join ON PP_E_PROCESS_controllerList (PROCESS_XID); +CREATE INDEX PP_E_PROCESS_startableIdentityList ON PP_E_PROCESS_startableIdentityList (PROCESS_XID); +CREATE INDEX PP_E_PROCESS_startableIdentityList_join ON PP_E_PROCESS_startableIdentityList (xstartableIdentityList); +CREATE INDEX PP_E_PROCESS_startableUnitList_element ON PP_E_PROCESS_startableUnitList (xstartableUnitList); +CREATE INDEX PP_E_PROCESS_startableUnitList_join ON PP_E_PROCESS_startableUnitList (PROCESS_XID); +CREATE INDEX PP_E_QUERYSTAT_application ON PP_E_QUERYSTAT (xapplication); +CREATE INDEX PP_E_QUERYSTAT_creatorPerson ON PP_E_QUERYSTAT (xcreatorPerson); +CREATE INDEX PP_E_QUERYSTAT_lastUpdatePerson ON PP_E_QUERYSTAT (xlastUpdatePerson); +CREATE INDEX PP_E_QUERYSTAT_lastUpdateTime ON PP_E_QUERYSTAT (xlastUpdateTime); +CREATE INDEX PP_E_QUERYSTAT_name ON PP_E_QUERYSTAT (xname); +CREATE INDEX PP_E_QUERYSTAT_queryView ON PP_E_QUERYSTAT (xqueryView); +CREATE INDEX PP_E_QUERYSTAT_queryViewAlias ON PP_E_QUERYSTAT (xqueryViewAlias); +CREATE INDEX PP_E_QUERYSTAT_queryViewName ON PP_E_QUERYSTAT (xqueryViewName); +CREATE INDEX PP_E_QUERYSTAT_timingEnable ON PP_E_QUERYSTAT (xtimingEnable); +CREATE INDEX PP_E_QUERYSTAT_timingInterval ON PP_E_QUERYSTAT (xtimingInterval); +CREATE INDEX PP_E_QUERYSTATTIMED_expiredTime ON PP_E_QUERYSTATTIMED (xexpiredTime); +CREATE INDEX PP_E_QUERYSTATTIMED_project ON PP_E_QUERYSTATTIMED (xproject); +CREATE INDEX PP_E_QUERYSTATTIMED_queryStat ON PP_E_QUERYSTATTIMED (xqueryStat); +CREATE INDEX PP_E_QUERYSTATTIMED_scheduleTime ON PP_E_QUERYSTATTIMED (xscheduleTime); +CREATE INDEX PP_E_QUERYSTATTIMED_timingInterval ON PP_E_QUERYSTATTIMED (xtimingInterval); +CREATE INDEX PP_E_QUERYSTAT_availableIdentityList_element ON PP_E_QUERYSTAT_availableIdentityList (xavailableIdentityList); +CREATE INDEX PP_E_QUERYSTAT_availableIdentityList_join ON PP_E_QUERYSTAT_availableIdentityList (QUERYSTAT_XID); +CREATE INDEX PP_E_QUERYSTAT_availablePersonList_element ON PP_E_QUERYSTAT_availablePersonList (xavailablePersonList); +CREATE INDEX PP_E_QUERYSTAT_availablePersonList_join ON PP_E_QUERYSTAT_availablePersonList (QUERYSTAT_XID); +CREATE INDEX PP_E_QUERYSTAT_availableUnitList_element ON PP_E_QUERYSTAT_availableUnitList (xavailableUnitList); +CREATE INDEX PP_E_QUERYSTAT_availableUnitList_join ON PP_E_QUERYSTAT_availableUnitList (QUERYSTAT_XID); +CREATE INDEX PP_E_QUERYSTAT_controllerList_element ON PP_E_QUERYSTAT_controllerList (xcontrollerList); +CREATE INDEX PP_E_QUERYSTAT_controllerList_join ON PP_E_QUERYSTAT_controllerList (QUERYSTAT_XID); +CREATE INDEX PP_E_QUERYVIEW_application ON PP_E_QUERYVIEW (xapplication); +CREATE INDEX PP_E_QUERYVIEW_creatorPerson ON PP_E_QUERYVIEW (xcreatorPerson); +CREATE INDEX PP_E_QUERYVIEW_display ON PP_E_QUERYVIEW (xdisplay); +CREATE INDEX PP_E_QUERYVIEW_lastUpdatePerson ON PP_E_QUERYVIEW (xlastUpdatePerson); +CREATE INDEX PP_E_QUERYVIEW_lastUpdateTime ON PP_E_QUERYVIEW (xlastUpdateTime); +CREATE INDEX PP_E_QUERYVIEW_name ON PP_E_QUERYVIEW (xname); +CREATE INDEX PP_E_QUERYVIEW_timingEnable ON PP_E_QUERYVIEW (xtimingEnable); +CREATE INDEX PP_E_QUERYVIEW_timingInterval ON PP_E_QUERYVIEW (xtimingInterval); +CREATE INDEX PP_E_QUERYVIEW_timingTouch ON PP_E_QUERYVIEW (xtimingTouch); +CREATE INDEX PP_E_QUERYVIEW_availableIdentityList_element ON PP_E_QUERYVIEW_availableIdentityList (xavailableIdentityList); +CREATE INDEX PP_E_QUERYVIEW_availableIdentityList_join ON PP_E_QUERYVIEW_availableIdentityList (QUERYVIEW_XID); +CREATE INDEX PP_E_QUERYVIEW_availablePersonList_element ON PP_E_QUERYVIEW_availablePersonList (xavailablePersonList); +CREATE INDEX PP_E_QUERYVIEW_availablePersonList_join ON PP_E_QUERYVIEW_availablePersonList (QUERYVIEW_XID); +CREATE INDEX PP_E_QUERYVIEW_availableUnitList_element ON PP_E_QUERYVIEW_availableUnitList (xavailableUnitList); +CREATE INDEX PP_E_QUERYVIEW_availableUnitList_join ON PP_E_QUERYVIEW_availableUnitList (QUERYVIEW_XID); +CREATE INDEX PP_E_QUERYVIEW_controllerList_element ON PP_E_QUERYVIEW_controllerList (xcontrollerList); +CREATE INDEX PP_E_QUERYVIEW_controllerList_join ON PP_E_QUERYVIEW_controllerList (QUERYVIEW_XID); +CREATE INDEX PP_E_ROUTE_activity ON PP_E_ROUTE (xactivity); +CREATE INDEX PP_E_ROUTE_activityType ON PP_E_ROUTE (xactivityType); +CREATE INDEX PP_E_ROUTE_orderNumber ON PP_E_ROUTE (xorderNumber); +CREATE INDEX PP_E_ROUTE_process ON PP_E_ROUTE (xprocess); +CREATE INDEX PP_E_SCRIPT_application ON PP_E_SCRIPT (xapplication); +CREATE INDEX PP_E_SCRIPTVERSION_script ON PP_E_SCRIPTVERSION (xscript); +CREATE INDEX PP_E_SCRIPT_dependScriptList_element ON PP_E_SCRIPT_dependScriptList (xdependScriptList); +CREATE INDEX PP_E_SCRIPT_dependScriptList_join ON PP_E_SCRIPT_dependScriptList (SCRIPT_XID); +CREATE INDEX PP_E_SERVICE_allowReroute ON PP_E_SERVICE (xallowReroute); +CREATE INDEX PP_E_SERVICE_allowRerouteTo ON PP_E_SERVICE (xallowRerouteTo); +CREATE INDEX PP_E_SERVICE_form ON PP_E_SERVICE (xform); +CREATE INDEX PP_E_SERVICE_process ON PP_E_SERVICE (xprocess); +CREATE INDEX PP_E_SERVICE_readDataPathList_element ON PP_E_SERVICE_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_SERVICE_readDataPathList_join ON PP_E_SERVICE_readDataPathList (SERVICE_XID); +CREATE INDEX PP_E_SERVICE_readGroupList_element ON PP_E_SERVICE_readGroupList (xreadGroupList); +CREATE INDEX PP_E_SERVICE_readGroupList_join ON PP_E_SERVICE_readGroupList (SERVICE_XID); +CREATE INDEX PP_E_SERVICE_readIdentityList_element ON PP_E_SERVICE_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_SERVICE_readIdentityList_join ON PP_E_SERVICE_readIdentityList (SERVICE_XID); +CREATE INDEX PP_E_SERVICE_readUnitList_element ON PP_E_SERVICE_readUnitList (xreadUnitList); +CREATE INDEX PP_E_SERVICE_readUnitList_join ON PP_E_SERVICE_readUnitList (SERVICE_XID); +CREATE INDEX PP_E_SERVICE_reviewDataPathList_element ON PP_E_SERVICE_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_SERVICE_reviewDataPathList_join ON PP_E_SERVICE_reviewDataPathList (SERVICE_XID); +CREATE INDEX PP_E_SERVICE_reviewGroupList_element ON PP_E_SERVICE_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_SERVICE_reviewGroupList_join ON PP_E_SERVICE_reviewGroupList (SERVICE_XID); +CREATE INDEX PP_E_SERVICE_reviewIdentityList_element ON PP_E_SERVICE_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_SERVICE_reviewIdentityList_join ON PP_E_SERVICE_reviewIdentityList (SERVICE_XID); +CREATE INDEX PP_E_SERVICE_reviewUnitList_element ON PP_E_SERVICE_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_SERVICE_reviewUnitList_join ON PP_E_SERVICE_reviewUnitList (SERVICE_XID); +CREATE INDEX PP_E_SERVICE_trustAddressList_element ON PP_E_SERVICE_trustAddressList (xtrustAddressList); +CREATE INDEX PP_E_SERVICE_trustAddressList_join ON PP_E_SERVICE_trustAddressList (SERVICE_XID); +CREATE INDEX PP_E_SPLIT_allowReroute ON PP_E_SPLIT (xallowReroute); +CREATE INDEX PP_E_SPLIT_allowRerouteTo ON PP_E_SPLIT (xallowRerouteTo); +CREATE INDEX PP_E_SPLIT_form ON PP_E_SPLIT (xform); +CREATE INDEX PP_E_SPLIT_process ON PP_E_SPLIT (xprocess); +CREATE INDEX PP_E_SPLIT_readDataPathList_element ON PP_E_SPLIT_readDataPathList (xreadDataPathList); +CREATE INDEX PP_E_SPLIT_readDataPathList_join ON PP_E_SPLIT_readDataPathList (SPLIT_XID); +CREATE INDEX PP_E_SPLIT_readGroupList_element ON PP_E_SPLIT_readGroupList (xreadGroupList); +CREATE INDEX PP_E_SPLIT_readGroupList_join ON PP_E_SPLIT_readGroupList (SPLIT_XID); +CREATE INDEX PP_E_SPLIT_readIdentityList_element ON PP_E_SPLIT_readIdentityList (xreadIdentityList); +CREATE INDEX PP_E_SPLIT_readIdentityList_join ON PP_E_SPLIT_readIdentityList (SPLIT_XID); +CREATE INDEX PP_E_SPLIT_readUnitList_element ON PP_E_SPLIT_readUnitList (xreadUnitList); +CREATE INDEX PP_E_SPLIT_readUnitList_join ON PP_E_SPLIT_readUnitList (SPLIT_XID); +CREATE INDEX PP_E_SPLIT_reviewDataPathList_element ON PP_E_SPLIT_reviewDataPathList (xreviewDataPathList); +CREATE INDEX PP_E_SPLIT_reviewDataPathList_join ON PP_E_SPLIT_reviewDataPathList (SPLIT_XID); +CREATE INDEX PP_E_SPLIT_reviewGroupList_element ON PP_E_SPLIT_reviewGroupList (xreviewGroupList); +CREATE INDEX PP_E_SPLIT_reviewGroupList_join ON PP_E_SPLIT_reviewGroupList (SPLIT_XID); +CREATE INDEX PP_E_SPLIT_reviewIdentityList_element ON PP_E_SPLIT_reviewIdentityList (xreviewIdentityList); +CREATE INDEX PP_E_SPLIT_reviewIdentityList_join ON PP_E_SPLIT_reviewIdentityList (SPLIT_XID); +CREATE INDEX PP_E_SPLIT_reviewUnitList_element ON PP_E_SPLIT_reviewUnitList (xreviewUnitList); +CREATE INDEX PP_E_SPLIT_reviewUnitList_join ON PP_E_SPLIT_reviewUnitList (SPLIT_XID); +CREATE INDEX PP_E_TEMPLATEFORM_category ON PP_E_TEMPLATEFORM (xcategory); +CREATE INDEX PP_L_PROCESSINGERROR_message ON PP_L_PROCESSINGERROR (xmessage); +CREATE INDEX PP_L_PROCESSINGERROR_work ON PP_L_PROCESSINGERROR (xwork); +CREATE INDEX PP_T_SERVICEVALUE_application ON PP_T_SERVICEVALUE (xapplication); +CREATE INDEX PP_T_SERVICEVALUE_process ON PP_T_SERVICEVALUE (xprocess); +CREATE INDEX PP_T_SERVICEVALUE_service ON PP_T_SERVICEVALUE (xservice); +CREATE INDEX PP_T_SERVICEVALUE_work ON PP_T_SERVICEVALUE (xwork); +CREATE INDEX PTL_FILE_length ON PTL_FILE (xlength); +CREATE INDEX PTL_FILE_portal ON PTL_FILE (xportal); +CREATE INDEX PTL_PAGE_alias ON PTL_PAGE (xalias); +CREATE INDEX PTL_PAGE_name ON PTL_PAGE (xname); +CREATE INDEX PTL_PAGE_portal ON PTL_PAGE (xportal); +CREATE INDEX PTL_PORTAL_alias ON PTL_PORTAL (xalias); +CREATE INDEX PTL_PORTAL_creatorPerson ON PTL_PORTAL (xcreatorPerson); +CREATE INDEX PTL_PORTAL_lastUpdatePerson ON PTL_PORTAL (xlastUpdatePerson); +CREATE INDEX PTL_PORTAL_lastUpdateTime ON PTL_PORTAL (xlastUpdateTime); +CREATE INDEX PTL_PORTAL_name ON PTL_PORTAL (xname); +CREATE INDEX PTL_PORTAL_portalCategory ON PTL_PORTAL (xportalCategory); +CREATE INDEX PTL_PORTAL_availableIdentityList_element ON PTL_PORTAL_availableIdentityList (xavailableIdentityList); +CREATE INDEX PTL_PORTAL_availableIdentityList_join ON PTL_PORTAL_availableIdentityList (PORTAL_XID); +CREATE INDEX PTL_PORTAL_availableUnitList_element ON PTL_PORTAL_availableUnitList (xavailableUnitList); +CREATE INDEX PTL_PORTAL_availableUnitList_join ON PTL_PORTAL_availableUnitList (PORTAL_XID); +CREATE INDEX PTL_PORTAL_controllerList_element ON PTL_PORTAL_controllerList (xcontrollerList); +CREATE INDEX PTL_PORTAL_controllerList_join ON PTL_PORTAL_controllerList (PORTAL_XID); +CREATE INDEX PTL_SCRIPT_alias ON PTL_SCRIPT (xalias); +CREATE INDEX PTL_SCRIPT_name ON PTL_SCRIPT (xname); +CREATE INDEX PTL_SCRIPT_portal ON PTL_SCRIPT (xportal); +CREATE INDEX PTL_SCRIPT_dependScriptList_element ON PTL_SCRIPT_dependScriptList (xdependScriptList); +CREATE INDEX PTL_SCRIPT_dependScriptList_join ON PTL_SCRIPT_dependScriptList (SCRIPT_XID); +CREATE INDEX PTL_TEMPLATEPAGE_category ON PTL_TEMPLATEPAGE (xcategory); +CREATE INDEX PTL_TEMPLATEPAGE_creatorPerson ON PTL_TEMPLATEPAGE (xcreatorPerson); +CREATE INDEX PTL_TEMPLATEPAGE_lastUpdatePerson ON PTL_TEMPLATEPAGE (xlastUpdatePerson); +CREATE INDEX PTL_TEMPLATEPAGE_lastUpdateTime ON PTL_TEMPLATEPAGE (xlastUpdateTime); +CREATE INDEX PTL_TEMPLATEPAGE_availableIdentityList_element ON PTL_TEMPLATEPAGE_availableIdentityList (xavailableIdentityList); +CREATE INDEX PTL_TEMPLATEPAGE_availableIdentityList_join ON PTL_TEMPLATEPAGE_availableIdentityList (TEMPLATEPAGE_XID); +CREATE INDEX PTL_TEMPLATEPAGE_availableUnitList ON PTL_TEMPLATEPAGE_availableUnitList (TEMPLATEPAGE_XID); +CREATE INDEX PTL_TEMPLATEPAGE_availableUnitList_element ON PTL_TEMPLATEPAGE_availableUnitList (xavailableUnitList); +CREATE INDEX PTL_TEMPLATEPAGE_controllerList_element ON PTL_TEMPLATEPAGE_controllerList (xcontrollerList); +CREATE INDEX PTL_TEMPLATEPAGE_controllerList_join ON PTL_TEMPLATEPAGE_controllerList (TEMPLATEPAGE_XID); +CREATE INDEX PTL_WIDGET_alias ON PTL_WIDGET (xalias); +CREATE INDEX PTL_WIDGET_name ON PTL_WIDGET (xname); +CREATE INDEX PTL_WIDGET_portal ON PTL_WIDGET (xportal); +CREATE INDEX QRY_ITEM_booleanValue ON QRY_ITEM (xbooleanValue); +CREATE INDEX QRY_ITEM_bundle ON QRY_ITEM (xbundle); +CREATE INDEX QRY_ITEM_dateTimeValue ON QRY_ITEM (xdateTimeValue); +CREATE INDEX QRY_ITEM_dateValue ON QRY_ITEM (xdateValue); +CREATE INDEX QRY_ITEM_itemCategory ON QRY_ITEM (xitemCategory); +CREATE INDEX QRY_ITEM_itemPrimitiveType ON QRY_ITEM (xitemPrimitiveType); +CREATE INDEX QRY_ITEM_itemStringValueType ON QRY_ITEM (xitemStringValueType); +CREATE INDEX QRY_ITEM_itemType ON QRY_ITEM (xitemType); +CREATE INDEX QRY_ITEM_numberValue ON QRY_ITEM (xnumberValue); +CREATE INDEX QRY_ITEM_path0 ON QRY_ITEM (xpath0); +CREATE INDEX QRY_ITEM_path0Location ON QRY_ITEM (xpath0Location); +CREATE INDEX QRY_ITEM_path1 ON QRY_ITEM (xpath1); +CREATE INDEX QRY_ITEM_path1Location ON QRY_ITEM (xpath1Location); +CREATE INDEX QRY_ITEM_path2 ON QRY_ITEM (xpath2); +CREATE INDEX QRY_ITEM_path2Location ON QRY_ITEM (xpath2Location); +CREATE INDEX QRY_ITEM_path3 ON QRY_ITEM (xpath3); +CREATE INDEX QRY_ITEM_path3Location ON QRY_ITEM (xpath3Location); +CREATE INDEX QRY_ITEM_path4 ON QRY_ITEM (xpath4); +CREATE INDEX QRY_ITEM_path4Location ON QRY_ITEM (xpath4Location); +CREATE INDEX QRY_ITEM_path5 ON QRY_ITEM (xpath5); +CREATE INDEX QRY_ITEM_path5Location ON QRY_ITEM (xpath5Location); +CREATE INDEX QRY_ITEM_path6 ON QRY_ITEM (xpath6); +CREATE INDEX QRY_ITEM_path6Location ON QRY_ITEM (xpath6Location); +CREATE INDEX QRY_ITEM_path7 ON QRY_ITEM (xpath7); +CREATE INDEX QRY_ITEM_path7Location ON QRY_ITEM (xpath7Location); +CREATE INDEX QRY_ITEM_stringShortValue ON QRY_ITEM (xstringShortValue); +CREATE INDEX QRY_ITEM_timeValue ON QRY_ITEM (xtimeValue); +CREATE INDEX QRY_NRL_ENTRY_bundle ON QRY_NRL_ENTRY (xbundle); +CREATE INDEX QRY_NRL_ENTRY_inValueCount ON QRY_NRL_ENTRY (xinValueCount); +CREATE INDEX QRY_NRL_ENTRY_model ON QRY_NRL_ENTRY (xmodel); +CREATE INDEX QRY_NRL_ENTRY_outValueCount ON QRY_NRL_ENTRY (xoutValueCount); +CREATE INDEX QRY_NRL_ENTRY_title ON QRY_NRL_ENTRY (xtitle); +CREATE INDEX QRY_NRL_ENTRY_inValueLabelList_element ON QRY_NRL_ENTRY_inValueLabelList (xinValueLabelList); +CREATE INDEX QRY_NRL_ENTRY_inValueLabelList_join ON QRY_NRL_ENTRY_inValueLabelList (ENTRY_XID); +CREATE INDEX QRY_NRL_ENTRY_outValueLabelList_element ON QRY_NRL_ENTRY_outValueLabelList (xoutValueLabelList); +CREATE INDEX QRY_NRL_ENTRY_outValueLabelList_join ON QRY_NRL_ENTRY_outValueLabelList (ENTRY_XID); +CREATE INDEX QRY_NRL_INTEXT_count ON QRY_NRL_INTEXT (xcount); +CREATE INDEX QRY_NRL_INTEXT_model ON QRY_NRL_INTEXT (xmodel); +CREATE INDEX QRY_NRL_INTEXT_serial ON QRY_NRL_INTEXT (xserial); +CREATE INDEX QRY_NRL_INTEXT_text ON QRY_NRL_INTEXT (xtext); +CREATE INDEX QRY_NRL_INVALUE_count ON QRY_NRL_INVALUE (xcount); +CREATE INDEX QRY_NRL_INVALUE_inTextSerial ON QRY_NRL_INVALUE (xinTextSerial); +CREATE INDEX QRY_NRL_INVALUE_model ON QRY_NRL_INVALUE (xmodel); +CREATE INDEX QRY_NRL_INVALUE_serial ON QRY_NRL_INVALUE (xserial); +CREATE INDEX QRY_NRL_INVALUE_text ON QRY_NRL_INVALUE (xtext); +CREATE INDEX QRY_NRL_MODEL_effectiveEntryCount ON QRY_NRL_MODEL (xeffectiveEntryCount); +CREATE INDEX QRY_NRL_MODEL_endDate ON QRY_NRL_MODEL (xendDate); +CREATE INDEX QRY_NRL_MODEL_entryCount ON QRY_NRL_MODEL (xentryCount); +CREATE INDEX QRY_NRL_MODEL_name ON QRY_NRL_MODEL (xname); +CREATE INDEX QRY_NRL_MODEL_startDate ON QRY_NRL_MODEL (xstartDate); +CREATE INDEX QRY_NRL_MODEL_applicationList_element ON QRY_NRL_MODEL_applicationList (xapplicationList); +CREATE INDEX QRY_NRL_MODEL_applicationList_join ON QRY_NRL_MODEL_applicationList (MODEL_XID); +CREATE INDEX QRY_NRL_MODEL_processList_element ON QRY_NRL_MODEL_processList (xprocessList); +CREATE INDEX QRY_NRL_MODEL_processList_join ON QRY_NRL_MODEL_processList (MODEL_XID); +CREATE INDEX QRY_NRL_MODEL_propertyMap_element ON QRY_NRL_MODEL_propertyMap (xpropertyMap); +CREATE INDEX QRY_NRL_MODEL_propertyMap_join ON QRY_NRL_MODEL_propertyMap (MODEL_XID); +CREATE INDEX QRY_NRL_MODEL_propertyMap_key ON QRY_NRL_MODEL_propertyMap (xkey); +CREATE INDEX QRY_NRL_OUTTEXT_count ON QRY_NRL_OUTTEXT (xcount); +CREATE INDEX QRY_NRL_OUTTEXT_model ON QRY_NRL_OUTTEXT (xmodel); +CREATE INDEX QRY_NRL_OUTTEXT_serial ON QRY_NRL_OUTTEXT (xserial); +CREATE INDEX QRY_NRL_OUTTEXT_text ON QRY_NRL_OUTTEXT (xtext); +CREATE INDEX QRY_NRL_OUTVALUE_count ON QRY_NRL_OUTVALUE (xcount); +CREATE INDEX QRY_NRL_OUTVALUE_model ON QRY_NRL_OUTVALUE (xmodel); +CREATE INDEX QRY_NRL_OUTVALUE_serial ON QRY_NRL_OUTVALUE (xserial); +CREATE INDEX QRY_NRL_OUTVALUE_text ON QRY_NRL_OUTVALUE (xtext); +CREATE INDEX QRY_PGM_ARGUMENT_name ON QRY_PGM_ARGUMENT (xname); +CREATE INDEX QRY_PGM_ARGUMENT_stringValue ON QRY_PGM_ARGUMENT (xstringValue); +CREATE INDEX QRY_QUERY_availableIdentityList_element ON QRY_QUERY_availableIdentityList (xavailableIdentityList); +CREATE INDEX QRY_QUERY_availableIdentityList_join ON QRY_QUERY_availableIdentityList (QUERY_XID); +CREATE INDEX QRY_QUERY_availableUnitList_element ON QRY_QUERY_availableUnitList (xavailableUnitList); +CREATE INDEX QRY_QUERY_availableUnitList_join ON QRY_QUERY_availableUnitList (QUERY_XID); +CREATE INDEX QRY_QUERY_controllerList ON QRY_QUERY_controllerList (QUERY_XID); +CREATE INDEX QRY_QUERY_controllerList_element ON QRY_QUERY_controllerList (xcontrollerList); +CREATE INDEX QRY_REVEAL_name ON QRY_REVEAL (xname); +CREATE INDEX QRY_REVEAL_query ON QRY_REVEAL (xquery); +CREATE INDEX QRY_REVEAL_stat ON QRY_REVEAL (xstat); +CREATE INDEX QRY_REVEAL_view ON QRY_REVEAL (xview); +CREATE INDEX QRY_REVEAL_availableIdentityList_element ON QRY_REVEAL_availableIdentityList (xavailableIdentityList); +CREATE INDEX QRY_REVEAL_availableIdentityList_join ON QRY_REVEAL_availableIdentityList (REVEAL_XID); +CREATE INDEX QRY_REVEAL_availableUnitList_element ON QRY_REVEAL_availableUnitList (xavailableUnitList); +CREATE INDEX QRY_REVEAL_availableUnitList_join ON QRY_REVEAL_availableUnitList (REVEAL_XID); +CREATE INDEX QRY_SCH_STATEMENTxquery ON QRY_SCH_STATEMENT (xquery); +CREATE INDEX QRY_SCH_STATEMENT_alias ON QRY_SCH_STATEMENT (xalias); +CREATE INDEX QRY_SCH_STATEMENT_format ON QRY_SCH_STATEMENT (xformat); +CREATE INDEX QRY_SCH_STATEMENT_name ON QRY_SCH_STATEMENT (xname); +CREATE INDEX QRY_SCH_STATEMENT_table ON QRY_SCH_STATEMENT (xtable); +CREATE INDEX QRY_SCH_STATEMENT_type ON QRY_SCH_STATEMENT (xtype); +CREATE INDEX QRY_SCH_STATEMENT_executePersonList_element ON QRY_SCH_STATEMENT_executePersonList (xexecutePersonList); +CREATE INDEX QRY_SCH_STATEMENT_executePersonList_join ON QRY_SCH_STATEMENT_executePersonList (STATEMENT_XID); +CREATE INDEX QRY_SCH_STATEMENT_executeUnitList_element ON QRY_SCH_STATEMENT_executeUnitList (xexecuteUnitList); +CREATE INDEX QRY_SCH_STATEMENT_executeUnitList_join ON QRY_SCH_STATEMENT_executeUnitList (STATEMENT_XID); +CREATE INDEX QRY_SCH_TABLExquery ON QRY_SCH_TABLE (xquery); +CREATE INDEX QRY_SCH_TABLE_alias ON QRY_SCH_TABLE (xalias); +CREATE INDEX QRY_SCH_TABLE_name ON QRY_SCH_TABLE (xname); +CREATE INDEX QRY_SCH_TABLE_editPersonList_element ON QRY_SCH_TABLE_editPersonList (xeditPersonList); +CREATE INDEX QRY_SCH_TABLE_editPersonList_join ON QRY_SCH_TABLE_editPersonList (TABLE_XID); +CREATE INDEX QRY_SCH_TABLE_editUnitList_element ON QRY_SCH_TABLE_editUnitList (xeditUnitList); +CREATE INDEX QRY_SCH_TABLE_editUnitList_join ON QRY_SCH_TABLE_editUnitList (TABLE_XID); +CREATE INDEX QRY_SCH_TABLE_readPersonList_element ON QRY_SCH_TABLE_readPersonList (xreadPersonList); +CREATE INDEX QRY_SCH_TABLE_readPersonList_join ON QRY_SCH_TABLE_readPersonList (TABLE_XID); +CREATE INDEX QRY_SCH_TABLE_readUnitList_element ON QRY_SCH_TABLE_readUnitList (xreadUnitList); +CREATE INDEX QRY_SCH_TABLE_readUnitList_join ON QRY_SCH_TABLE_readUnitList (TABLE_XID); +CREATE INDEX QRY_SEG_ENTRY_appId ON QRY_SEG_ENTRY (xappId); +CREATE INDEX QRY_SEG_ENTRY_application ON QRY_SEG_ENTRY (xapplication); +CREATE INDEX QRY_SEG_ENTRY_applicationName ON QRY_SEG_ENTRY (xapplicationName); +CREATE INDEX QRY_SEG_ENTRY_appName ON QRY_SEG_ENTRY (xappName); +CREATE INDEX QRY_SEG_ENTRY_bundle ON QRY_SEG_ENTRY (xbundle); +CREATE INDEX QRY_SEG_ENTRY_categoryId ON QRY_SEG_ENTRY (xcategoryId); +CREATE INDEX QRY_SEG_ENTRY_categoryName ON QRY_SEG_ENTRY (xcategoryName); +CREATE INDEX QRY_SEG_ENTRY_creatorPerson ON QRY_SEG_ENTRY (xcreatorPerson); +CREATE INDEX QRY_SEG_ENTRY_creatorUnit ON QRY_SEG_ENTRY (xcreatorUnit); +CREATE INDEX QRY_SEG_ENTRY_lastUpdateTime ON QRY_SEG_ENTRY (xlastUpdateTime); +CREATE INDEX QRY_SEG_ENTRY_process ON QRY_SEG_ENTRY (xprocess); +CREATE INDEX QRY_SEG_ENTRY_processName ON QRY_SEG_ENTRY (xprocessName); +CREATE INDEX QRY_SEG_ENTRY_reference ON QRY_SEG_ENTRY (xreference); +CREATE INDEX QRY_SEG_ENTRY_summary ON QRY_SEG_ENTRY (xsummary); +CREATE INDEX QRY_SEG_ENTRY_title ON QRY_SEG_ENTRY (xtitle); +CREATE INDEX QRY_SEG_ENTRY_type ON QRY_SEG_ENTRY (xtype); +CREATE INDEX QRY_SEG_ENTRY_wait ON QRY_SEG_ENTRY (xwait); +CREATE INDEX QRY_SEG_WORD_application ON QRY_SEG_WORD (xapplication); +CREATE INDEX QRY_SEG_WORD_bundle ON QRY_SEG_WORD (xbundle); +CREATE INDEX QRY_SEG_WORD_count ON QRY_SEG_WORD (xcount); +CREATE INDEX QRY_SEG_WORD_entry ON QRY_SEG_WORD (xentry); +CREATE INDEX QRY_SEG_WORD_label ON QRY_SEG_WORD (xlabel); +CREATE INDEX QRY_SEG_WORD_tag ON QRY_SEG_WORD (xtag); +CREATE INDEX QRY_SEG_WORD_type ON QRY_SEG_WORD (xtype); +CREATE INDEX QRY_SEG_WORD_value ON QRY_SEG_WORD (xvalue); +CREATE INDEX QRY_STATxquery ON QRY_STAT (xquery); +CREATE INDEX QRY_STAT_name ON QRY_STAT (xname); +CREATE INDEX QRY_STAT_availableIdentityList_element ON QRY_STAT_availableIdentityList (xavailableIdentityList); +CREATE INDEX QRY_STAT_availableIdentityList_join ON QRY_STAT_availableIdentityList (STAT_XID); +CREATE INDEX QRY_STAT_availableUnitList_element ON QRY_STAT_availableUnitList (xavailableUnitList); +CREATE INDEX QRY_STAT_availableUnitList_join ON QRY_STAT_availableUnitList (STAT_XID); +CREATE INDEX QRY_VIEWxquery ON QRY_VIEW (xquery); +CREATE INDEX QRY_VIEW_display ON QRY_VIEW (xdisplay); +CREATE INDEX QRY_VIEW_enableCache ON QRY_VIEW (xenableCache); +CREATE INDEX QRY_VIEW_availableIdentityList_element ON QRY_VIEW_availableIdentityList (xavailableIdentityList); +CREATE INDEX QRY_VIEW_availableIdentityList_join ON QRY_VIEW_availableIdentityList (VIEW_XID); +CREATE INDEX QRY_VIEW_availableUnitList_element ON QRY_VIEW_availableUnitList (xavailableUnitList); +CREATE INDEX QRY_VIEW_availableUnitList_join ON QRY_VIEW_availableUnitList (VIEW_XID); +CREATE INDEX SAMPLE_JPUSH_TABLENAME_name ON SAMPLE_JPUSH_TABLENAME (xname); +CREATE INDEX TEW_ATTACHMENT_deepPath ON TEW_ATTACHMENT (xdeepPath); +CREATE INDEX TEW_ATTACHMENT_lastUpdateTime ON TEW_ATTACHMENT (xlastUpdateTime); +CREATE INDEX TEW_ATTACHMENT_projectId ON TEW_ATTACHMENT (xprojectId); +CREATE INDEX TEW_ATTACHMENT_storage ON TEW_ATTACHMENT (xstorage); +CREATE INDEX TEW_ATTACHMENT_taskId ON TEW_ATTACHMENT (xtaskId); +CREATE INDEX TEW_CHAT_deleted ON TEW_CHAT (xdeleted); +CREATE INDEX TEW_CHAT_projectId ON TEW_CHAT (xprojectId); +CREATE INDEX TEW_CHAT_sender ON TEW_CHAT (xsender); +CREATE INDEX TEW_CHAT_target ON TEW_CHAT (xtarget); +CREATE INDEX TEW_CHAT_taskId ON TEW_CHAT (xtaskId); +CREATE INDEX TEW_DYNAMIC_bundle ON TEW_DYNAMIC (xbundle); +CREATE INDEX TEW_DYNAMIC_objectType ON TEW_DYNAMIC (xobjectType); +CREATE INDEX TEW_DYNAMIC_operator ON TEW_DYNAMIC (xoperator); +CREATE INDEX TEW_DYNAMIC_personal ON TEW_DYNAMIC (xpersonal); +CREATE INDEX TEW_DYNAMIC_projectId ON TEW_DYNAMIC (xprojectId); +CREATE INDEX TEW_DYNAMIC_taskId ON TEW_DYNAMIC (xtaskId); +CREATE INDEX TEW_PROJECT_archive ON TEW_PROJECT (xarchive); +CREATE INDEX TEW_PROJECT_completed ON TEW_PROJECT (xcompleted); +CREATE INDEX TEW_PROJECT_creatorPerson ON TEW_PROJECT (xcreatorPerson); +CREATE INDEX TEW_PROJECT_deleted ON TEW_PROJECT (xdeleted); +CREATE INDEX TEW_PROJECT_executor ON TEW_PROJECT (xexecutor); +CREATE INDEX TEW_PROJECT_title ON TEW_PROJECT (xtitle); +CREATE INDEX TEW_PROJECT_type ON TEW_PROJECT (xtype); +CREATE INDEX TEW_PROJECTEXTFIELD_RELE_displayName ON TEW_PROJECTEXTFIELD_RELE (xdisplayName); +CREATE INDEX TEW_PROJECTEXTFIELD_RELE_extFieldName ON TEW_PROJECTEXTFIELD_RELE (xextFieldName); +CREATE INDEX TEW_PROJECTEXTFIELD_RELE_projectId ON TEW_PROJECTEXTFIELD_RELE (xprojectId); +CREATE INDEX TEW_PROJECTGROUP_creatorPerson ON TEW_PROJECTGROUP (xcreatorPerson); +CREATE INDEX TEW_PROJECTGROUP_name ON TEW_PROJECTGROUP (xname); +CREATE INDEX TEW_PROJECTGROUP_owner ON TEW_PROJECTGROUP (xowner); +CREATE INDEX TEW_PROJECTGROUP_RELE_groupId ON TEW_PROJECTGROUP_RELE (xgroupId); +CREATE INDEX TEW_PROJECTGROUP_RELE_projectId ON TEW_PROJECTGROUP_RELE (xprojectId); +CREATE INDEX TEW_PROJECT_manageablePersonList_element ON TEW_PROJECT_manageablePersonList (xmanageablePersonList); +CREATE INDEX TEW_PROJECT_manageablePersonList_join ON TEW_PROJECT_manageablePersonList (PROJECT_XID); +CREATE INDEX TEW_PROJECT_participantGroupList_element ON TEW_PROJECT_participantGroupList (xparticipantGroupList); +CREATE INDEX TEW_PROJECT_participantGroupList_join ON TEW_PROJECT_participantGroupList (PROJECT_XID); +CREATE INDEX TEW_PROJECT_participantIdentityList_element ON TEW_PROJECT_participantIdentityList (xparticipantIdentityList); +CREATE INDEX TEW_PROJECT_participantIdentityList_join ON TEW_PROJECT_participantIdentityList (PROJECT_XID); +CREATE INDEX TEW_PROJECT_participantPersonList_element ON TEW_PROJECT_participantPersonList (xparticipantPersonList); +CREATE INDEX TEW_PROJECT_participantPersonList_join ON TEW_PROJECT_participantPersonList (PROJECT_XID); +CREATE INDEX TEW_PROJECT_participantUnitList_element ON TEW_PROJECT_participantUnitList (xparticipantUnitList); +CREATE INDEX TEW_PROJECT_participantUnitList_join ON TEW_PROJECT_participantUnitList (PROJECT_XID); +CREATE INDEX TEW_PROJECT_starPersonList_element ON TEW_PROJECT_starPersonList (xstarPersonList); +CREATE INDEX TEW_PROJECT_starPersonList_join ON TEW_PROJECT_starPersonList (PROJECT_XID); +CREATE INDEX TEW_REVIEW_archive ON TEW_REVIEW (xarchive); +CREATE INDEX TEW_REVIEW_claimed ON TEW_REVIEW (xclaimed); +CREATE INDEX TEW_REVIEW_completed ON TEW_REVIEW (xcompleted); +CREATE INDEX TEW_REVIEW_creatorPerson ON TEW_REVIEW (xcreatorPerson); +CREATE INDEX TEW_REVIEW_deleted ON TEW_REVIEW (xdeleted); +CREATE INDEX TEW_REVIEW_endTime ON TEW_REVIEW (xendTime); +CREATE INDEX TEW_REVIEW_executor ON TEW_REVIEW (xexecutor); +CREATE INDEX TEW_REVIEW_executorIdentity ON TEW_REVIEW (xexecutorIdentity); +CREATE INDEX TEW_REVIEW_executorUnit ON TEW_REVIEW (xexecutorUnit); +CREATE INDEX TEW_REVIEW_name ON TEW_REVIEW (xname); +CREATE INDEX TEW_REVIEW_overtime ON TEW_REVIEW (xovertime); +CREATE INDEX TEW_REVIEW_parent ON TEW_REVIEW (xparent); +CREATE INDEX TEW_REVIEW_permissionObj ON TEW_REVIEW (xpermissionObj); +CREATE INDEX TEW_REVIEW_priority ON TEW_REVIEW (xpriority); +CREATE INDEX TEW_REVIEW_project ON TEW_REVIEW (xproject); +CREATE INDEX TEW_REVIEW_remindRelevance ON TEW_REVIEW (xremindRelevance); +CREATE INDEX TEW_REVIEW_startTime ON TEW_REVIEW (xstartTime); +CREATE INDEX TEW_REVIEW_tagContent ON TEW_REVIEW (xtagContent); +CREATE INDEX TEW_REVIEW_taskId ON TEW_REVIEW (xtaskId); +CREATE INDEX TEW_REVIEW_taskSequence ON TEW_REVIEW (xtaskSequence); +CREATE INDEX TEW_REVIEW_workStatus ON TEW_REVIEW (xworkStatus); +CREATE INDEX TEW_SYSTEMCONFIG_configCode ON TEW_SYSTEMCONFIG (xconfigCode); +CREATE INDEX TEW_TAG_owner ON TEW_TAG (xowner); +CREATE INDEX TEW_TAG_project ON TEW_TAG (xproject); +CREATE INDEX TEW_TAG_tag ON TEW_TAG (xtag); +CREATE INDEX TEW_TASK_archive ON TEW_TASK (xarchive); +CREATE INDEX TEW_TASK_claimed ON TEW_TASK (xclaimed); +CREATE INDEX TEW_TASK_completed ON TEW_TASK (xcompleted); +CREATE INDEX TEW_TASK_creatorPerson ON TEW_TASK (xcreatorPerson); +CREATE INDEX TEW_TASK_deleted ON TEW_TASK (xdeleted); +CREATE INDEX TEW_TASK_endTime ON TEW_TASK (xendTime); +CREATE INDEX TEW_TASK_executor ON TEW_TASK (xexecutor); +CREATE INDEX TEW_TASK_executorIdentity ON TEW_TASK (xexecutorIdentity); +CREATE INDEX TEW_TASK_executorUnit ON TEW_TASK (xexecutorUnit); +CREATE INDEX TEW_TASK_name ON TEW_TASK (xname); +CREATE INDEX TEW_TASK_overtime ON TEW_TASK (xovertime); +CREATE INDEX TEW_TASK_parent ON TEW_TASK (xparent); +CREATE INDEX TEW_TASK_priority ON TEW_TASK (xpriority); +CREATE INDEX TEW_TASK_project ON TEW_TASK (xproject); +CREATE INDEX TEW_TASK_remindRelevance ON TEW_TASK (xremindRelevance); +CREATE INDEX TEW_TASK_reviewed ON TEW_TASK (xreviewed); +CREATE INDEX TEW_TASK_startTime ON TEW_TASK (xstartTime); +CREATE INDEX TEW_TASK_summay ON TEW_TASK (xsummay); +CREATE INDEX TEW_TASK_workStatus ON TEW_TASK (xworkStatus); +CREATE INDEX TEW_TASKDETAIL_project ON TEW_TASKDETAIL (xproject); +CREATE INDEX TEW_TASKEXTFIELD_name ON TEW_TASKEXTFIELD (xname); +CREATE INDEX TEW_TASKEXTFIELD_project ON TEW_TASKEXTFIELD (xproject); +CREATE INDEX TEW_TASKGROUP_creatorPerson ON TEW_TASKGROUP (xcreatorPerson); +CREATE INDEX TEW_TASKGROUP_memo ON TEW_TASKGROUP (xmemo); +CREATE INDEX TEW_TASKGROUP_name ON TEW_TASKGROUP (xname); +CREATE INDEX TEW_TASKGROUP_owner ON TEW_TASKGROUP (xowner); +CREATE INDEX TEW_TASKGROUP_project ON TEW_TASKGROUP (xproject); +CREATE INDEX TEW_TASKGROUP_RELE_project ON TEW_TASKGROUP_RELE (xproject); +CREATE INDEX TEW_TASKGROUP_RELE_taskGroupId ON TEW_TASKGROUP_RELE (xtaskGroupId); +CREATE INDEX TEW_TASKGROUP_RELE_taskId ON TEW_TASKGROUP_RELE (xtaskId); +CREATE INDEX TEW_TASKLIST_creatorPerson ON TEW_TASKLIST (xcreatorPerson); +CREATE INDEX TEW_TASKLIST_deleted ON TEW_TASKLIST (xdeleted); +CREATE INDEX TEW_TASKLIST_memo ON TEW_TASKLIST (xmemo); +CREATE INDEX TEW_TASKLIST_name ON TEW_TASKLIST (xname); +CREATE INDEX TEW_TASKLIST_owner ON TEW_TASKLIST (xowner); +CREATE INDEX TEW_TASKLIST_project ON TEW_TASKLIST (xproject); +CREATE INDEX TEW_TASKLIST_taskGroup ON TEW_TASKLIST (xtaskGroup); +CREATE INDEX TEW_TASKLIST_RELE_project ON TEW_TASKLIST_RELE (xproject); +CREATE INDEX TEW_TASKLIST_RELE_taskGroupId ON TEW_TASKLIST_RELE (xtaskGroupId); +CREATE INDEX TEW_TASKLIST_RELE_taskId ON TEW_TASKLIST_RELE (xtaskId); +CREATE INDEX TEW_TASKLIST_RELE_taskListId ON TEW_TASKLIST_RELE (xtaskListId); +CREATE INDEX TEW_TASKRELEVANCE_bundle ON TEW_TASKRELEVANCE (xbundle); +CREATE INDEX TEW_TASKRELEVANCE_creatorPerson ON TEW_TASKRELEVANCE (xcreatorPerson); +CREATE INDEX TEW_TASKRELEVANCE_name ON TEW_TASKRELEVANCE (xname); +CREATE INDEX TEW_TASKRELEVANCE_project ON TEW_TASKRELEVANCE (xproject); +CREATE INDEX TEW_TASKRELEVANCE_task ON TEW_TASKRELEVANCE (xtask); +CREATE INDEX TEW_TASKRELEVANCE_type ON TEW_TASKRELEVANCE (xtype); +CREATE INDEX TEW_TASKTAG_RELE_owner ON TEW_TASKTAG_RELE (xowner); +CREATE INDEX TEW_TASKTAG_RELE_project ON TEW_TASKTAG_RELE (xproject); +CREATE INDEX TEW_TASKTAG_RELE_tagId ON TEW_TASKTAG_RELE (xtagId); +CREATE INDEX TEW_TASKTAG_RELE_taskId ON TEW_TASKTAG_RELE (xtaskId); +CREATE INDEX TEW_TASKVIEW_creatorPerson ON TEW_TASKVIEW (xcreatorPerson); +CREATE INDEX TEW_TASKVIEW_isExcutor ON TEW_TASKVIEW (xisExcutor); +CREATE INDEX TEW_TASKVIEW_memo ON TEW_TASKVIEW (xmemo); +CREATE INDEX TEW_TASKVIEW_name ON TEW_TASKVIEW (xname); +CREATE INDEX TEW_TASKVIEW_owner ON TEW_TASKVIEW (xowner); +CREATE INDEX TEW_TASKVIEW_project ON TEW_TASKVIEW (xproject); +CREATE INDEX TEW_TASKVIEW_workCompleted ON TEW_TASKVIEW (xworkCompleted); +CREATE INDEX TEW_TASKVIEW_workOverTime ON TEW_TASKVIEW (xworkOverTime); +CREATE INDEX TEW_TASKVIEW_choosePriority_element ON TEW_TASKVIEW_choosePriority (xchoosePriority); +CREATE INDEX TEW_TASKVIEW_choosePriority_join ON TEW_TASKVIEW_choosePriority (TASKVIEW_XID); +CREATE INDEX TEW_TASKVIEW_chooseWorkTag_element ON TEW_TASKVIEW_chooseWorkTag (xchooseWorkTag); +CREATE INDEX TEW_TASKVIEW_chooseWorkTag_join ON TEW_TASKVIEW_chooseWorkTag (TASKVIEW_XID); +CREATE INDEX TEW_TASK_manageablePersonList_element ON TEW_TASK_manageablePersonList (xmanageablePersonList); +CREATE INDEX TEW_TASK_manageablePersonList_join ON TEW_TASK_manageablePersonList (TASK_XID); +CREATE INDEX TEW_TASK_participantList_element ON TEW_TASK_participantList (xparticipantList); +CREATE INDEX TEW_TASK_participantList_join ON TEW_TASK_participantList (TASK_XID); +CREATE INDEX VAL_META_booleanValue ON VAL_META (xbooleanValue); +CREATE INDEX VAL_META_dateTimeValue ON VAL_META (xdateTimeValue); +CREATE INDEX VAL_META_dateValue ON VAL_META (xdateValue); +CREATE INDEX VAL_META_doubleValue ON VAL_META (xdoubleValue); +CREATE INDEX VAL_META_integerValue ON VAL_META (xintegerValue); +CREATE INDEX VAL_META_longValue ON VAL_META (xlongValue); +CREATE INDEX VAL_META_stringValue ON VAL_META (xstringValue); +CREATE INDEX VAL_META_timeValue ON VAL_META (xtimeValue); +CREATE INDEX VAL_META_listValueList_element ON VAL_META_listValueList (xlistValueList); +CREATE INDEX VAL_META_listValueList_join ON VAL_META_listValueList (META_XID); +CREATE INDEX VAL_META_mapValueMap_element ON VAL_META_mapValueMap (xmapValueMap); +CREATE INDEX VAL_META_mapValueMap_join ON VAL_META_mapValueMap (META_XID); +CREATE INDEX VAL_META_mapValueMap_key ON VAL_META_mapValueMap (xkey); diff --git a/o2server/pom.xml b/o2server/pom.xml index 807b8bf845e8cf3c22f30a8c07a5fa64e89c6edd..d720462667135ce340bd2b5db1f30537702eb6ac 100644 --- a/o2server/pom.xml +++ b/o2server/pom.xml @@ -1,9 +1,17 @@ 4.0.0 + + 4.3.5 + 1.8 + 1.8 + UTF-8 + UTF-8 + + o2oa o2server - 4.0.5 + ${global.version} pom x_base_core_project @@ -61,13 +69,6 @@ x_program_center x_console - - 1.8 - 1.8 - UTF-8 - UTF-8 - - javax @@ -365,13 +366,13 @@ org.apache.maven.plugins maven-jar-plugin - 3.1.2 + 3.2.0 false - META-INF + META-INF/** @@ -734,142 +735,142 @@ o2oa x_base_core_project - ${project.version} + ${global.version} o2oa x_attendance_core_entity - ${project.version} + ${global.version} o2oa x_bbs_core_entity - ${project.version} + ${global.version} o2oa x_calendar_core_entity - ${project.version} + ${global.version} o2oa x_cms_core_entity - ${project.version} + ${global.version} o2oa x_cms_core_express - ${project.version} + ${global.version} o2oa x_component_core_entity - ${project.version} + ${global.version} o2oa x_file_core_entity - ${project.version} + ${global.version} o2oa x_general_core_entity - ${project.version} + ${global.version} o2oa x_hotpic_core_entity - ${project.version} + ${global.version} o2oa x_meeting_core_entity - ${project.version} + ${global.version} o2oa x_message_core_entity - ${project.version} + ${global.version} o2oa x_mind_core_entity - ${project.version} + ${global.version} o2oa x_okr_core_entity - ${project.version} + ${global.version} o2oa x_organization_core_entity - ${project.version} + ${global.version} o2oa x_organization_core_express - ${project.version} + ${global.version} o2oa x_portal_core_entity - ${project.version} + ${global.version} o2oa x_processplatform_core_entity - ${project.version} + ${global.version} o2oa x_processplatform_core_express - ${project.version} + ${global.version} o2oa x_query_core_entity - ${project.version} + ${global.version} o2oa x_query_core_express - ${project.version} + ${global.version} o2oa x_report_core_entity - ${project.version} + ${global.version} o2oa x_strategydeploy_core_entity - ${project.version} + ${global.version} o2oa x_strategydeploy_assemble_control - ${project.version} + ${global.version} o2oa x_program_center - ${project.version} + ${global.version} o2oa x_program_center_core_entity - ${project.version} + ${global.version} o2oa x_teamwork_core_entity - ${project.version} + ${global.version} o2oa x_workschedu_core_entity - ${project.version} + ${global.version} diff --git a/o2server/x_attendance_assemble_control/pom.xml b/o2server/x_attendance_assemble_control/pom.xml index 8d79ea3be9a013d39b3f2f8d3eadf848e8dd00ff..1f86c6da2395580ca5adab4debe5419cc201bd67 100644 --- a/o2server/x_attendance_assemble_control/pom.xml +++ b/o2server/x_attendance_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_attendance_assemble_control war diff --git a/o2server/x_attendance_core_entity/pom.xml b/o2server/x_attendance_core_entity/pom.xml index ccacf9179a19f9a9ad974f4a251ca40f551473aa..41ae2686883419df177636eb2ecc881465f46daf 100644 --- a/o2server/x_attendance_core_entity/pom.xml +++ b/o2server/x_attendance_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_attendance_core_entity jar diff --git a/o2server/x_base_core_project/pom.xml b/o2server/x_base_core_project/pom.xml index c1f55ca74b6c2da60e252e340bd4457087bdfbd8..0faabea5bf05d4fd9d64d6522b8925ec1a068d60 100644 --- a/o2server/x_base_core_project/pom.xml +++ b/o2server/x_base_core_project/pom.xml @@ -6,7 +6,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_base_core_project jar diff --git a/o2server/x_base_core_project/src/main/java/com/x/base/core/container/factory/PersistenceXmlHelper.java b/o2server/x_base_core_project/src/main/java/com/x/base/core/container/factory/PersistenceXmlHelper.java index f1c691386b855cbe5f8b607c96a0480815aa11f4..78d5b25e3a3b9cd8ae822041380bdff35485790a 100644 --- a/o2server/x_base_core_project/src/main/java/com/x/base/core/container/factory/PersistenceXmlHelper.java +++ b/o2server/x_base_core_project/src/main/java/com/x/base/core/container/factory/PersistenceXmlHelper.java @@ -6,7 +6,15 @@ import java.util.ArrayList; import java.util.List; import java.util.Properties; +import com.x.base.core.container.FactorDistributionPolicy; +import com.x.base.core.entity.JpaObject; +import com.x.base.core.entity.tools.JpaObjectTools; +import com.x.base.core.project.config.Config; +import com.x.base.core.project.config.Node; +import com.x.base.core.project.tools.ListTools; + import org.apache.commons.io.FileUtils; +import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.StringUtils; import org.apache.openjpa.persistence.PersistenceProviderImpl; import org.dom4j.Document; @@ -16,33 +24,41 @@ import org.dom4j.QName; import org.dom4j.io.OutputFormat; import org.dom4j.io.XMLWriter; -import com.x.base.core.container.FactorDistributionPolicy; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.tools.JpaObjectTools; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.tools.ListTools; - public class PersistenceXmlHelper { - public static List directWrite(String path, List classNames) throws Exception { + private PersistenceXmlHelper() { + + } + + public static void writeForDdl(String path) throws Exception { try { Document document = DocumentHelper.createDocument(); Element persistence = document.addElement("persistence", "http://java.sun.com/xml/ns/persistence"); persistence.addAttribute(QName.get("schemaLocation", "xsi", "http://www.w3.org/2001/XMLSchema-instance"), "http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"); persistence.addAttribute("version", "2.0"); - for (String className : classNames) { - Element unit = persistence.addElement("persistence-unit"); - unit.addAttribute("name", className); - unit.addAttribute("transaction-type", "RESOURCE_LOCAL"); - Element provider = unit.addElement("provider"); - provider.addText(PersistenceProviderImpl.class.getName()); - Element mapped_element = unit.addElement("class"); - mapped_element.addText(className); - Element sliceJpaObject_element = unit.addElement("class"); - sliceJpaObject_element.addText("com.x.base.core.entity.SliceJpaObject"); - Element jpaObject_element = unit.addElement("class"); - jpaObject_element.addText("com.x.base.core.entity.JpaObject"); + Element unit = persistence.addElement("persistence-unit"); + unit.addAttribute("name", "enhance"); + unit.addAttribute("transaction-type", "RESOURCE_LOCAL"); + Element provider = unit.addElement("provider"); + provider.addText(PersistenceProviderImpl.class.getName()); + List entities = new ArrayList<>(); + for (String className : (List) Config.resource(Config.RESOURCE_CONTAINERENTITYNAMES)) { + Class clazz = (Class) Class.forName(className); + for (Class o : JpaObjectTools.scanMappedSuperclass(clazz)) { + entities.add(o.getName()); + } + } + entities = ListTools.trim(entities, true, true); + for (String className : entities) { + Element class_element = unit.addElement("class"); + class_element.addText(className); + } + Element properties = unit.addElement("properties"); + if (BooleanUtils.isTrue(Config.externalDataSources().enable())) { + writeForDdlExternalProperty(properties); + } else { + writeForDdlInternalProperty(properties); } OutputFormat format = OutputFormat.createPrettyPrint(); format.setEncoding("UTF-8"); @@ -51,12 +67,51 @@ public class PersistenceXmlHelper { XMLWriter writer = new XMLWriter(new FileWriter(file), format); writer.write(document); writer.close(); - return classNames; } catch (Exception e) { - throw new Exception("registContainerEntity error.className:" + ListTools.toStringJoin(classNames), e); + throw new Exception("writeForDdl error.", e); } } + private static void writeForDdlExternalProperty(Element properties) throws Exception { + Element property = properties.addElement("property"); + property.addAttribute("name", "javax.persistence.jdbc.driver"); + property.addAttribute("value", Config.externalDataSources().get(0).getDriverClassName()); + property = properties.addElement("property"); + property.addAttribute("name", "javax.persistence.jdbc.url"); + property.addAttribute("value", Config.externalDataSources().get(0).getUrl()); + property = properties.addElement("property"); + property.addAttribute("name", "javax.persistence.jdbc.user"); + property.addAttribute("value", Config.externalDataSources().get(0).getUsername()); + property = properties.addElement("property"); + property.addAttribute("name", "javax.persistence.jdbc.password"); + property.addAttribute("value", Config.externalDataSources().get(0).getPassword()); + property = properties.addElement("property"); + property.addAttribute("name", "openjpa.DynamicEnhancementAgent"); + property.addAttribute("value", "false"); + } + + private static void writeForDdlInternalProperty(Element properties) throws Exception { + Element property = properties.addElement("property"); + property.addAttribute("name", "javax.persistence.jdbc.driver"); + property.addAttribute("value", SlicePropertiesBuilder.driver_h2); + property = properties.addElement("property"); + property.addAttribute("name", "javax.persistence.jdbc.url"); + Node node = Config.currentNode(); + String url = "jdbc:h2:tcp://" + Config.node() + ":" + node.getData().getTcpPort() + "/X;JMX=" + + (node.getData().getJmxEnable() ? "TRUE" : "FALSE") + ";CACHE_SIZE=" + + (node.getData().getCacheSize() * 1024); + property.addAttribute("value", url); + property = properties.addElement("property"); + property.addAttribute("name", "javax.persistence.jdbc.user"); + property.addAttribute("value", "sa"); + property = properties.addElement("property"); + property.addAttribute("name", "javax.persistence.jdbc.password"); + property.addAttribute("value", Config.token().getPassword()); + property = properties.addElement("property"); + property.addAttribute("name", "openjpa.DynamicEnhancementAgent"); + property.addAttribute("value", "false"); + } + public static List write(String path, List entities) throws Exception { List names = new ArrayList<>(); String name = ""; @@ -90,7 +145,7 @@ public class PersistenceXmlHelper { writer.close(); return names; } catch (Exception e) { - throw new Exception("registContainerEntity error.className:" + name, e); + throw new Exception("write error.className:" + name, e); } } @@ -108,7 +163,6 @@ public class PersistenceXmlHelper { return properties_internal_single(className); } } - } private static Properties properties_base_slice(String className) throws Exception { diff --git a/o2server/x_base_core_project/src/main/java/com/x/base/core/entity/tools/MetaModelBuilder.java b/o2server/x_base_core_project/src/main/java/com/x/base/core/entity/tools/MetaModelBuilder.java index 3fe1307a192877e5a72e6064286ad1560df9dd86..22510cf605202a4eeab76250fc742698bd3b8c57 100644 --- a/o2server/x_base_core_project/src/main/java/com/x/base/core/entity/tools/MetaModelBuilder.java +++ b/o2server/x_base_core_project/src/main/java/com/x/base/core/entity/tools/MetaModelBuilder.java @@ -88,12 +88,6 @@ public class MetaModelBuilder { for (URL url : urls) { cp.add(new File(url.getFile())); } - -// filter = new WildcardFileFilter("*.jar"); -// File dir = new File(o2oadir, "o2server/commons/ext"); -// for (File o : FileUtils.listFiles(dir, filter, null)) { -// cp.add(o); -// } return cp; } diff --git a/o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Config.java b/o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Config.java index a7649a835258b601ea609458a88057125125001a..a24498e7071e1adeca231e80fa39506544d777a8 100644 --- a/o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Config.java +++ b/o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Config.java @@ -96,6 +96,7 @@ public class Config { public static final String DIR_LOCAL_UPDATE = "local/update"; public static final String DIR_LOCAL_TEMP = "local/temp"; public static final String DIR_LOCAL_TEMP_CLASSES = "local/temp/classes"; + public static final String DIR_LOCAL_TEMP_SQL = "local/temp/sql"; public static final String DIR_LOCAL_TEMP_DYNAMIC = "local/temp/dynamic"; public static final String DIR_LOCAL_TEMP_DYNAMIC_SRC = "local/temp/dynamic/src"; public static final String DIR_LOCAL_TEMP_DYNAMIC_TARGET = "local/temp/dynamic/target"; @@ -329,6 +330,20 @@ public class Config { return dir; } + public static File dir_local_temp_sql() throws Exception { + return new File(base(), DIR_LOCAL_TEMP_SQL); + } + + public static File dir_local_temp_sql(Boolean force) throws Exception { + File dir = new File(base(), DIR_LOCAL_TEMP_SQL); + if (force) { + if ((!dir.exists()) || dir.isFile()) { + FileUtils.forceMkdir(dir); + } + } + return dir; + } + public static File dir_logs() throws Exception { return new File(base(), DIR_LOGS); } @@ -790,9 +805,12 @@ public class Config { /* 添加默认格式 */ mimeTypes.addMimeMapping("", "application/octet-stream"); /* 添加新版office格式 */ - mimeTypes.addMimeMapping("docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"); - mimeTypes.addMimeMapping("xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); - mimeTypes.addMimeMapping("pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"); + mimeTypes.addMimeMapping("docx", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document"); + mimeTypes.addMimeMapping("xlsx", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); + mimeTypes.addMimeMapping("pptx", + "application/vnd.openxmlformats-officedocument.presentationml.presentation"); /* 名片 */ mimeTypes.addMimeMapping("vcf", "text/x-vcard"); instance().mimeTypes = mimeTypes; diff --git a/o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Node.java b/o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Node.java index c4beb8fa6673de73de051910a4ed2dca4565607a..942115db037933775c3dee7d471e50afce5250b5 100644 --- a/o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Node.java +++ b/o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Node.java @@ -331,6 +331,4 @@ public class Node extends ConfigObject { } - - } diff --git a/o2server/x_base_core_project/src/main/java/com/x/base/core/project/tools/URLClassLoaderTools.java b/o2server/x_base_core_project/src/main/java/com/x/base/core/project/tools/URLClassLoaderTools.java new file mode 100644 index 0000000000000000000000000000000000000000..d2aa86a35c1400da94399757f60ead68c46b42b5 --- /dev/null +++ b/o2server/x_base_core_project/src/main/java/com/x/base/core/project/tools/URLClassLoaderTools.java @@ -0,0 +1,20 @@ +package com.x.base.core.project.tools; + +import java.io.File; +import java.lang.reflect.Method; +import java.net.URL; +import java.net.URLClassLoader; + +public class URLClassLoaderTools { + + private URLClassLoaderTools() { + } + + public static void add(URLClassLoader classLoader, File file) throws Exception { + Class urlClass = URLClassLoader.class; + Method method = urlClass.getDeclaredMethod("addURL", new Class[] { URL.class }); + method.setAccessible(true); + method.invoke(classLoader, new Object[] { file.toURI().toURL() }); + } + +} \ No newline at end of file diff --git a/o2server/x_bbs_assemble_control/pom.xml b/o2server/x_bbs_assemble_control/pom.xml index 139d1419d4da079c7a936967480d9306291f786c..9fd2764d935f6c2672560283966869ddb90d0e17 100644 --- a/o2server/x_bbs_assemble_control/pom.xml +++ b/o2server/x_bbs_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_bbs_assemble_control war diff --git a/o2server/x_bbs_core_entity/pom.xml b/o2server/x_bbs_core_entity/pom.xml index 5bf4185698fb8c33e52a80ab32478ef3bc2a7fd0..e576f8949f718934c710071d17c450a882571d4f 100644 --- a/o2server/x_bbs_core_entity/pom.xml +++ b/o2server/x_bbs_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_bbs_core_entity jar diff --git a/o2server/x_calendar_assemble_control/pom.xml b/o2server/x_calendar_assemble_control/pom.xml index 07aed280b9de6d7ae2bd63e20f194f4d4742a8af..809055d0357abdc36c4b5e0b2736638dcf6d0a17 100644 --- a/o2server/x_calendar_assemble_control/pom.xml +++ b/o2server/x_calendar_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_calendar_assemble_control war diff --git a/o2server/x_calendar_core_entity/pom.xml b/o2server/x_calendar_core_entity/pom.xml index ec6ee5eac8650345e7dc5838df4c7a26f409b284..31d3a156a70b195f367b4439d1f32d7f7c7353b0 100644 --- a/o2server/x_calendar_core_entity/pom.xml +++ b/o2server/x_calendar_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_calendar_core_entity jar diff --git a/o2server/x_cms_assemble_control/pom.xml b/o2server/x_cms_assemble_control/pom.xml index b355fbf63dcef0bb481fe64f31181b19b19dad6f..db9236da0950733dcb50378a3c846927f0042fa8 100644 --- a/o2server/x_cms_assemble_control/pom.xml +++ b/o2server/x_cms_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_cms_assemble_control war diff --git a/o2server/x_cms_core_entity/pom.xml b/o2server/x_cms_core_entity/pom.xml index 94b48bfa81b6fde19fb5aeafc1048f80a4040371..521e96502a33c994a1c1197048393cc411ff364d 100644 --- a/o2server/x_cms_core_entity/pom.xml +++ b/o2server/x_cms_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_cms_core_entity jar diff --git a/o2server/x_cms_core_express/pom.xml b/o2server/x_cms_core_express/pom.xml index 13abfaf7737508ef671abf2e9ec2532e23d20007..f9e123a2f2c0cb0953b7a39a842439a16148d047 100644 --- a/o2server/x_cms_core_express/pom.xml +++ b/o2server/x_cms_core_express/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_cms_core_express jar diff --git a/o2server/x_component_assemble_control/pom.xml b/o2server/x_component_assemble_control/pom.xml index d3d13f82027f77e26cdd0253e02dcf0c8318a0ea..8946c127556d968daef49813bdebb8206bd6cfcf 100644 --- a/o2server/x_component_assemble_control/pom.xml +++ b/o2server/x_component_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_component_assemble_control war diff --git a/o2server/x_component_core_entity/pom.xml b/o2server/x_component_core_entity/pom.xml index ad50077ec58186bf0ca30da8b32256efb717169b..b65687a54e6fbaa2cd96bea3c4c2445c19ddc929 100644 --- a/o2server/x_component_core_entity/pom.xml +++ b/o2server/x_component_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_component_core_entity jar diff --git a/o2server/x_console/pom.xml b/o2server/x_console/pom.xml index a12daa6277cbb706346008da0f78ce4064ee546b..562137f0017b03cefb9119f942292d09ba82dcf5 100644 --- a/o2server/x_console/pom.xml +++ b/o2server/x_console/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_console jar diff --git a/o2server/x_console/src/main/java/com/x/server/console/action/ActionControl.java b/o2server/x_console/src/main/java/com/x/server/console/action/ActionControl.java index 831f5c122ffd7e83ada4a3efd9856ed052340d8c..b19f03ec9bb415dabf6da035da84beeb8a6707e6 100644 --- a/o2server/x_console/src/main/java/com/x/server/console/action/ActionControl.java +++ b/o2server/x_console/src/main/java/com/x/server/console/action/ActionControl.java @@ -37,6 +37,7 @@ public class ActionControl extends ActionBase { private static final String CMD_RS = "rs"; private static final String CMD_CLH2 = "clh2"; private static final String CMD_UF = "uf"; + private static final String CMD_DDL = "ddl"; private static final int REPEAT_MAX = 100; private static final int REPEAT_MIN = 1; @@ -69,6 +70,8 @@ public class ActionControl extends ActionBase { clh2(cmd); } else if (cmd.hasOption(CMD_UF)) { uf(cmd); + } else if (cmd.hasOption(CMD_DDL)) { + ddl(cmd); } else { HelpFormatter formatter = new HelpFormatter(); formatter.printHelp("control command", options); @@ -91,6 +94,7 @@ public class ActionControl extends ActionBase { options.addOption(rsOption()); options.addOption(clh2Option()); options.addOption(ufOption()); + options.addOption(ddlOption()); return options; } @@ -152,6 +156,11 @@ public class ActionControl extends ActionBase { .desc("升级服务器,升级前请注意备份.").build(); } + private static Option ddlOption() { + return Option.builder("ddl").longOpt("DataDefinitionLanguage").argName("type").hasArg() + .desc("导出数据定义语句:建表语句:build,数据库创建:createDB,数据库删除dropDB.").build(); + } + private void ec(CommandLine cmd) throws Exception { if (BooleanUtils.isNotTrue(Config.currentNode().getEraseContentEnable())) { logger.print("erase content is disabled."); @@ -238,6 +247,12 @@ public class ActionControl extends ActionBase { updateFile.execute(path); } + private void ddl(CommandLine cmd) throws Exception { + String type = Objects.toString(cmd.getOptionValue(CMD_DDL), ""); + Ddl ddl= new Ddl(); + ddl.execute(type); + } + private Integer getArgInteger(CommandLine cmd, String opt, Integer defaultValue) { Integer repeat = defaultValue; String r = cmd.getOptionValue(opt); diff --git a/o2server/x_console/src/main/java/com/x/server/console/action/Ddl.java b/o2server/x_console/src/main/java/com/x/server/console/action/Ddl.java new file mode 100644 index 0000000000000000000000000000000000000000..f8c8a44cbc33c30ada9b482b82f9bd06ad3f40d4 --- /dev/null +++ b/o2server/x_console/src/main/java/com/x/server/console/action/Ddl.java @@ -0,0 +1,76 @@ +package com.x.server.console.action; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +import com.x.base.core.container.factory.PersistenceXmlHelper; +import com.x.base.core.project.config.Config; +import com.x.base.core.project.logger.Logger; +import com.x.base.core.project.logger.LoggerFactory; +import com.x.base.core.project.tools.ListTools; + +import org.apache.commons.lang3.StringUtils; +import org.apache.openjpa.jdbc.conf.JDBCConfiguration; +import org.apache.openjpa.jdbc.meta.MappingTool; +import org.apache.openjpa.lib.util.Options; +import org.apache.openjpa.persistence.EntityManagerImpl; +import org.apache.openjpa.persistence.OpenJPAEntityManagerFactory; +import org.apache.openjpa.persistence.OpenJPAPersistence; + +public class Ddl { + + private static Logger logger = LoggerFactory.getLogger(Ddl.class); + + /* 初始化完成 */ + public boolean execute(String type) throws Exception { + + // List containerEntityNames = new ArrayList<>(); + // containerEntityNames.addAll((List) + // Config.resource(Config.RESOURCE_CONTAINERENTITYNAMES)); + // List classNames = + // ListTools.includesExcludesWildcard(containerEntityNames, + // Config.dumpRestoreData().getIncludes(), + // Config.dumpRestoreData().getExcludes()); + // File persistence = new File(Config.dir_local_temp_classes(), + // "META-INF/persistence.xml"); + // PersistenceXmlHelper.writeForDdl(persistence.getAbsolutePath()); + // String[] arguments = new String[4]; + // arguments[0] = "-schemaAction"; + // arguments[1] = StringUtils.equals(type ,"create")? "build":"add"; + // arguments[2] = "-sql"; + // arguments[3] = Config.dir_local_temp_sql(true) + "/" + type + ".sql"; + // MappingTool.main(arguments); + // return true; + String flag = "build"; + if (StringUtils.equalsIgnoreCase(type, "createDB")) { + flag = "createDB"; + } + if (StringUtils.equalsIgnoreCase(type, "dropDB")) { + flag = "dropDB"; + } + if (StringUtils.equalsIgnoreCase(type, "retain")) { + flag = "retain"; + } + List containerEntityNames = new ArrayList<>(); + containerEntityNames.addAll((List) Config.resource(Config.RESOURCE_CONTAINERENTITYNAMES)); + List classNames = ListTools.includesExcludesWildcard(containerEntityNames, + Config.dumpRestoreData().getIncludes(), Config.dumpRestoreData().getExcludes()); + File persistence = new File(Config.dir_local_temp_classes(), "persistence_sql.xml"); + PersistenceXmlHelper.writeForDdl(persistence.getAbsolutePath()); + OpenJPAEntityManagerFactory emf = OpenJPAPersistence.createEntityManagerFactory("enhance", + persistence.getName()); + EntityManagerImpl em = (EntityManagerImpl) emf.createEntityManager(); + String[] arguments = new String[4]; + arguments[0] = "-schemaAction"; + arguments[1] = flag; + arguments[2] = "-sql"; + arguments[3] = Config.dir_local_temp_sql(true) + "/" + flag + ".sql"; + Options opts = new Options(); + final String[] args = opts.setFromCmdLine(arguments); + MappingTool.run((JDBCConfiguration) em.getConfiguration(), args, opts, null); + return true; + } + +} \ No newline at end of file diff --git a/o2server/x_file_assemble_control/pom.xml b/o2server/x_file_assemble_control/pom.xml index ea42671ca8e9644d54e625cd020d0dd1335e9e6f..6898db5d1e812936bdd56a5d114556779dedb3c9 100644 --- a/o2server/x_file_assemble_control/pom.xml +++ b/o2server/x_file_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_file_assemble_control war diff --git a/o2server/x_file_core_entity/pom.xml b/o2server/x_file_core_entity/pom.xml index 07fb41b98a2f0994a0998e8bef04df3388fd4287..4a687db2a03e1723a323b0a9efdf5a93e1961e0c 100644 --- a/o2server/x_file_core_entity/pom.xml +++ b/o2server/x_file_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_file_core_entity jar diff --git a/o2server/x_general_assemble_control/pom.xml b/o2server/x_general_assemble_control/pom.xml index 4fffcb727962ec64a6efce46975eb551ac07ba85..8c6d1f4d4b088d6f750416987c3efc2088f20e2b 100644 --- a/o2server/x_general_assemble_control/pom.xml +++ b/o2server/x_general_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_general_assemble_control war diff --git a/o2server/x_general_core_entity/pom.xml b/o2server/x_general_core_entity/pom.xml index 328286b98ba31a166c75fb060ac4f91e2c8d709a..b3f000597f5c02fa241043d0fadf8603a04357b2 100644 --- a/o2server/x_general_core_entity/pom.xml +++ b/o2server/x_general_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_general_core_entity jar diff --git a/o2server/x_hotpic_assemble_control/pom.xml b/o2server/x_hotpic_assemble_control/pom.xml index 1c8a982e8ba4c0e897091486279f3159ed646702..c8edefbbed15c4636d27d5644c70f1a91df1fa4d 100644 --- a/o2server/x_hotpic_assemble_control/pom.xml +++ b/o2server/x_hotpic_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_hotpic_assemble_control war diff --git a/o2server/x_hotpic_core_entity/pom.xml b/o2server/x_hotpic_core_entity/pom.xml index 66813529fd9f75a2516e9343ab8fb554c282acaf..52a58f57b775a5beb4a6075f8ecad6be0f35c455 100644 --- a/o2server/x_hotpic_core_entity/pom.xml +++ b/o2server/x_hotpic_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_hotpic_core_entity jar diff --git a/o2server/x_jpush_assemble_control/pom.xml b/o2server/x_jpush_assemble_control/pom.xml index 63747686c61f9ff6906e4352c77914dbee99e834..c8f80d174d00616366322c58fccf3f2811a5f65f 100644 --- a/o2server/x_jpush_assemble_control/pom.xml +++ b/o2server/x_jpush_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_jpush_assemble_control war diff --git a/o2server/x_jpush_core_entity/pom.xml b/o2server/x_jpush_core_entity/pom.xml index da3bf7b21312cb6b3b3df960df8b0ffcfa3a81c4..7406f47dc2cbdc8ed3e9630c9b124c89c05dc08f 100644 --- a/o2server/x_jpush_core_entity/pom.xml +++ b/o2server/x_jpush_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_jpush_core_entity jar diff --git a/o2server/x_meeting_assemble_control/pom.xml b/o2server/x_meeting_assemble_control/pom.xml index 9361f7f814a5ef7209fe55a67063be93a3a9ecc9..57bd17113c3fe791b5e257a6a6cf91c0e7bba219 100644 --- a/o2server/x_meeting_assemble_control/pom.xml +++ b/o2server/x_meeting_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_meeting_assemble_control war diff --git a/o2server/x_meeting_core_entity/pom.xml b/o2server/x_meeting_core_entity/pom.xml index 650b81ac117e9bee612445cacf8066daec0e0774..d636944c0ab87dfa1351ff6904fc03bb10af6b19 100644 --- a/o2server/x_meeting_core_entity/pom.xml +++ b/o2server/x_meeting_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_meeting_core_entity jar diff --git a/o2server/x_message_assemble_communicate/pom.xml b/o2server/x_message_assemble_communicate/pom.xml index 52dc5dae914e68dd9b917040961ae13e02700063..0bd3e98e5d75f71fc188867415e37b4a141e4182 100644 --- a/o2server/x_message_assemble_communicate/pom.xml +++ b/o2server/x_message_assemble_communicate/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_message_assemble_communicate war diff --git a/o2server/x_message_core_entity/pom.xml b/o2server/x_message_core_entity/pom.xml index aa6b763ac0760fb6ccf996c91d743ae95aba3432..6ba7de30207cf8ce547239b7f719ee4d94b8fe82 100644 --- a/o2server/x_message_core_entity/pom.xml +++ b/o2server/x_message_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_message_core_entity jar diff --git a/o2server/x_mind_assemble_control/pom.xml b/o2server/x_mind_assemble_control/pom.xml index 3c4a43fad8e5c17b9517ee424427652756a8d431..c19b44a0ddc2eddbc208b9692afbc135017663c5 100644 --- a/o2server/x_mind_assemble_control/pom.xml +++ b/o2server/x_mind_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_mind_assemble_control war diff --git a/o2server/x_mind_core_entity/pom.xml b/o2server/x_mind_core_entity/pom.xml index 5d82ddd14e8c8fd3c29f2f3f83bb00090b1c480c..04e913ef2c42a883a30ba4f5b01f7cabe1bc76eb 100644 --- a/o2server/x_mind_core_entity/pom.xml +++ b/o2server/x_mind_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_mind_core_entity jar diff --git a/o2server/x_okr_assemble_control/pom.xml b/o2server/x_okr_assemble_control/pom.xml index 0d2167c859a183e93cfa26f1d41d8dccb8acd45c..ac811b81a2e670d7ed4cf0a5d2ab32fb0a93ef70 100644 --- a/o2server/x_okr_assemble_control/pom.xml +++ b/o2server/x_okr_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_okr_assemble_control war diff --git a/o2server/x_okr_core_entity/pom.xml b/o2server/x_okr_core_entity/pom.xml index c8c9db46a6177fae282cf7e113f15968b78edbb1..06b9cfad886da48111d7508fdf31d5f5ea11ec96 100644 --- a/o2server/x_okr_core_entity/pom.xml +++ b/o2server/x_okr_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_okr_core_entity jar diff --git a/o2server/x_organization_assemble_authentication/pom.xml b/o2server/x_organization_assemble_authentication/pom.xml index c3f4ac6e4320c7ae6a72d9af7538230285b03d14..d85fb448c45be72c37c8f525022d0ec184bbafb7 100644 --- a/o2server/x_organization_assemble_authentication/pom.xml +++ b/o2server/x_organization_assemble_authentication/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_organization_assemble_authentication war diff --git a/o2server/x_organization_assemble_control/pom.xml b/o2server/x_organization_assemble_control/pom.xml index 71b4745054ff9519d563af558b307cae93fb5a28..e8517673def5297e18316d96e008d059d8b1281f 100644 --- a/o2server/x_organization_assemble_control/pom.xml +++ b/o2server/x_organization_assemble_control/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_organization_assemble_control war diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/describe.json b/o2server/x_organization_assemble_control/src/main/webapp/describe/describe.json deleted file mode 100644 index 4b54e21fdd23a03275531c55a68b172e2f7d13a6..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/describe.json +++ /dev/null @@ -1,15701 +0,0 @@ -{ - "jaxrs": [ - { - "name": "CacheAction", - "className": "com.x.base.core.project.jaxrs.cache.CacheAction", - "description": "缓存操作", - "methods": [ - { - "name": "configFlush", - "className": "com.x.base.core.project.jaxrs.cache.ActionConfigFlush", - "description": "接收config flush 信号.", - "type": "GET", - "path": "jaxrs/cache/config/flush", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "receive", - "className": "com.x.base.core.project.jaxrs.cache.ActionReceive", - "description": "接收Cache刷新信息.", - "type": "PUT", - "path": "jaxrs/cache", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "nodeName", - "type": "String", - "isCollection": false, - "description": "节点名", - "isBaseType": true - }, - { - "name": "className", - "type": "String", - "isCollection": false, - "description": "类名", - "isBaseType": true - }, - { - "name": "keys", - "type": "List\u003cObject\u003e", - "isCollection": true, - "description": "关键字", - "isBaseType": false - } - ], - "outs": [ - { - "name": "value", - "type": "String", - "isCollection": false, - "description": "字符串值" - } - ] - } - ] - }, - { - "name": "EchoAction", - "className": "com.x.base.core.project.jaxrs.echo.EchoAction", - "description": "响应", - "methods": [ - { - "name": "get", - "className": "com.x.base.core.project.jaxrs.echo.ActionGet", - "description": "获取应答.", - "type": "GET", - "path": "jaxrs/echo", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "servletContextName", - "type": "String", - "isCollection": false, - "description": "上下文根" - }, - { - "name": "serverTime", - "type": "Date", - "isCollection": false, - "description": "服务器时间" - } - ] - } - ] - }, - { - "name": "ExportAction", - "className": "com.x.organization.assemble.control.jaxrs.export.ExportAction", - "description": "导出", - "methods": [ - { - "name": "getResult", - "className": "com.x.organization.assemble.control.jaxrs.export.ActionGetResult", - "description": "获取导出结果.", - "type": "GET", - "path": "jaxrs/export/result/flag/{flag}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "导入文件返回的结果标记" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "zhengwuDingdingPerson", - "className": "com.x.organization.assemble.control.jaxrs.export.ActionZhengwuDingdingPerson", - "description": "获取政务钉钉人员.", - "type": "GET", - "path": "jaxrs/export/zhengwudingding/person", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "flag", - "type": "String", - "isCollection": false, - "description": "返回的结果标识" - } - ] - } - ] - }, - { - "name": "FireScheduleAction", - "className": "com.x.base.core.project.jaxrs.fireschedule.FireScheduleAction", - "description": "触发任务", - "methods": [ - { - "name": "execute", - "className": "com.x.base.core.project.jaxrs.fireschedule.ActionExecute", - "description": "接受x_program_center发送过来的运行schedule.", - "type": "GET", - "path": "jaxrs/fireschedule/classname/{className}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "className", - "type": "String", - "description": "运行类" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "GroupAction", - "className": "com.x.organization.assemble.control.jaxrs.group.GroupAction", - "description": "群组操作", - "methods": [ - { - "name": "addMember", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionAddMember", - "description": "添加群组成员.", - "type": "PUT", - "path": "jaxrs/group/{flag}/add/member", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID.", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID.", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionCreate", - "description": "创建群组.", - "type": "POST", - "path": "jaxrs/group", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID.", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID.", - "isBaseType": true - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionDelete", - "description": "删除群组.", - "type": "DELETE", - "path": "jaxrs/group/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "deleteMember", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionDeleteMember", - "description": "删除群组成员.", - "type": "PUT", - "path": "jaxrs/group/{flag}/delete/member", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID.", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID.", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionEdit", - "description": "更新群组.", - "type": "PUT", - "path": "jaxrs/group/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID.", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID.", - "isBaseType": true - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionGet", - "description": "获取群组.", - "type": "GET", - "path": "jaxrs/group/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woGroupList", - "type": "List\u003cWo\u003e", - "isCollection": true, - "description": "成员群组对象" - }, - { - "name": "woPersonList", - "type": "List\u003cWoPerson\u003e", - "isCollection": true, - "description": "成员个人对象" - }, - { - "name": "woUnitList", - "type": "List\u003cWoUnit\u003e", - "isCollection": true, - "description": "成员组织对象" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLike", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListLike", - "description": "根据名称进行模糊查询.", - "type": "PUT", - "path": "jaxrs/group/list/like", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLikePinyin", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListLikePinyin", - "description": "根据拼音或者首字母进行模糊查询", - "type": "PUT", - "path": "jaxrs/group/list/like/pinyin", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListNext", - "description": "列示群组,下一页.", - "type": "GET", - "path": "jaxrs/group/list/{flag}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPinyinInitial", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListPinyinInitial", - "description": "获取拼音首字母开始的群组.", - "type": "PUT", - "path": "jaxrs/group/list/pinyininitial", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListPrev", - "description": "列示群组,上一页.", - "type": "GET", - "path": "jaxrs/group/list/{flag}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "身份" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSubDirect", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListSubDirect", - "description": "查找群组直接作为成员所在的群组.", - "type": "GET", - "path": "jaxrs/group/list/{flag}/sub/direct", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSubNested", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListSubNested", - "description": "查找群组所在的群组,包括嵌套的下级群组.", - "type": "GET", - "path": "jaxrs/group/list/{flag}/sub/nested", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSupDirect", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListSupDirect", - "description": "查找群组的直接上级群组.", - "type": "GET", - "path": "jaxrs/group/list/{flag}/sup/direct", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSupDirectWithPerson", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListSupDirectWithPerson", - "description": "查找人员直接作为成员所在的群组.", - "type": "GET", - "path": "jaxrs/group/list/person/{personFlag}/sup/direct", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "personFlag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSupNested", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListSupNested", - "description": "查找群组的嵌套上级群组", - "type": "GET", - "path": "jaxrs/group/list/{flag}/sup/nested", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSupNestedWithPerson", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListSupNestedWithPerson", - "description": "查找人员所在的群组,包括嵌套的下级群组.", - "type": "GET", - "path": "jaxrs/group/list/person/{personFlag}/sup/nested", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "personFlag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithRole", - "className": "com.x.organization.assemble.control.jaxrs.group.ActionListWithRole", - "description": "查找指定角色所包含的群组.", - "type": "GET", - "path": "jaxrs/group/list/role/{roleFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "roleFlag", - "type": "String", - "description": "角色标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对群组的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "群组名称.可重名" - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的个人成员.存放个人 ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组的群组成员.存放群组 ID." - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "群组存放组织成员,存放unit ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "IdentityAction", - "className": "com.x.organization.assemble.control.jaxrs.identity.IdentityAction", - "description": "身份操作", - "methods": [ - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionCreate", - "description": "创建身份.", - "type": "POST", - "path": "jaxrs/identity", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.", - "isBaseType": true - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空.", - "isBaseType": true - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionDelete", - "description": "删除身份,同时删除职务.", - "type": "DELETE", - "path": "jaxrs/identity/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "身份标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionEdit", - "description": "更新身份.", - "type": "PUT", - "path": "jaxrs/identity/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "身份标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.", - "isBaseType": true - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空.", - "isBaseType": true - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionGet", - "description": "获取身份.", - "type": "GET", - "path": "jaxrs/identity/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "身份标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woUnit", - "type": "WoUnit", - "isCollection": false, - "description": "组织对象" - }, - { - "name": "woPerson", - "type": "WoPerson", - "isCollection": false, - "description": "个人对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLike", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListLike", - "description": "进行模糊查询.", - "type": "PUT", - "path": "jaxrs/identity/list/like", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索组织范围,为空则不限定", - "isBaseType": true - }, - { - "name": "unitDutyList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索职务范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLikePinyin", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListLikePinyin", - "description": "根据拼音或者首字母搜索.", - "type": "PUT", - "path": "jaxrs/identity/list/like/pinyin", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索组织范围,为空则不限定", - "isBaseType": true - }, - { - "name": "unitDutyList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索职务范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListNext", - "description": "列示身份,下一页.", - "type": "GET", - "path": "jaxrs/identity/list/{flag}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "身份标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPinyinInitial", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListPinyinInitial", - "description": "获取拼音首字母开始的身份.", - "type": "PUT", - "path": "jaxrs/identity/list/pinyininitial", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索组织范围,为空则不限定", - "isBaseType": true - }, - { - "name": "unitDutyList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索职务范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListPrev", - "description": "列示身份,上一页.", - "type": "GET", - "path": "jaxrs/identity/list/{flag}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "身份标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithPerson", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListWithPerson", - "description": "根据给定的人员,列示其所有的身份.", - "type": "GET", - "path": "jaxrs/identity/list/person/{personFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "personFlag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithUnit", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListWithUnit", - "description": "根据给定的组织,列示其所有的身份.", - "type": "GET", - "path": "jaxrs/identity/list/unit/{unitFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "unitFlag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithUnitDutyName", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListWithUnitDutyName", - "description": "根据给定的组织职务名称,列示其所有的身份.", - "type": "GET", - "path": "jaxrs/identity/list/unitduty/name/{unitDutyName}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "unitDutyName", - "type": "String", - "description": "组织职务名称" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithUnitWithUnitDutyName", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionListWithUnitWithUnitDutyName", - "description": "根据给定的组织和组织职务名称,列示其所有的身份.", - "type": "GET", - "path": "jaxrs/identity/list/{flag}/unitduty/name/{unitDutyName}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织" - }, - { - "name": "unitDutyName", - "type": "String", - "description": "组织职务名称" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "身份所属个人,存放个人 ID,不为空." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "属性所属组织,不可为空." - }, - { - "name": "unitName", - "type": "String", - "isCollection": false, - "description": "组织名称." - }, - { - "name": "unitLevel", - "type": "Integer", - "isCollection": false, - "description": "组织级别." - }, - { - "name": "unitLevelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "major", - "type": "Boolean", - "isCollection": false, - "description": "主身份标识" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "order", - "className": "com.x.organization.assemble.control.jaxrs.identity.ActionOrder", - "description": "更新身份.", - "type": "GET", - "path": "jaxrs/identity/{flag}/order/before/{followFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "身份标识" - }, - { - "name": "followFlag", - "type": "String", - "description": "后续身份标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "InputPersonAction", - "className": "com.x.organization.assemble.control.jaxrs.inputperson.InputPersonAction", - "description": "导入人员", - "methods": [ - { - "name": "getResult", - "className": "com.x.organization.assemble.control.jaxrs.inputperson.ActionGetResult", - "description": "获取导入人员结果.", - "type": "GET", - "path": "jaxrs/inputperson/result/flag/{flag}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "导入文件返回的结果标记" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "input", - "className": "com.x.organization.assemble.control.jaxrs.inputperson.ActionInput", - "description": "上传Excel导入人员.", - "type": "POST", - "path": "jaxrs/inputperson", - "contentType": "multipart/form-data", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": true, - "pathParameters": [], - "formParameters": [ - { - "name": "file", - "type": "File", - "description": "Excel文件" - } - ], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "flag", - "type": "String", - "isCollection": false, - "description": "返回的结果标识" - } - ] - }, - { - "name": "template", - "className": "com.x.organization.assemble.control.jaxrs.inputperson.ActionTemplate", - "description": "获取导入人员模版.", - "type": "GET", - "path": "jaxrs/inputperson/template", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - } - ] - }, - { - "name": "LoggerAction", - "className": "com.x.base.core.project.jaxrs.logger.LoggerAction", - "description": "日志操作", - "methods": [ - { - "name": "debug", - "className": "com.x.base.core.project.jaxrs.logger.ActionDebug", - "description": "设置日志级别为DEBUG.", - "type": "GET", - "path": "jaxrs/logger/debug", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "get", - "className": "com.x.base.core.project.jaxrs.logger.ActionGet", - "description": "获取当前日志级别.", - "type": "GET", - "path": "jaxrs/logger", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "String", - "isCollection": false, - "description": "字符串值" - } - ] - }, - { - "name": "info", - "className": "com.x.base.core.project.jaxrs.logger.ActionInfo", - "description": "设置日志级别为INFO", - "type": "GET", - "path": "jaxrs/logger/info", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "trace", - "className": "com.x.base.core.project.jaxrs.logger.ActionTrace", - "description": "设置日志级别为TRACE.", - "type": "GET", - "path": "jaxrs/logger/trace", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "warn", - "className": "com.x.base.core.project.jaxrs.logger.ActionWarn", - "description": "设置日志级别为WARN", - "type": "GET", - "path": "jaxrs/logger/warn", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "LoginRecordAction", - "className": "com.x.organization.assemble.control.jaxrs.loginrecord.LoginRecordAction", - "description": "登录日志", - "methods": [ - { - "name": "loginRecord", - "className": "com.x.organization.assemble.control.jaxrs.loginrecord.ActionLoginRecord", - "description": "获取用户登录记录的Excel.", - "type": "GET", - "path": "jaxrs/loginrecord/{stream}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "stream", - "type": "Boolean", - "description": "是否采用流格式直接作为附件下载" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - } - ] - }, - { - "name": "PermissionSettingAction", - "className": "com.x.organization.assemble.control.jaxrs.permissionsetting.PermissionSettingAction", - "description": "通讯录权限设置", - "methods": [ - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.permissionsetting.ActionCreate", - "description": "创建通讯录权限设置.", - "type": "POST", - "path": "jaxrs/permissionsetting", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "excludeUnit", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询单位.", - "isBaseType": true - }, - { - "name": "excludePerson", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询个人.", - "isBaseType": true - }, - { - "name": "limitQueryOuter", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看外部门.", - "isBaseType": true - }, - { - "name": "limitQueryAll", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看所有人", - "isBaseType": true - }, - { - "name": "explain", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布", - "isBaseType": true - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段.", - "isBaseType": true - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段.", - "isBaseType": true - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.permissionsetting.ActionDelete", - "description": "删除通讯录设置配置.", - "type": "DELETE", - "path": "jaxrs/permissionsetting/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "通讯录配置标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.permissionsetting.ActionGet", - "description": "获取通讯录配置.", - "type": "GET", - "path": "jaxrs/permissionsetting/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "名片标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "excludeUnit", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询单位." - }, - { - "name": "excludePerson", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询个人." - }, - { - "name": "limitQueryOuter", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看外部门." - }, - { - "name": "limitQueryAll", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看所有人" - }, - { - "name": "explain", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布" - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段." - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段." - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "list", - "className": "com.x.organization.assemble.control.jaxrs.permissionsetting.ActionList", - "description": "获取所有通讯录设置配置", - "type": "GET", - "path": "jaxrs/permissionsetting/list", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "excludeUnit", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询单位." - }, - { - "name": "excludePerson", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询个人." - }, - { - "name": "limitQueryOuter", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看外部门." - }, - { - "name": "limitQueryAll", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看所有人" - }, - { - "name": "explain", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布" - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段." - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段." - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "update", - "className": "com.x.organization.assemble.control.jaxrs.permissionsetting.ActionUpdate", - "description": "更新通讯录配置.", - "type": "PUT", - "path": "jaxrs/permissionsetting/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "名片标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "excludeUnit", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询单位.", - "isBaseType": true - }, - { - "name": "excludePerson", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询个人.", - "isBaseType": true - }, - { - "name": "limitQueryOuter", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看外部门.", - "isBaseType": true - }, - { - "name": "limitQueryAll", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看所有人", - "isBaseType": true - }, - { - "name": "explain", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布", - "isBaseType": true - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段.", - "isBaseType": true - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段.", - "isBaseType": true - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "excludeUnit", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询单位." - }, - { - "name": "excludePerson", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "不允许被查询个人." - }, - { - "name": "limitQueryOuter", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看外部门." - }, - { - "name": "limitQueryAll", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "限制查看所有人" - }, - { - "name": "explain", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布" - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段." - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段." - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段." - } - ] - } - ] - }, - { - "name": "PersonAction", - "className": "com.x.organization.assemble.control.jaxrs.person.PersonAction", - "description": "个人操作", - "methods": [ - { - "name": "checkPassword", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionCheckPassword", - "description": "校验password密码等级.", - "type": "GET", - "path": "jaxrs/person/check/password/{password}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "password", - "type": "String", - "description": "校验密码" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "String", - "isCollection": false, - "description": "字符串值" - } - ] - }, - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionCreate", - "description": "创建个人.", - "type": "POST", - "path": "jaxrs/person", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d", - "isBaseType": false - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像).", - "isBaseType": true - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像).", - "isBaseType": true - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名.", - "isBaseType": true - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。", - "isBaseType": true - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象.", - "isBaseType": true - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址.", - "isBaseType": true - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号.", - "isBaseType": true - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号.", - "isBaseType": true - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号.", - "isBaseType": true - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号.", - "isBaseType": true - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话.", - "isBaseType": true - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间.", - "isBaseType": true - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日.", - "isBaseType": true - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄", - "isBaseType": true - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID.", - "isBaseType": true - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征.", - "isBaseType": true - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID.", - "isBaseType": true - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征.", - "isBaseType": true - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID.", - "isBaseType": true - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征.", - "isBaseType": true - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1.", - "isBaseType": true - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2.", - "isBaseType": true - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3.", - "isBaseType": true - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4.", - "isBaseType": true - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5.", - "isBaseType": true - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间.", - "isBaseType": true - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数", - "isBaseType": true - }, - { - "name": "topUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "所属顶层组织.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionDelete", - "description": "删除个人.", - "type": "DELETE", - "path": "jaxrs/person/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "人员标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionEdit", - "description": "更新个人.", - "type": "PUT", - "path": "jaxrs/person/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "人员标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d", - "isBaseType": false - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像).", - "isBaseType": true - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像).", - "isBaseType": true - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名.", - "isBaseType": true - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。", - "isBaseType": true - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象.", - "isBaseType": true - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间.", - "isBaseType": true - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址.", - "isBaseType": true - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号.", - "isBaseType": true - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号.", - "isBaseType": true - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号.", - "isBaseType": true - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号.", - "isBaseType": true - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话.", - "isBaseType": true - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间.", - "isBaseType": true - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日.", - "isBaseType": true - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄", - "isBaseType": true - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID.", - "isBaseType": true - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征.", - "isBaseType": true - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID.", - "isBaseType": true - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征.", - "isBaseType": true - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID.", - "isBaseType": true - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征.", - "isBaseType": true - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1.", - "isBaseType": true - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2.", - "isBaseType": true - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3.", - "isBaseType": true - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4.", - "isBaseType": true - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5.", - "isBaseType": true - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间.", - "isBaseType": true - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionGet", - "description": "获取个人,附带身份,身份所在的组织,个人所在群组,个人拥有角色.", - "type": "GET", - "path": "jaxrs/person/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "人员标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woIdentityList", - "type": "List\u003cWoIdentity\u003e", - "isCollection": true, - "description": "身份对象" - }, - { - "name": "woRoleList", - "type": "List\u003cWoRole\u003e", - "isCollection": true, - "description": "角色对象" - }, - { - "name": "woGroupList", - "type": "List\u003cWoGroup\u003e", - "isCollection": true, - "description": "群组对象" - }, - { - "name": "woPersonAttributeList", - "type": "List\u003cWoPersonAttribute\u003e", - "isCollection": true, - "description": "个人属性对象" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像)." - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像)." - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "topUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "所属顶层组织." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "getIconWithPerson", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionGetIconWithPerson", - "description": "获取个人头像.", - "type": "GET", - "path": "jaxrs/person/{flag}/icon", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "listLike", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionListLike", - "description": "根据名称进行模糊查询.", - "type": "PUT", - "path": "jaxrs/person/list/like", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像)." - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像)." - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "topUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "所属顶层组织." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLikePinyin", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionListLikePinyin", - "description": "根据拼音或者首字母进行模糊查询.", - "type": "PUT", - "path": "jaxrs/person/list/like/pinyin", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像)." - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像)." - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "topUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "所属顶层组织." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionListNext", - "description": "列示个人,下一页.", - "type": "GET", - "path": "jaxrs/person/list/{flag}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "人员标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPinyinInitial", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionListPinyinInitial", - "description": "获取拼音首字母开始的个人.", - "type": "PUT", - "path": "jaxrs/person/list/pinyininitial", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像)." - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像)." - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "topUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "所属顶层组织." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionListPrev", - "description": "列示个人,上一页.", - "type": "GET", - "path": "jaxrs/person/list/{flag}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "人员标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSubDirectWithGroup", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionListSubDirectWithGroup", - "description": "根据给定的群组,列示直接个人成员.", - "type": "GET", - "path": "jaxrs/person/list/group/{groupFlag}/sub/direct", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "groupFlag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像)." - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像)." - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "topUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "所属顶层组织." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSubNestedWithGroup", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionListSubNestedWithGroup", - "description": "根根据给定的群组,列示嵌套的个人成员.", - "type": "GET", - "path": "jaxrs/person/list/group/{groupFlag}/sub/nested", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "groupFlag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像)." - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像)." - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "topUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "所属顶层组织." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithRole", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionListWithRole", - "description": "根根据给定的角色,列示个人成员.", - "type": "GET", - "path": "jaxrs/person/list/role/{roleFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "roleFlag", - "type": "String", - "description": "角色标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对个人的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "iconMdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(中等尺寸图像)." - }, - { - "name": "iconLdpi", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本(小尺寸图像)." - }, - { - "name": "signature", - "type": "String", - "isCollection": false, - "description": "个性签名." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "employee", - "type": "String", - "isCollection": false, - "description": "工号,不可重复." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "个人管理者.默认为创建者。" - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "汇报对象." - }, - { - "name": "passwordExpiredTime", - "type": "Date", - "isCollection": false, - "description": "用户密码到期时间." - }, - { - "name": "changePasswordTime", - "type": "Date", - "isCollection": false, - "description": "用户密码最后修改时间." - }, - { - "name": "lastLoginTime", - "type": "Date", - "isCollection": false, - "description": "最后登录时间." - }, - { - "name": "lastLoginAddress", - "type": "String", - "isCollection": false, - "description": "最后登录地址." - }, - { - "name": "lastLoginClient", - "type": "String", - "isCollection": false, - "description": "最后登录客户端类型,web,android或者ios." - }, - { - "name": "mail", - "type": "String", - "isCollection": false, - "description": "邮件地址." - }, - { - "name": "weixin", - "type": "String", - "isCollection": false, - "description": "微信号." - }, - { - "name": "qq", - "type": "String", - "isCollection": false, - "description": "QQ号." - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "hiddenMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否隐藏手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "boardDate", - "type": "Date", - "isCollection": false, - "description": "入职时间." - }, - { - "name": "birthday", - "type": "Date", - "isCollection": false, - "description": "生日." - }, - { - "name": "age", - "type": "Integer", - "isCollection": false, - "description": "年龄" - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉人员ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉人员哈希特征." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "open1Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id1." - }, - { - "name": "open2Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id2." - }, - { - "name": "open3Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id3." - }, - { - "name": "open4Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id4." - }, - { - "name": "open5Id", - "type": "String", - "isCollection": false, - "description": "oauth登录id5." - }, - { - "name": "failureTime", - "type": "Date", - "isCollection": false, - "description": "登录失败记录时间." - }, - { - "name": "failureCount", - "type": "Integer", - "isCollection": false, - "description": "登录失败次数" - }, - { - "name": "topUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "所属顶层组织." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "resetPassword", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionResetPassword", - "description": "重置个人的密码.", - "type": "GET", - "path": "jaxrs/person/{flag}/reset/password", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "setIcon", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionSetIcon", - "description": "设置个人的头像.", - "type": "PUT", - "path": "jaxrs/person/{flag}/icon", - "contentType": "multipart/form-data", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": true, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [ - { - "name": "file", - "type": "File", - "description": "头像文件" - } - ], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "setPassword", - "className": "com.x.organization.assemble.control.jaxrs.person.ActionSetPassword", - "description": "更新指定个人的密码.", - "type": "PUT", - "path": "jaxrs/person/{flag}/set/password", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "value", - "type": "String", - "isCollection": false, - "description": "字符串值", - "isBaseType": true - } - ], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "PersonAttributeAction", - "className": "com.x.organization.assemble.control.jaxrs.personattribute.PersonAttributeAction", - "description": "个人属性操作", - "methods": [ - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.personattribute.ActionCreate", - "description": "创建个人属性.", - "type": "POST", - "path": "jaxrs/personattribute", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一个组织中不可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@PA结尾.", - "isBaseType": true - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "个人属性所属个人,不可为空.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.personattribute.ActionDelete", - "description": "删除个人属性.", - "type": "DELETE", - "path": "jaxrs/personattribute/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人属性标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.organization.assemble.control.jaxrs.personattribute.ActionEdit", - "description": "更新个人属性.", - "type": "PUT", - "path": "jaxrs/personattribute/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人属性标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一个组织中不可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@PA结尾.", - "isBaseType": true - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "个人属性所属个人,不可为空.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.personattribute.ActionGet", - "description": "获取个人属性.附带个人", - "type": "GET", - "path": "jaxrs/personattribute/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人属性标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woPerson", - "type": "WoPerson", - "isCollection": false, - "description": "个人对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一个组织中不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@PA结尾." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "个人属性所属个人,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.organization.assemble.control.jaxrs.personattribute.ActionListNext", - "description": "列示个人属性,下一页.", - "type": "GET", - "path": "jaxrs/personattribute/list/{flag}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人属性标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一个组织中不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@PA结尾." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "个人属性所属个人,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithPerson", - "className": "com.x.organization.assemble.control.jaxrs.personattribute.ActionListWithPerson", - "description": "列示个人的个人属性.", - "type": "GET", - "path": "jaxrs/personattribute/list/person/{personFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "personFlag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一个组织中不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@PA结尾." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "个人属性所属个人,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "standardListPrev", - "className": "com.x.organization.assemble.control.jaxrs.personattribute.ActionListPrev", - "description": "列示个人属性,上一页.", - "type": "GET", - "path": "jaxrs/personattribute/list/{flag}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "个人属性标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一个组织中不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@PA结尾." - }, - { - "name": "person", - "type": "String", - "isCollection": false, - "description": "个人属性所属个人,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "PersonCardAction", - "className": "com.x.organization.assemble.control.jaxrs.personcard.PersonCardAction", - "description": "个人通讯录操作", - "methods": [ - { - "name": "ListGroupTypes", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionListMyGroupTypes", - "description": "列出当前用户的所有分组", - "type": "GET", - "path": "jaxrs/personcard/listgrouptypes", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "ListPaging", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionListPaging", - "description": "获取当前登录人的名片.分页", - "type": "PUT", - "path": "jaxrs/personcard/listpaging/page/{page}/size/{size}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "page", - "type": "Integer", - "description": "页码" - }, - { - "name": "size", - "type": "Integer", - "description": "每页几条" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "匹配关键字:姓名,手机号,电话,姓名拼音,分组,状态", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "groupType", - "type": "String", - "isCollection": false, - "description": "所属分组." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "录入人,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "address", - "type": "String", - "isCollection": false, - "description": "地址." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "备注." - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段." - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段." - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段." - }, - { - "name": "inputTime", - "type": "String", - "isCollection": false, - "description": "录入时间." - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "ListPagingWithGroupType", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionListPagingWithGroup", - "description": "按分组查询当前登录人的名片.分页", - "type": "PUT", - "path": "jaxrs/personcard/listpagingwithgroup/page/{page}/size/{size}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "page", - "type": "Integer", - "description": "页码" - }, - { - "name": "size", - "type": "Integer", - "description": "每页几条" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "匹配关键字", - "isBaseType": true - }, - { - "name": "groupType", - "type": "String", - "isCollection": false, - "description": "分组名称", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "groupType", - "type": "String", - "isCollection": false, - "description": "所属分组." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "录入人,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "address", - "type": "String", - "isCollection": false, - "description": "地址." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "备注." - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段." - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段." - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段." - }, - { - "name": "inputTime", - "type": "String", - "isCollection": false, - "description": "录入时间." - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "code", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionCreateCode", - "description": "个人通讯录生成二维码", - "type": "GET", - "path": "jaxrs/personcard/createQR/{cardId}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "cardId", - "type": "String", - "description": "名片id" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionCreate", - "description": "创建名片.", - "type": "POST", - "path": "jaxrs/personcard", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名.", - "isBaseType": true - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d", - "isBaseType": false - }, - { - "name": "groupType", - "type": "String", - "isCollection": false, - "description": "所属分组.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号.", - "isBaseType": true - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话.", - "isBaseType": true - }, - { - "name": "address", - "type": "String", - "isCollection": false, - "description": "地址.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "备注.", - "isBaseType": true - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段.", - "isBaseType": true - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段.", - "isBaseType": true - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段.", - "isBaseType": true - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionDelete", - "description": "删除个人名片.", - "type": "DELETE", - "path": "jaxrs/personcard/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "名片标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionGet", - "description": "获取个人名片.", - "type": "GET", - "path": "jaxrs/personcard/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "名片标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "groupType", - "type": "String", - "isCollection": false, - "description": "所属分组." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "录入人,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "address", - "type": "String", - "isCollection": false, - "description": "地址." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "备注." - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段." - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段." - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段." - }, - { - "name": "inputTime", - "type": "String", - "isCollection": false, - "description": "录入时间." - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPersonalVCf", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionExportPersonalVcf", - "description": "导出个人通讯录vcf", - "type": "GET", - "path": "jaxrs/personcard/listPersonalVCf/{idList}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "idList", - "type": "String", - "description": "名片id组" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "listVCf", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionExportVcf", - "description": "导出组织通讯录vcf", - "type": "GET", - "path": "jaxrs/personcard/listVCf/{idList}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "idList", - "type": "String", - "description": "名片id组" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "mylist", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionList", - "description": "获取当前登录人的所有名片", - "type": "GET", - "path": "jaxrs/personcard/mylist", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "groupType", - "type": "String", - "isCollection": false, - "description": "所属分组." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "录入人,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "address", - "type": "String", - "isCollection": false, - "description": "地址." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "备注." - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段." - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段." - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段." - }, - { - "name": "inputTime", - "type": "String", - "isCollection": false, - "description": "录入时间." - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "personcode", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionPersonCode", - "description": "组织人员生成二维码", - "type": "GET", - "path": "jaxrs/personcard/createCode/{cardId}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "cardId", - "type": "String", - "description": "名片id" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "update", - "className": "com.x.organization.assemble.control.jaxrs.personcard.ActionUpdate", - "description": "更新个人名片.", - "type": "PUT", - "path": "jaxrs/personcard/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "名片标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名.", - "isBaseType": true - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d", - "isBaseType": false - }, - { - "name": "groupType", - "type": "String", - "isCollection": false, - "description": "所属分组.", - "isBaseType": true - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号.", - "isBaseType": true - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话.", - "isBaseType": true - }, - { - "name": "address", - "type": "String", - "isCollection": false, - "description": "地址.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "备注.", - "isBaseType": true - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段.", - "isBaseType": true - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段.", - "isBaseType": true - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段.", - "isBaseType": true - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布", - "isBaseType": true - } - ], - "outs": [ - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "genderType", - "type": "GenderType", - "isCollection": false, - "description": "性别.男:m,女:f,未知:d" - }, - { - "name": "groupType", - "type": "String", - "isCollection": false, - "description": "所属分组." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "录入人,@P结尾." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "mobile", - "type": "String", - "isCollection": false, - "description": "必填,手机号." - }, - { - "name": "officePhone", - "type": "String", - "isCollection": false, - "description": "办公电话." - }, - { - "name": "address", - "type": "String", - "isCollection": false, - "description": "地址." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "备注." - }, - { - "name": "extend1", - "type": "String", - "isCollection": false, - "description": "extend1扩展字段." - }, - { - "name": "extend2", - "type": "String", - "isCollection": false, - "description": "extend2扩展字段." - }, - { - "name": "extend3", - "type": "String", - "isCollection": false, - "description": "extend3扩展字段." - }, - { - "name": "inputTime", - "type": "String", - "isCollection": false, - "description": "录入时间." - }, - { - "name": "status", - "type": "String", - "isCollection": false, - "description": "状态.草稿,发布" - } - ] - } - ] - }, - { - "name": "RoleAction", - "className": "com.x.organization.assemble.control.jaxrs.role.RoleAction", - "description": "角色操作", - "methods": [ - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionCreate", - "description": "创建角色.", - "type": "POST", - "path": "jaxrs/role", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID.", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionDelete", - "description": "删除角色对象.", - "type": "DELETE", - "path": "jaxrs/role/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "角色标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionEdit", - "description": "更新角色.", - "type": "PUT", - "path": "jaxrs/role/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "角色标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID.", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionGet", - "description": "获取角色.", - "type": "GET", - "path": "jaxrs/role/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "角色标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对角色的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLike", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionListLike", - "description": "根据名称进行模糊查询.", - "type": "PUT", - "path": "jaxrs/role/list/like", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对角色的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLikePinyin", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionListLikePinyin", - "description": "根据拼音或者首字母进行模糊查询.", - "type": "PUT", - "path": "jaxrs/role/list/like/pinyin", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对角色的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionListNext", - "description": "列示角色对象,下一页.", - "type": "GET", - "path": "jaxrs/role/list/{flag}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "角色标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对角色的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPinyinInitial", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionListPinyinInitial", - "description": "获取拼音首字母开始的Person.", - "type": "PUT", - "path": "jaxrs/role/list/pinyininitial", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索群组范围,为空则不限定", - "isBaseType": true - }, - { - "name": "roleList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索角色范围,为空则不限定", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对角色的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionListPrev", - "description": "列示角色对象,上一页.", - "type": "GET", - "path": "jaxrs/role/list/{flag}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "角色标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对角色的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithGroup", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionListWithGroup", - "description": "根据给定的Group ID,获取其拥有的角色对象.", - "type": "GET", - "path": "jaxrs/role/list/group/{groupFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "groupFlag", - "type": "String", - "description": "群组标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对角色的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithPerson", - "className": "com.x.organization.assemble.control.jaxrs.role.ActionListWithPerson", - "description": "根据给定的人员的的角色.", - "type": "GET", - "path": "jaxrs/role/list/person/{personFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "personFlag", - "type": "String", - "description": "个人标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "对角色的操作权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "personList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色个人成员,多值,存储 Person ID." - }, - { - "name": "groupList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "角色群组成员,多值,存储 Group ID." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "SysResourceAction", - "className": "com.x.base.core.project.jaxrs.sysresource.SysResourceAction", - "description": "系统资源", - "methods": [ - { - "name": "listResource", - "className": "com.x.base.core.project.jaxrs.sysresource.ActionListResource", - "description": "获取静态资源信息.", - "type": "GET", - "path": "jaxrs/sysresource/filePath/{filePath}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "filePath", - "type": "String", - "description": "查找路径(根路径:(0))" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "uploadResource", - "className": "com.x.base.core.project.jaxrs.sysresource.ActionUploadResource", - "description": "上传静态资源(仅上传到当前服务器)", - "type": "POST", - "path": "jaxrs/sysresource/upload/resource/as/new/{asNew}", - "contentType": "multipart/form-data", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": true, - "pathParameters": [ - { - "name": "asNew", - "type": "Boolean", - "description": "覆盖类型:true删除原文件然后上传,false覆盖原文件" - } - ], - "formParameters": [ - { - "name": "file", - "type": "File", - "description": "上传文件" - }, - { - "name": "fileName", - "type": "String", - "description": "附件名称" - }, - { - "name": "filePath", - "type": "String", - "description": "附件存放目录(可以为空)" - } - ], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "UnitAction", - "className": "com.x.organization.assemble.control.jaxrs.unit.UnitAction", - "description": "组织操作", - "methods": [ - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionCreate", - "description": "创建组织.", - "type": "POST", - "path": "jaxrs/unit", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾.", - "isBaseType": true - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员.", - "isBaseType": true - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID.", - "isBaseType": true - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征.", - "isBaseType": true - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID.", - "isBaseType": true - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID.", - "isBaseType": true - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征.", - "isBaseType": true - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionDelete", - "description": "删除组织.", - "type": "DELETE", - "path": "jaxrs/unit/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionEdit", - "description": "更新组织.", - "type": "PUT", - "path": "jaxrs/unit/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾.", - "isBaseType": true - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。", - "isBaseType": true - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员.", - "isBaseType": true - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID.", - "isBaseType": true - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征.", - "isBaseType": true - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID.", - "isBaseType": true - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID.", - "isBaseType": true - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征.", - "isBaseType": true - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionGet", - "description": "获取组织.", - "type": "GET", - "path": "jaxrs/unit/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woSupDirectUnit", - "type": "Wo", - "isCollection": false, - "description": "直接上级组织对象" - }, - { - "name": "woSubDirectIdentityList", - "type": "List\u003cWoIdentity\u003e", - "isCollection": true, - "description": "直接下级身份对象" - }, - { - "name": "woUnitAttributeList", - "type": "List\u003cWoUnitAttribute\u003e", - "isCollection": true, - "description": "组织属性对象" - }, - { - "name": "woUnitDutyList", - "type": "List\u003cWoUnitDuty\u003e", - "isCollection": true, - "description": "组织职务对象" - }, - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "getSupDirect", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionGetSupDirect", - "description": "直接上级组织.", - "type": "GET", - "path": "jaxrs/unit/{flag}/sup/direct", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "getWithIdentityWithLevel", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionGetWithIdentityWithLevel", - "description": "根据身份获取递归上级组织中等级为指定登记的组织.", - "type": "GET", - "path": "jaxrs/unit/identity/{identityFlag}/level/{level}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "identityFlag", - "type": "String", - "description": "组织标识" - }, - { - "name": "level", - "type": "Integer", - "description": "组织等级" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woSupDirectUnit", - "type": "Wo", - "isCollection": false, - "description": "直接上级组织对象" - }, - { - "name": "woSubDirectIdentityList", - "type": "List\u003cWoIdentity\u003e", - "isCollection": true, - "description": "直接下级身份对象" - }, - { - "name": "woUnitAttributeList", - "type": "List\u003cWoUnitAttribute\u003e", - "isCollection": true, - "description": "组织属性对象" - }, - { - "name": "woUnitDutyList", - "type": "List\u003cWoUnitDuty\u003e", - "isCollection": true, - "description": "组织职务对象" - }, - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "getWithIdentityWithType", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionGetWithIdentityWithType", - "description": "根据身份获取递归上级组织中type为指定type的组织.", - "type": "GET", - "path": "jaxrs/unit/identity/{identityFlag}/type/{type}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "identityFlag", - "type": "String", - "description": "组织标识" - }, - { - "name": "type", - "type": "String", - "description": "组织类型" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woSupDirectUnit", - "type": "Wo", - "isCollection": false, - "description": "直接上级组织对象" - }, - { - "name": "woSubDirectIdentityList", - "type": "List\u003cWoIdentity\u003e", - "isCollection": true, - "description": "直接下级身份对象" - }, - { - "name": "woUnitAttributeList", - "type": "List\u003cWoUnitAttribute\u003e", - "isCollection": true, - "description": "组织属性对象" - }, - { - "name": "woUnitDutyList", - "type": "List\u003cWoUnitDuty\u003e", - "isCollection": true, - "description": "组织职务对象" - }, - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "list", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionList", - "description": "批量获取组织.", - "type": "POST", - "path": "jaxrs/unit/list", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织标识", - "isBaseType": true - } - ], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLike", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListLike", - "description": "根据名称进行模糊查询.", - "type": "PUT", - "path": "jaxrs/unit/list/like", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索组织范围,为空则不限定", - "isBaseType": true - }, - { - "name": "type", - "type": "String", - "isCollection": false, - "description": "组织类型", - "isBaseType": true - } - ], - "outs": [ - { - "name": "woSupNestedUnitList", - "type": "List\u003cWo\u003e", - "isCollection": true, - "description": "递归上级组织对象" - }, - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listLikePinyin", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListLikePinyin", - "description": "根据拼音或者首字母进行模糊查询.", - "type": "PUT", - "path": "jaxrs/unit/list/like/pinyin", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索组织范围,为空则不限定", - "isBaseType": true - }, - { - "name": "type", - "type": "String", - "isCollection": false, - "description": "组织类型", - "isBaseType": true - } - ], - "outs": [ - { - "name": "woSupNestedUnitList", - "type": "List\u003cWo\u003e", - "isCollection": true, - "description": "递归上级组织对象" - }, - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListNext", - "description": "列示组织,下一页.", - "type": "GET", - "path": "jaxrs/unit/list/{flag}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPinyinInitial", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListPinyinInitial", - "description": "获取拼音首字母开始的组织.", - "type": "PUT", - "path": "jaxrs/unit/list/pinyininitial", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "key", - "type": "String", - "isCollection": false, - "description": "搜索关键字", - "isBaseType": true - }, - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索组织范围,为空则不限定", - "isBaseType": true - }, - { - "name": "type", - "type": "String", - "isCollection": false, - "description": "组织类型", - "isBaseType": true - } - ], - "outs": [ - { - "name": "woSupNestedUnitList", - "type": "List\u003cWo\u003e", - "isCollection": true, - "description": "递归上级组织对象" - }, - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListPrev", - "description": "列示组织对象,上一页.", - "type": "GET", - "path": "jaxrs/unit/list/{flag}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSubDirect", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListSubDirect", - "description": "直接下级组织.", - "type": "GET", - "path": "jaxrs/unit/list/{flag}/sub/direct", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSubDirectWithType", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListSubDirectWithType", - "description": "查找直接下级组织中符合type值的对象.", - "type": "GET", - "path": "jaxrs/unit/list/{flag}/sub/direct/type/{type}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - }, - { - "name": "type", - "type": "String", - "description": "组织的type属性值,匹配多值中的某一个" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSubNested", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListSubNested", - "description": "递归下级组织.", - "type": "GET", - "path": "jaxrs/unit/list/{flag}/sub/nested", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSupNested", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListSupNested", - "description": "递归上级组织.", - "type": "GET", - "path": "jaxrs/unit/list/{flag}/sup/nested", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSupNestedWithType", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListSupNestedWithType", - "description": "查找递归上级组织中符合type值的对象.", - "type": "GET", - "path": "jaxrs/unit/list/{flag}/sup/nested/type/{type}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织标识" - }, - { - "name": "type", - "type": "String", - "description": "组织的type属性值,匹配多值中的某一个" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接下级身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listTop", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListTop", - "description": "列示顶层组织.", - "type": "GET", - "path": "jaxrs/unit/list/top", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接成员身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listTopWithType", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListTopWithType", - "description": "通过type属性值搜索顶层组织.", - "type": "GET", - "path": "jaxrs/unit/list/top/type/{type}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "type", - "type": "String", - "description": "组织的type属性值,匹配多值中的某一个" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "subDirectUnitCount", - "type": "Long", - "isCollection": false, - "description": "直接下级组织数量" - }, - { - "name": "subDirectIdentityCount", - "type": "Long", - "isCollection": false, - "description": "直接成员身份数量" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listType", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListType", - "description": "列示所有的组织属性.", - "type": "GET", - "path": "jaxrs/unit/list/type", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "valueList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "字符串多值." - } - ] - }, - { - "name": "listWithUnitWithType", - "className": "com.x.organization.assemble.control.jaxrs.unit.ActionListWithUnitWithType", - "description": "通过type属性值搜索组织.", - "type": "PUT", - "path": "jaxrs/unit/list/unit/type", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "unitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "搜索组织范围,为空则不限定", - "isBaseType": true - }, - { - "name": "type", - "type": "String", - "isCollection": false, - "description": "组织的type属性值,匹配多值中的某一个,不能为空", - "isBaseType": true - } - ], - "outs": [ - { - "name": "woSubDirectUnitList", - "type": "List\u003cWo\u003e", - "isCollection": true, - "description": "直接下级组织组织对象" - }, - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "当前用户是否可以操作组织" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,可以重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名.以@U结尾." - }, - { - "name": "typeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织类型." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "shortName", - "type": "String", - "isCollection": false, - "description": "组织简称。" - }, - { - "name": "level", - "type": "Integer", - "isCollection": false, - "description": "组织级别,1为最上层组织.自动计算." - }, - { - "name": "levelName", - "type": "String", - "isCollection": false, - "description": "显示的层级名." - }, - { - "name": "superior", - "type": "String", - "isCollection": false, - "description": "上级组织." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织的管理人员." - }, - { - "name": "inheritedControllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "继承自上级组织的管理人员." - }, - { - "name": "dingdingId", - "type": "String", - "isCollection": false, - "description": "钉钉部门ID." - }, - { - "name": "dingdingHash", - "type": "String", - "isCollection": false, - "description": "钉钉部门哈希特征." - }, - { - "name": "qiyeweixinId", - "type": "String", - "isCollection": false, - "description": "企业微信人员ID." - }, - { - "name": "zhengwuDingdingId", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员ID." - }, - { - "name": "zhengwuDingdingHash", - "type": "String", - "isCollection": false, - "description": "政务钉钉人员哈希特征." - }, - { - "name": "qiyeweixinHash", - "type": "String", - "isCollection": false, - "description": "企业微信人员哈希特征." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "UnitAttributeAction", - "className": "com.x.organization.assemble.control.jaxrs.unitattribute.UnitAttributeAction", - "description": "组织属性操作", - "methods": [ - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.unitattribute.ActionCreate", - "description": "创建组织属性.", - "type": "POST", - "path": "jaxrs/unitattribute", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,不可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UA结尾.", - "isBaseType": true - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织属性所属组织,不可为空.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.unitattribute.ActionDelete", - "description": "删除组织属性.", - "type": "DELETE", - "path": "jaxrs/unitattribute/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织属性标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.organization.assemble.control.jaxrs.unitattribute.ActionEdit", - "description": "更新组织属性.", - "type": "PUT", - "path": "jaxrs/unitattribute/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织属性标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,不可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UA结尾.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.unitattribute.ActionGet", - "description": "获取组织属性对象.", - "type": "GET", - "path": "jaxrs/unitattribute/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织属性标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woUnit", - "type": "WoUnit", - "isCollection": false, - "description": "组织对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UA结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织属性所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.organization.assemble.control.jaxrs.unitattribute.ActionListNext", - "description": "列示组织属性,下一页.", - "type": "GET", - "path": "jaxrs/unitattribute/list/{flag}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织属性标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UA结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织属性所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.organization.assemble.control.jaxrs.unitattribute.ActionListPrev", - "description": "列示组织属性,上一页.", - "type": "GET", - "path": "jaxrs/unitattribute/list/{flag}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织属性标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UA结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织属性所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithUnit", - "className": "com.x.organization.assemble.control.jaxrs.unitattribute.ActionListWithUnit", - "description": "根据给定的组织,列示其所有的组织属性对象.", - "type": "GET", - "path": "jaxrs/unitattribute/list/unit/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织属性标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UA结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织属性所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "attributeList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "属性值,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "UnitDutyAction", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.UnitDutyAction", - "description": "组织职务操作", - "methods": [ - { - "name": "create", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionCreate", - "description": "创建组织职务.", - "type": "POST", - "path": "jaxrs/unitduty", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一组织下不可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UD结尾.", - "isBaseType": true - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织职务所属组织,不可为空.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "identityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织职务身份成员,多值.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionDelete", - "description": "删除组织职务.", - "type": "DELETE", - "path": "jaxrs/unitduty/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织职务标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "distinctName", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionDistinctName", - "description": "获取去重的组织职务名称.", - "type": "GET", - "path": "jaxrs/unitduty/distinct/name", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "distinctNameLike", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionDistinctNameLike", - "description": "模糊匹配组织职务的名称,匹配名称,拼音和首字母.", - "type": "GET", - "path": "jaxrs/unitduty/distinct/name/like/{key}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "key", - "type": "String", - "description": "关键字,拼音或首字母" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "edit", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionEdit", - "description": "更新组织职务.", - "type": "PUT", - "path": "jaxrs/unitduty/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织职务标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一组织下不可重名.", - "isBaseType": true - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值", - "isBaseType": true - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UD结尾.", - "isBaseType": true - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后", - "isBaseType": true - }, - { - "name": "identityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织职务身份成员,多值.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionGet", - "description": "获取组织职务.", - "type": "GET", - "path": "jaxrs/unitduty/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织职务标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woUnit", - "type": "WoUnit", - "isCollection": false, - "description": "组织对象" - }, - { - "name": "woIdentityList", - "type": "List\u003cWoIdentity\u003e", - "isCollection": true, - "description": "身份对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一组织下不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UD结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织职务所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "identityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织职务身份成员,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionListNext", - "description": "列示组织职务.下一页", - "type": "GET", - "path": "jaxrs/unitduty/list/{flag}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织职务标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一组织下不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UD结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织职务所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "identityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织职务身份成员,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionListPrev", - "description": "列示组织职务,上一页.", - "type": "GET", - "path": "jaxrs/unitduty/list/{flag}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "组织职务标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一组织下不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UD结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织职务所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "identityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织职务身份成员,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithIdentity", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionListWithIdentity", - "description": "根据给定的身份,获取所拥有的组织职务.", - "type": "GET", - "path": "jaxrs/unitduty/list/identity/{identityFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "identityFlag", - "type": "String", - "description": "身份标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woUnit", - "type": "WoUnit", - "isCollection": false, - "description": "组织对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一组织下不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UD结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织职务所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "identityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织职务身份成员,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithName", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionListWithName", - "description": "给定组织职务名称,列示组织职务.", - "type": "GET", - "path": "jaxrs/unitduty/list/name/{name}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "name", - "type": "String", - "description": "组织名称" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woUnit", - "type": "WoUnit", - "isCollection": false, - "description": "组织对象" - }, - { - "name": "woIdentityList", - "type": "List\u003cWoIdentity\u003e", - "isCollection": true, - "description": "身份对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一组织下不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UD结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织职务所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "identityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织职务身份成员,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithUnit", - "className": "com.x.organization.assemble.control.jaxrs.unitduty.ActionListWithUnit", - "description": "根据给定的组织,获取组织职务.", - "type": "GET", - "path": "jaxrs/unitduty/list/unit/{unitFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "unitFlag", - "type": "String", - "description": "组织标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "woIdentityList", - "type": "List\u003cWoIdentity\u003e", - "isCollection": true, - "description": "身份对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "pinyin", - "type": "String", - "isCollection": false, - "description": "name拼音,自动生成" - }, - { - "name": "pinyinInitial", - "type": "String", - "isCollection": false, - "description": "name拼音首字母,自动生成" - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称,同一组织下不可重名." - }, - { - "name": "unique", - "type": "String", - "isCollection": false, - "description": "唯一标识,不可重复,为空则使用自动填充值" - }, - { - "name": "distinguishedName", - "type": "String", - "isCollection": false, - "description": "识别名,自动填充,@UD结尾." - }, - { - "name": "unit", - "type": "String", - "isCollection": false, - "description": "组织职务所属组织,不可为空." - }, - { - "name": "orderNumber", - "type": "Integer", - "isCollection": false, - "description": "排序号,升序排列,为空在最后" - }, - { - "name": "identityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "组织职务身份成员,多值." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/AbstractFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/AbstractFactory.java deleted file mode 100644 index 1cf955bbe8eb2036bea53d0c5763b9907169c4e3..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/AbstractFactory.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.x.organization.assemble.control; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import javax.persistence.EntityManager; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.cache.ApplicationCache; - -import net.sf.ehcache.Ehcache; -import net.sf.ehcache.Element; - -public abstract class AbstractFactory { - - protected Business business; - - protected Ehcache cache; - - public AbstractFactory(Business business) throws Exception { - try { - if (null == business) { - throw new Exception("business can not be null."); - } - this.business = business; - } catch (Exception e) { - throw new Exception("can not instantiating factory."); - } - } - - public EntityManagerContainer entityManagerContainer() throws Exception { - return this.business.entityManagerContainer(); - } - - @SuppressWarnings("unchecked") - protected T pick(String flag, Class clz, String... attributes) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - Ehcache cache = ApplicationCache.instance().getCache(clz); - T t = null; - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - t = (T) element.getObjectValue(); - } - } else { - t = this.entityManagerContainer().flag(flag, clz); - if (t != null) { - this.entityManagerContainer().get(clz).detach(t); - } - cache.put(new Element(flag, t)); - } - return t; - } - - @SuppressWarnings("unchecked") - protected List pick(List flags, Class clz) throws Exception { - List list = new ArrayList<>(); - if (null == flags || flags.isEmpty()) { - return list; - } - Ehcache cache = ApplicationCache.instance().getCache(clz); - Map map = cache.getAll(flags); - if (map.size() == flags.size()) { - map.values().stream().forEach(o -> { - list.add((T) o.getObjectValue()); - }); - } else { - List os = this.entityManagerContainer().flag(flags, clz); - EntityManager em = this.entityManagerContainer().get(clz); - os.stream().forEach(o -> { - em.detach(o); - list.add(o); - cache.put(new Element(o.getId(), o)); - }); - } - return list; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/ApplicationServletContextListener.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/ApplicationServletContextListener.java deleted file mode 100644 index 1aab0a19cfc28f0a8a801c2febd025502e30980d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/ApplicationServletContextListener.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.x.organization.assemble.control; - -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; -import javax.servlet.annotation.WebListener; - -import com.x.base.core.project.Context; - -@WebListener -public class ApplicationServletContextListener implements ServletContextListener { - - @Override - public void contextInitialized(ServletContextEvent servletContextEvent) { - try { - ThisApplication.context = Context.concrete(servletContextEvent); - ThisApplication.init(); - ThisApplication.context().regist(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - @Override - public void contextDestroyed(ServletContextEvent servletContextEvent) { - try { - ThisApplication.destroy(); - ThisApplication.context.destrory(servletContextEvent); - } catch (Exception e) { - e.printStackTrace(); - } - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/Business.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/Business.java deleted file mode 100644 index c92d683e05f0b2f1d1c4790862d93179514f075b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/Business.java +++ /dev/null @@ -1,530 +0,0 @@ -package com.x.organization.assemble.control; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Objects; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.Tuple; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.collections4.CollectionUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.instrument.Instrument; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.factory.GroupFactory; -import com.x.organization.assemble.control.factory.IdentityFactory; -import com.x.organization.assemble.control.factory.PermissionSettingFactory; -import com.x.organization.assemble.control.factory.PersonAttributeFactory; -import com.x.organization.assemble.control.factory.PersonCardFactory; -import com.x.organization.assemble.control.factory.PersonFactory; -import com.x.organization.assemble.control.factory.RoleFactory; -import com.x.organization.assemble.control.factory.UnitAttributeFactory; -import com.x.organization.assemble.control.factory.UnitDutyFactory; -import com.x.organization.assemble.control.factory.UnitFactory; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; -import com.x.organization.core.entity.Person_; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; -import com.x.organization.core.entity.UnitDuty; - -import net.sf.ehcache.Ehcache; - -public class Business { - - private EntityManagerContainer emc; - - private Ehcache cache; - - public Business(EntityManagerContainer emc) throws Exception { - this.emc = emc; - this.cache = ApplicationCache.instance().getCache(Group.class, Role.class, Person.class, PersonAttribute.class, - Unit.class, UnitDuty.class, UnitAttribute.class, Identity.class); - } - - public EntityManagerContainer entityManagerContainer() { - return this.emc; - } - - private Instrument instrument; - - public Instrument instrument() throws Exception { - if (null == this.instrument) { - this.instrument = new Instrument(); - } - return instrument; - } - - private PersonFactory person; - - public PersonFactory person() throws Exception { - if (null == this.person) { - this.person = new PersonFactory(this); - } - return person; - } - - - private PersonCardFactory personCard; - - public PersonCardFactory personCard() throws Exception { - if (null == this.personCard) { - this.personCard = new PersonCardFactory(this); - } - return personCard; - } - - private PermissionSettingFactory permissionSetting; - - public PermissionSettingFactory permissionSetting() throws Exception { - if (null == this.permissionSetting) { - this.permissionSetting = new PermissionSettingFactory(this); - } - return permissionSetting; - } - - private PersonAttributeFactory personAttribute; - - public PersonAttributeFactory personAttribute() throws Exception { - if (null == this.personAttribute) { - this.personAttribute = new PersonAttributeFactory(this); - } - return personAttribute; - } - - private IdentityFactory identity; - - public IdentityFactory identity() throws Exception { - if (null == this.identity) { - this.identity = new IdentityFactory(this); - } - return identity; - } - - private GroupFactory group; - - public GroupFactory group() throws Exception { - if (null == this.group) { - this.group = new GroupFactory(this); - } - return group; - } - - private RoleFactory role; - - public RoleFactory role() throws Exception { - if (null == this.role) { - this.role = new RoleFactory(this); - } - return role; - } - - private UnitFactory unit; - - public UnitFactory unit() throws Exception { - if (null == this.unit) { - this.unit = new UnitFactory(this); - } - return unit; - } - - private UnitAttributeFactory unitAttribute; - - public UnitAttributeFactory unitAttribute() throws Exception { - if (null == this.unitAttribute) { - this.unitAttribute = new UnitAttributeFactory(this); - } - return unitAttribute; - } - - private UnitDutyFactory unitDuty; - - public UnitDutyFactory unitDuty() throws Exception { - if (null == this.unitDuty) { - this.unitDuty = new UnitDutyFactory(this); - } - return unitDuty; - } - - public boolean hasAnyRole(EffectivePerson effectivePerson, String... roleFlags) throws Exception { - /** 如果不加这个xadmin会报错 */ - if (effectivePerson.isManager()) { - return true; - } - Person person = this.person().pick(effectivePerson.getDistinguishedName()); - if (null != person) { - List groupIds = this.group().listSupNestedWithPerson(person.getId()); - if (null != person) { - List roles = this.role().pick(Arrays.asList(roleFlags)); - for (Role o : roles) { - if (o.getPersonList().contains(person.getId())) { - return true; - } - if (CollectionUtils.containsAny(o.getGroupList(), groupIds)) { - return true; - } - } - - } - } - return false; - } - - public boolean editable(EffectivePerson effectivePerson, Group group) throws Exception { - if (effectivePerson.isManager()) { - return true; - } - if (this.hasAnyRole(effectivePerson, OrganizationDefinition.OrganizationManager, - OrganizationDefinition.GroupManager)) { - return true; - } - return false; - } - - public boolean editable(EffectivePerson effectivePerson, Unit unit) throws Exception { - if (effectivePerson.isManager()) { - return true; - } - if (this.hasAnyRole(effectivePerson, OrganizationDefinition.Manager, OrganizationDefinition.OrganizationManager, - OrganizationDefinition.UnitManager)) { - return true; - } - if (ListTools.isNotEmpty(unit.getControllerList())) { - List os = this.person().pick(unit.getControllerList()); - List list = ListTools.extractProperty(os, JpaObject.DISTINGUISHEDNAME, String.class, true, true); - if (ListTools.contains(list, effectivePerson.getDistinguishedName())) { - return true; - } - } - if (ListTools.isNotEmpty(unit.getInheritedControllerList())) { - List os = this.person().pick(unit.getInheritedControllerList()); - List list = ListTools.extractProperty(os, JpaObject.DISTINGUISHEDNAME, String.class, true, true); - if (ListTools.contains(list, effectivePerson.getDistinguishedName())) { - return true; - } - } - return false; - } - - public boolean editable(EffectivePerson effectivePerson, Person person) throws Exception { - if (effectivePerson.isManager()) { - return true; - } - if (this.hasAnyRole(effectivePerson, OrganizationDefinition.Manager, OrganizationDefinition.OrganizationManager, - OrganizationDefinition.PersonManager)) { - return true; - } - return false; - } - - public boolean editable(EffectivePerson effectivePerson, Role role) throws Exception { - if (effectivePerson.isManager()) { - return true; - } - if (this.hasAnyRole(effectivePerson, OrganizationDefinition.Manager, OrganizationDefinition.OrganizationManager, - OrganizationDefinition.RoleManager)) { - return true; - } - return false; - } - - public List expendGroupRoleToPerson(List values) throws Exception { - List groupIds = new ArrayList<>(); - List roleIds = new ArrayList<>(); - List personIds = new ArrayList<>(); - for (String str : values) { - Group g = this.group().pick(str); - if (null != g) { - groupIds.add(g.getId()); - } else { - Role r = this.role().pick(str); - if (null != r) { - roleIds.add(r.getId()); - } else { - Person p = this.person().pick(str); - if (null != p) { - personIds.add(p.getId()); - } - } - } - } - personIds.addAll(this.expendGroupRoleToPerson(groupIds, roleIds)); - personIds = ListTools.trim(personIds, true, true); - return personIds; - } - - public List expendGroupRoleToPerson(List groupList, List roleList) throws Exception { - List groupIds = new ArrayList<>(); - List expendGroupIds = new ArrayList<>(); - List personIds = new ArrayList<>(); - if (ListTools.isNotEmpty(groupList)) { - for (String s : groupList) { - Group g = this.group().pick(s); - if (null != g) { - groupIds.add(g.getId()); - } - } - } - if (ListTools.isNotEmpty(roleList)) { - for (String s : roleList) { - Role r = this.role().pick(s); - if (null != r) { - groupIds.addAll(r.getGroupList()); - personIds.addAll(r.getPersonList()); - } - } - } - if (ListTools.isNotEmpty(groupIds)) { - groupIds = ListTools.trim(groupIds, true, true); - for (String s : groupIds) { - expendGroupIds.add(s); - expendGroupIds.addAll(this.group().listSubNested(s)); - } - expendGroupIds = ListTools.trim(expendGroupIds, true, true); - EntityManager em = this.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = root.get(Group_.id).in(expendGroupIds); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (Group o : os) { - personIds.addAll(o.getPersonList()); - } - personIds = ListTools.trim(personIds, true, true); - } - return personIds; - } - - public List expendGroupRoleToGroup(List values) throws Exception { - List groupIds = new ArrayList<>(); - List roleIds = new ArrayList<>(); - List expendGroupIds = new ArrayList<>(); - for (String str : values) { - Group g = this.group().pick(str); - if (null != g) { - groupIds.add(g.getId()); - } else { - Role r = this.role().pick(str); - if (null != r) { - roleIds.add(r.getId()); - } - } - } - expendGroupIds.addAll(this.expendGroupRoleToGroup(groupIds, roleIds)); - return expendGroupIds; - } - - public List expendGroupRoleToGroup(List groupList, List roleList) throws Exception { - List groupIds = new ArrayList<>(); - List expendGroupIds = new ArrayList<>(); - if (ListTools.isNotEmpty(groupList)) { - for (String s : groupList) { - Group g = this.group().pick(s); - if (null != g) { - groupIds.add(g.getId()); - } - } - } - if (ListTools.isNotEmpty(roleList)) { - for (String s : roleList) { - Role r = this.role().pick(s); - if (null != r) { - groupIds.addAll(r.getGroupList()); - } - } - } - if (ListTools.isNotEmpty(groupIds)) { - groupIds = ListTools.trim(groupIds, true, true); - for (String s : groupIds) { - expendGroupIds.add(s); - expendGroupIds.addAll(this.group().listSubNested(s)); - } - expendGroupIds = ListTools.trim(expendGroupIds, true, true); - } - return expendGroupIds; - } - - public List expendGroupRoleToRole(List values) throws Exception { - List groupIds = new ArrayList<>(); - List roleIds = new ArrayList<>(); - List expendRoleIds = new ArrayList<>(); - for (String str : values) { - Group g = this.group().pick(str); - if (null != g) { - groupIds.add(g.getId()); - } else { - Role r = this.role().pick(str); - if (null != r) { - roleIds.add(r.getId()); - } - } - } - expendRoleIds.addAll(this.expendGroupRoleToRole(groupIds, roleIds)); - return expendRoleIds; - } - - public List expendGroupRoleToRole(List groupList, List roleList) throws Exception { - List groupIds = new ArrayList<>(); - List expendGroupIds = new ArrayList<>(); - List roleIds = new ArrayList<>(); - if (ListTools.isNotEmpty(groupList)) { - for (String s : groupList) { - Group g = this.group().pick(s); - if (null != g) { - groupIds.add(g.getId()); - } - } - } - if (ListTools.isNotEmpty(roleList)) { - for (String s : roleList) { - Role r = this.role().pick(s); - if (null != r) { - roleIds.add(r.getId()); - groupIds.addAll(r.getGroupList()); - } - } - } - if (ListTools.isNotEmpty(groupIds)) { - groupIds = ListTools.trim(groupIds, true, true); - for (String s : groupIds) { - expendGroupIds.add(s); - expendGroupIds.addAll(this.group().listSubNested(s)); - } - expendGroupIds = ListTools.trim(expendGroupIds, true, true); - EntityManager em = this.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = root.get(Role_.groupList).in(expendGroupIds); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (Role o : os) { - roleIds.add(o.getId()); - } - } - roleIds = ListTools.trim(roleIds, true, true); - return roleIds; - } - - public List expendUnitToUnit(List unitList) throws Exception { - List unitIds = new ArrayList<>(); - List expendUnitIds = new ArrayList<>(); - if (ListTools.isNotEmpty(unitList)) { - for (String s : unitList) { - Unit u = this.unit().pick(s); - if (null != u) { - unitIds.add(u.getId()); - } - } - } - if (ListTools.isNotEmpty(unitIds)) { - unitIds = ListTools.trim(unitIds, true, true); - for (String s : unitIds) { - expendUnitIds.add(s); - expendUnitIds.addAll(this.unit().listSubNested(s)); - } - } - expendUnitIds = ListTools.trim(expendUnitIds, true, true); - return expendUnitIds; - } - - public List expendUnitToIdentity(List unitList) throws Exception { - List unitIds = new ArrayList<>(); - List expendUnitIds = new ArrayList<>(); - if (ListTools.isNotEmpty(unitList)) { - for (String s : unitList) { - Unit u = this.unit().pick(s); - if (null != u) { - unitIds.add(u.getId()); - } - } - } - if (ListTools.isNotEmpty(unitIds)) { - unitIds = ListTools.trim(unitIds, true, true); - for (String s : unitIds) { - expendUnitIds.add(s); - expendUnitIds.addAll(this.unit().listSubNested(s)); - } - } - expendUnitIds = ListTools.trim(expendUnitIds, true, true); - EntityManager em = this.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Identity.class); - Predicate p = root.get(Identity_.unit).in(expendUnitIds); - List os = em.createQuery(cq.select(root.get(Identity_.id)).where(p)).getResultList(); - os = ListTools.trim(os, true, true); - return os; - } - - public Ehcache cache() { - return cache; - } - - public List listPersonWithUnit(String unitFlag) throws Exception { - Unit unit = this.unit().pick(unitFlag); - EntityManager em = this.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), unit.getId()); - List os = em.createQuery(cq.select(root.get(Identity_.person)).where(p)).getResultList(); - return this.person().pick(os); - } - - public List listTopUnitWithPerson(String personFlag) throws Exception { - List os = new ArrayList<>(); - Person person = this.person().pick(personFlag); - List identities = emc.listEqual(Identity.class, Identity.person_FIELDNAME, person.getId()); - List unitIds = new ArrayList<>(); - for (String id : ListTools.extractField(identities, Identity.unit_FIELDNAME, String.class, true, true)) { - unitIds.add(id); - unitIds.addAll(unit().listSupNested(id)); - } - unitIds = ListTools.trim(unitIds, true, true); - for (Unit unit : this.unit().pick(unitIds)) { - if (Objects.deepEquals(Unit.TOP_LEVEL, unit.getLevel())) { - os.add(unit); - } - } - return os; - } - - public boolean sameTopUnit(EffectivePerson effectivePerson, String person) throws Exception { - List o = this.listTopUnitWithPerson(effectivePerson.getDistinguishedName()); - List t = this.listTopUnitWithPerson(person); - return ListTools.containsAny(o, t); - } - - public Predicate personPredicateWithTopUnit(EffectivePerson effectivePerson) throws Exception { - EntityManager em = emc.get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - if (effectivePerson.isManager() || this.hasAnyRole(effectivePerson, OrganizationDefinition.Manager, - OrganizationDefinition.OrganizationManager)) { - return cb.conjunction(); - } else { - CriteriaQuery cq = cb.createQuery(Tuple.class); - Root root = cq.from(Person.class); - List units = listTopUnitWithPerson(effectivePerson.getDistinguishedName()); - List ids = ListTools.extractField(units, Unit.id_FIELDNAME, String.class, true, true); - return cb.or(root.get(Person_.topUnitList).in(ids), cb.isEmpty(root.get(Person_.topUnitList))); - } - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/MappingItem.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/MappingItem.java deleted file mode 100644 index 434e33ee3cef8d4c25cac2fbaa79d127c8d1416d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/MappingItem.java +++ /dev/null @@ -1,366 +0,0 @@ -package com.x.organization.assemble.control; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; -import java.util.List; - -import org.apache.commons.beanutils.PropertyUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.poi.ss.usermodel.Cell; -import org.apache.poi.ss.usermodel.CellType; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.ss.usermodel.Sheet; - -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.type.GenderType; -import com.x.base.core.project.gson.GsonPropertyObject; - -public class MappingItem extends GsonPropertyObject { - - public static void setValue(Row row, JpaObject jpaObject, MappingItem item) throws Exception { - Cell cell = row.getCell(item.getColumn()); - if (null != cell) { - switch (item.getType()) { - case string: - cell.setCellType(CellType.STRING); - String stringValue = cell.getStringCellValue(); - if (null != stringValue) { - PropertyUtils.setProperty(jpaObject, item.getField(), stringValue); - } - break; - case integer: - cell.setCellType(CellType.NUMERIC); - Double doubeValue = cell.getNumericCellValue(); - if (null != doubeValue) { - PropertyUtils.setProperty(jpaObject, item.getField(), doubeValue.intValue()); - } - break; - case date: - Date dateValue = cell.getDateCellValue(); - if (null != dateValue) { - PropertyUtils.setProperty(jpaObject, item.getField(), dateValue); - } - break; - case genderType: - String genderTypeStringValue = cell.getStringCellValue(); - if (StringUtils.isNotEmpty(genderTypeStringValue)) { - if (StringUtils.equalsIgnoreCase(GenderType.f.toString(), genderTypeStringValue)) { - PropertyUtils.setProperty(jpaObject, item.getField(), GenderType.f); - } else if (StringUtils.equalsIgnoreCase(GenderType.m.toString(), genderTypeStringValue)) { - PropertyUtils.setProperty(jpaObject, item.getField(), GenderType.m); - } else { - PropertyUtils.setProperty(jpaObject, item.getField(), GenderType.d); - } - } - break; - case stringList: - String stringListValue = cell.getStringCellValue(); - if (null != stringListValue) { - List list = new ArrayList<>(Arrays.asList(StringUtils.split(stringListValue, ","))); - PropertyUtils.setProperty(jpaObject, item.getField(), list); - } - break; - default: - break; - } - } - } - - public static List personMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("姓名", "name", MappingItemValueType.string)); - list.add(new MappingItem("显示名", "display", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("工号", "employee", MappingItemValueType.string)); - list.add(new MappingItem("性别", "genderType", MappingItemValueType.genderType)); - list.add(new MappingItem("密码", "password", MappingItemValueType.string)); - list.add(new MappingItem("密码到期时间", "passwordExpiredTime", MappingItemValueType.date)); - list.add(new MappingItem("排序号", "orderNumber", MappingItemValueType.integer)); - // list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("邮件", "mail", MappingItemValueType.string)); - list.add(new MappingItem("手机", "mobile", MappingItemValueType.string)); - list.add(new MappingItem("固定电话", "officePhone", MappingItemValueType.string)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - list.add(new MappingItem("入职时间", "boardDate", MappingItemValueType.date)); - list.add(new MappingItem("出生日期", "birthday", MappingItemValueType.date)); - list.add(new MappingItem("头像", "icon", MappingItemValueType.string)); - list.add(new MappingItem("签名", "signature", MappingItemValueType.string)); - list.add(new MappingItem("微信", "weixin", MappingItemValueType.string)); - list.add(new MappingItem("QQ", "qq", MappingItemValueType.string)); - list.add(new MappingItem("管理者", "controllerList", MappingItemValueType.stringList)); - return list; - } - - public static List personMappings(Sheet sheet) throws Exception { - List list = personMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List groupMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("显示名", "display", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("排序号", "orderNumber", MappingItemValueType.integer)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - list.add(new MappingItem("人员成员", "personList", MappingItemValueType.stringList)); - list.add(new MappingItem("群组成员", "groupList", MappingItemValueType.stringList)); - return list; - } - - public static List groupMappings(Sheet sheet) throws Exception { - List list = groupMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List roleMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("显示名", "display", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("排序号", "orderNumber", MappingItemValueType.integer)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - list.add(new MappingItem("人员成员", "personList", MappingItemValueType.stringList)); - list.add(new MappingItem("群组成员", "groupList", MappingItemValueType.stringList)); - return list; - } - - public static List roleMappings(Sheet sheet) throws Exception { - List list = roleMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List companyMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("显示名", "display", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("简称", "shortName", MappingItemValueType.string)); - list.add(new MappingItem("上级公司", "superior", MappingItemValueType.string)); - list.add(new MappingItem("级别", "level", MappingItemValueType.integer)); - list.add(new MappingItem("排序号", "orderNumber", MappingItemValueType.integer)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - list.add(new MappingItem("管理者", "controllerList", MappingItemValueType.stringList)); - return list; - } - - public static List companyMappings(Sheet sheet) throws Exception { - List list = companyMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List departmentMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("显示名", "display", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("简称", "shortName", MappingItemValueType.string)); - list.add(new MappingItem("上级部门", "superior", MappingItemValueType.string)); - list.add(new MappingItem("所属公司", "company", MappingItemValueType.string)); - list.add(new MappingItem("级别", "level", MappingItemValueType.integer)); - list.add(new MappingItem("排序号", "orderNumber", MappingItemValueType.integer)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - return list; - } - - public static List departmentMappings(Sheet sheet) throws Exception { - List list = departmentMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List identityMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("显示名", "display", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("所属人员", "person", MappingItemValueType.string)); - list.add(new MappingItem("所属部门", "department", MappingItemValueType.string)); - list.add(new MappingItem("排序号", "orderNumber", MappingItemValueType.integer)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("下属身份", "juniorList", MappingItemValueType.stringList)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - return list; - } - - public static List identityMappings(Sheet sheet) throws Exception { - List list = identityMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List personAttributeMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("人员", "person", MappingItemValueType.string)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("属性值", "attributeList", MappingItemValueType.stringList)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - return list; - } - - public static List personAttributeMappings(Sheet sheet) throws Exception { - List list = personAttributeMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List companyAttributeMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("公司", "company", MappingItemValueType.string)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("属性值", "attributeList", MappingItemValueType.stringList)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - return list; - } - - public static List companyAttributeMappings(Sheet sheet) throws Exception { - List list = companyAttributeMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List companyDutyMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("公司", "company", MappingItemValueType.string)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("成员", "identityList", MappingItemValueType.stringList)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - return list; - } - - public static List companyDutyMappings(Sheet sheet) throws Exception { - List list = companyDutyMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List departmentAttributeMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("部门", "department", MappingItemValueType.string)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("属性值", "attributeList", MappingItemValueType.stringList)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - return list; - } - - public static List departmentAttributeMappings(Sheet sheet) throws Exception { - List list = departmentAttributeMappings(); - mappingColumns(list, sheet); - return list; - } - - public static List departmentDutyMappings() { - List list = new ArrayList<>(); - list.add(new MappingItem("名称", "name", MappingItemValueType.string)); - list.add(new MappingItem("唯一编码", "unique", MappingItemValueType.string)); - list.add(new MappingItem("部门", "department", MappingItemValueType.string)); - list.add(new MappingItem("标识", "id", MappingItemValueType.string)); - list.add(new MappingItem("成员", "identityList", MappingItemValueType.stringList)); - list.add(new MappingItem("创建时间", "createTime", MappingItemValueType.date)); - return list; - } - - public static List departmentDutyMappings(Sheet sheet) throws Exception { - List list = departmentDutyMappings(); - mappingColumns(list, sheet); - return list; - } - - private static void mappingColumns(List list, Sheet sheet) { - Row row = sheet.getRow(sheet.getFirstRowNum()); - if (null != row) { - Cell cell = null; - for (int i = row.getFirstCellNum(); i < row.getLastCellNum(); i++) { - cell = row.getCell(i); - if (null != cell) { - String str = cell.getStringCellValue(); - for (MappingItem o : list) { - if (StringUtils.equalsIgnoreCase(o.getName(), str)) { - o.setColumn(i); - } - } - } - } - } - } - - public static Integer getResultColumnNum(Sheet sheet) { - Row row = sheet.getRow(sheet.getFirstRowNum()); - if (null != row) { - Cell cell = null; - for (int i = row.getFirstCellNum() + 1; i < row.getLastCellNum(); i++) { - cell = row.getCell(i); - if (null != cell) { - String str = cell.getStringCellValue(); - if (StringUtils.isEmpty(str) || StringUtils.equals(str, "结果") - || StringUtils.equals(str, "result")) { - return i; - } - } - } - return (int) row.getLastCellNum(); - } - return null; - } - - private String name; - private String field; - private MappingItemValueType type; - private Integer column; - - public MappingItem(String name, String field, MappingItemValueType type) { - this.name = name; - this.field = field; - this.type = type; - this.column = -1; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getField() { - return field; - } - - public void setField(String field) { - this.field = field; - } - - public MappingItemValueType getType() { - return type; - } - - public void setType(MappingItemValueType type) { - this.type = type; - } - - public Integer getColumn() { - return column; - } - - public void setColumn(Integer column) { - this.column = column; - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/MappingItemValueType.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/MappingItemValueType.java deleted file mode 100644 index 4e40b133aac0fc77c1181b46601903018187f08a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/MappingItemValueType.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.x.organization.assemble.control; - -public enum MappingItemValueType { - string, stringList, date, integer, genderType -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/ThisApplication.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/ThisApplication.java deleted file mode 100644 index bef0a4429511b77e37cba7ed18376211538f20d8..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/ThisApplication.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.x.organization.assemble.control; - -import com.x.base.core.project.Context; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.logger.LoggerFactory; - -public class ThisApplication { - - protected static Context context; - - public static Context context() { - return context; - } - - public static void init() { - try { - LoggerFactory.setLevel(Config.logLevel().x_organization_assemble_control()); - } catch (Exception e) { - e.printStackTrace(); - } - } - - public static void destroy() { - try { - } catch (Exception e) { - e.printStackTrace(); - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/GroupFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/GroupFactory.java deleted file mode 100644 index 6143aa6cc332569a71af869e9c34fc94538b8a1c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/GroupFactory.java +++ /dev/null @@ -1,240 +0,0 @@ -package com.x.organization.assemble.control.factory; - -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.regex.Matcher; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.collections4.set.ListOrderedSet; -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.exception.ExceptionWhen; -import com.x.organization.assemble.control.AbstractFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; -import com.x.organization.core.entity.PersistenceProperties; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -public class GroupFactory extends AbstractFactory { - - public GroupFactory(Business business) throws Exception { - super(business); - cache = ApplicationCache.instance().getCache(Group.class); - } - - public Group pick(String flag) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - Group o = null; - - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - o = (Group) element.getObjectValue(); - } - } else { - o = this.pickObject(flag); - cache.put(new Element(flag, o)); - } - return o; - } - - public List pick(List flags) throws Exception { - List list = new ArrayList<>(); - for (String str : flags) { - Element element = cache.get(str); - if (null != element) { - if (null != element.getObjectValue()) { - list.add((Group) element.getObjectValue()); - } - } else { - Group o = this.pickObject(str); - cache.put(new Element(str, o)); - if (null != o) { - list.add(o); - } - } - } - return list; - } - - private Group pickObject(String flag) throws Exception { - Group o = this.entityManagerContainer().flag(flag, Group.class); - if (o != null) { - this.entityManagerContainer().get(Group.class).detach(o); - } else { - String name = flag; - Matcher matcher = PersistenceProperties.Group.distinguishedName_pattern.matcher(flag); - if (matcher.find()) { - name = matcher.group(1); - String unique = matcher.group(2); - o = this.entityManagerContainer().flag(unique, Group.class); - if (null != o) { - this.entityManagerContainer().get(Group.class).detach(o); - } - } - if (null == o) { - EntityManager em = this.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = cb.equal(root.get(Group_.name), name); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - if (os.size() == 1) { - o = os.get(0); - em.detach(o); - } - } - } - return o; - } - - public List sort(List list) { - list = list.stream().sorted( - Comparator.comparing(Group::getOrderNumber, Comparator.nullsLast(Integer::compareTo)).thenComparing( - Comparator.comparing(Group::getName, Comparator.nullsFirst(String::compareTo)).reversed())) - .collect(Collectors.toList()); - return list; - } - - public List listSupDirectObject(Group group) throws Exception { - List ids = this.listSupDirect(group.getId()); - return this.entityManagerContainer().list(Group.class, ids); - } - - // @MethodDescribe("获取指定指定群组所在的群组.") - public List listSupDirect(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Group.class); - Predicate p = cb.isMember(id, root.get(Group_.groupList)); - cq.select(root.get(Group_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - // @MethodDescribe("获取指定指定群组所在的群组,并递归其上级群组.") - public List listSupNested(String id) throws Exception { - ListOrderedSet set = new ListOrderedSet<>(); - this.supNested(id, set); - return set.asList(); - } - - public List listSupNestedObject(Group group) throws Exception { - List ids = this.listSupNested(group.getId()); - return this.entityManagerContainer().list(Group.class, ids); - } - - // @MethodDescribe("上级群组循环递归.") - private void supNested(String id, ListOrderedSet set) throws Exception { - List list = new ArrayList(); - for (String str : this.listSupDirect(id)) { - if (!set.contains(str)) { - list.add(str); - } - } - if (!list.isEmpty()) { - set.addAll(list); - for (String str : list) { - this.supNested(str, set); - } - } - } - - public List listSupDirectWithPersonObject(Person person) throws Exception { - List ids = this.listSupDirectWithPerson(person.getId()); - return this.entityManagerContainer().list(Group.class, ids); - } - - // @MethodDescribe("获取指定个人直接所在的群组.") - public List listSupDirectWithPerson(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Group.class); - Predicate p = cb.isMember(id, root.get(Group_.personList)); - cq.select(root.get(Group_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listSupNestedWithPersonObject(Person person) throws Exception { - List ids = this.listSupNestedWithPerson(person.getId()); - return this.entityManagerContainer().list(Group.class, ids); - } - - // @MethodDescribe("获取指定个人所在的群组,并递归其上级群组.") - public List listSupNestedWithPerson(String id) throws Exception { - ListOrderedSet set = new ListOrderedSet<>(); - List list = new ArrayList<>(); - for (String o : this.listSupDirectWithPerson(id)) { - if (!set.contains(o)) { - list.add(o); - } - } - if (!list.isEmpty()) { - set.addAll(list); - for (String str : list) { - this.supNested(str, set); - } - } - return set.asList(); - } - - public List listSubDirectObject(Group group) throws Exception { - List ids = this.listSubDirect(group.getId()); - return this.entityManagerContainer().list(Group.class, ids); - } - - public List listSubNestedObject(Group group) throws Exception { - List ids = this.listSubNested(group.getId()); - return this.entityManagerContainer().list(Group.class, ids); - } - - // @MethodDescribe("查找群组的直接群组成员.") - public List listSubDirect(String id) throws Exception { - Group group = this.entityManagerContainer().find(id, Group.class, ExceptionWhen.none); - EntityManager em = this.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Group.class); - Predicate p = root.get(Group_.id).in(group.getGroupList()); - cq.select(root.get(Group_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - // @MethodDescribe("查找群组的全部群组成员,包括嵌套的群组成员.") - public List listSubNested(String id) throws Exception { - ListOrderedSet set = new ListOrderedSet(); - this.subNested(id, set); - return set.asList(); - } - - // @MethodDescribe("递归循环调用群组查找。.") - private void subNested(String id, ListOrderedSet set) throws Exception { - List list = new ArrayList(); - for (String str : this.listSubDirect(id)) { - if (!set.contains(str)) { - list.add(str); - } - } - if (!list.isEmpty()) { - set.addAll(list); - for (String str : list) { - this.subNested(str, set); - } - } - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/IdentityFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/IdentityFactory.java deleted file mode 100644 index fe8f04802bb0f35fadb6fbcca3048e349b7159b6..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/IdentityFactory.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.x.organization.assemble.control.factory; - -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.regex.Matcher; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.organization.assemble.control.AbstractFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.PersistenceProperties; - -import net.sf.ehcache.Element; - -public class IdentityFactory extends AbstractFactory { - - public IdentityFactory(Business business) throws Exception { - super(business); - cache = ApplicationCache.instance().getCache(Identity.class); - } - - public Identity pick(String flag) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - Identity o = null; - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - o = (Identity) element.getObjectValue(); - } - } else { - o = this.pickObject(flag); - cache.put(new Element(flag, o)); - } - return o; - } - - private Identity pickObject(String flag) throws Exception { - Identity o = this.entityManagerContainer().flag(flag, Identity.class); - if (o != null) { - this.entityManagerContainer().get(Identity.class).detach(o); - } else { - String name = flag; - Matcher matcher = PersistenceProperties.Identity.distinguishedName_pattern.matcher(flag); - if (matcher.find()) { - name = matcher.group(1); - String unique = matcher.group(2); - o = this.entityManagerContainer().flag(unique, Identity.class); - if (null != o) { - this.entityManagerContainer().get(Identity.class).detach(o); - } - } - if (null == o) { - EntityManager em = this.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.name), name); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - if (os.size() == 1) { - o = os.get(0); - em.detach(o); - } - } - } - return o; - } - - public List pick(List flags) throws Exception { - List list = new ArrayList<>(); - for (String str : flags) { - Element element = cache.get(str); - if (null != element) { - if (null != element.getObjectValue()) { - list.add((Identity) element.getObjectValue()); - } - } else { - Identity o = this.pickObject(str); - cache.put(new Element(str, o)); - if (null != o) { - list.add(o); - } - } - } - return list; - } - - public List sort(List list) { - list = list.stream().sorted( - Comparator.comparing(Identity::getOrderNumber, Comparator.nullsLast(Integer::compareTo)).thenComparing( - Comparator.comparing(Identity::getName, Comparator.nullsFirst(String::compareTo)).reversed())) - .collect(Collectors.toList()); - return list; - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/PersonAttributeFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/PersonAttributeFactory.java deleted file mode 100644 index 535cd78601fc0343093f412101312a5e4eaadb81..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/PersonAttributeFactory.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.x.organization.assemble.control.factory; - -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.regex.Matcher; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.organization.assemble.control.AbstractFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.PersistenceProperties; -import com.x.organization.core.entity.PersonAttribute; -import com.x.organization.core.entity.PersonAttribute_; - -import net.sf.ehcache.Element; - -public class PersonAttributeFactory extends AbstractFactory { - - public PersonAttributeFactory(Business business) throws Exception { - super(business); - cache = ApplicationCache.instance().getCache(PersonAttribute.class); - } - - public PersonAttribute pick(String flag) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - PersonAttribute o = null; - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - o = (PersonAttribute) element.getObjectValue(); - } - } else { - o = this.pickObject(flag); - cache.put(new Element(flag, o)); - } - return o; - } - - private PersonAttribute pickObject(String flag) throws Exception { - PersonAttribute o = this.entityManagerContainer().flag(flag, PersonAttribute.class); - if (o != null) { - this.entityManagerContainer().get(PersonAttribute.class).detach(o); - } else { - String name = flag; - Matcher matcher = PersistenceProperties.PersonAttribute.distinguishedName_pattern.matcher(flag); - if (matcher.find()) { - name = matcher.group(1); - String unique = matcher.group(2); - o = this.entityManagerContainer().flag(unique, PersonAttribute.class); - if (null != o) { - this.entityManagerContainer().get(PersonAttribute.class).detach(o); - } - } - if (null == o) { - EntityManager em = this.entityManagerContainer().get(PersonAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(PersonAttribute.class); - Root root = cq.from(PersonAttribute.class); - Predicate p = cb.equal(root.get(PersonAttribute_.name), name); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - if (os.size() == 1) { - o = os.get(0); - em.detach(o); - } - } - } - return o; - } - - public List pick(List flags) throws Exception { - List list = new ArrayList<>(); - for (String str : flags) { - Element element = cache.get(str); - if (null != element) { - if (null != element.getObjectValue()) { - list.add((PersonAttribute) element.getObjectValue()); - } - } else { - PersonAttribute o = this.pickObject(str); - cache.put(new Element(str, o)); - if (null != o) { - list.add(o); - } - } - } - return list; - } - - public List sort(List list) { - list = list.stream() - .sorted(Comparator.comparing(PersonAttribute::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing( - Comparator.comparing(PersonAttribute::getName, Comparator.nullsFirst(String::compareTo)) - .reversed())) - .collect(Collectors.toList()); - return list; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/PersonFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/PersonFactory.java deleted file mode 100644 index 56d8db767da7f103fa7c6c0e15dfdf0f99caf679..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/PersonFactory.java +++ /dev/null @@ -1,230 +0,0 @@ -package com.x.organization.assemble.control.factory; - -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Comparator; -import java.util.List; -import java.util.regex.Matcher; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.entity.tools.JpaObjectTools; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.tools.Crypto; -import com.x.organization.assemble.control.AbstractFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.PersistenceProperties; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Person_; - -import net.sf.ehcache.Element; - -public class PersonFactory extends AbstractFactory { - - public PersonFactory(Business business) throws Exception { - super(business); - cache = ApplicationCache.instance().getCache(Person.class); - } - - public Person pick(String flag) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - Person o = null; - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - o = (Person) element.getObjectValue(); - } - } else { - o = this.pickObject(flag); - cache.put(new Element(flag, o)); - } - return o; - } - - private Person pickObject(String flag) throws Exception { - Person o = this.entityManagerContainer().flag(flag, Person.class); - if (o != null) { - this.entityManagerContainer().get(Person.class).detach(o); - } else { - String name = flag; - Matcher matcher = PersistenceProperties.Person.distinguishedName_pattern.matcher(flag); - if (matcher.find()) { - name = matcher.group(1); - String unique = matcher.group(2); - o = this.entityManagerContainer().flag(unique, Person.class); - if (null != o) { - this.entityManagerContainer().get(Person.class).detach(o); - } - } - if (null == o) { - EntityManager em = this.entityManagerContainer().get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - Predicate p = cb.equal(root.get(Person_.name), name); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - if (os.size() == 1) { - o = os.get(0); - em.detach(o); - } - } - } - return o; - } - - public List pick(List flags) throws Exception { - List list = new ArrayList<>(); - for (String str : flags) { - Element element = cache.get(str); - if (null != element) { - if (null != element.getObjectValue()) { - list.add((Person) element.getObjectValue()); - } - } else { - Person o = this.pickObject(str); - cache.put(new Element(str, o)); - if (null != o) { - list.add(o); - } - } - } - return list; - } - - public List sort(List list) { - list = list.stream().sorted( - Comparator.comparing(Person::getOrderNumber, Comparator.nullsLast(Integer::compareTo)).thenComparing( - Comparator.comparing(Person::getName, Comparator.nullsFirst(String::compareTo)).reversed())) - .collect(Collectors.toList()); - return list; - } - - public String getWithName(String name, String excludeId) throws Exception { - if (StringUtils.isEmpty(name) - || (!JpaObjectTools.withinDefinedLength(name, Person.class, Person.name_FIELDNAME))) { - return null; - } - List list = this.entityManagerContainer().idsEqualAndNotEqual(Person.class, Person.name_FIELDNAME, name, - Person.id_FIELDNAME, excludeId); - return this.returnNotDuplicateId(list); - } - - public String getWithMobile(String mobile, String excludeId) throws Exception { - if (StringUtils.isEmpty(mobile) - || (!JpaObjectTools.withinDefinedLength(mobile, Person.class, Person.mobile_FIELDNAME))) { - return null; - } - List list = this.entityManagerContainer().idsEqualAndNotEqual(Person.class, Person.mobile_FIELDNAME, - mobile, Person.id_FIELDNAME, excludeId); - return this.returnNotDuplicateId(list); - } - - public String getWithEmployee(String employee, String excludeId) throws Exception { - if (StringUtils.isEmpty(employee) - || (!JpaObjectTools.withinDefinedLength(employee, Person.class, Person.employee_FIELDNAME))) { - return null; - } - List list = this.entityManagerContainer().idsEqualAndNotEqual(Person.class, Person.employee_FIELDNAME, - employee, Person.id_FIELDNAME, excludeId); - return this.returnNotDuplicateId(list); - } - - public String getWithUnique(String unique, String excludeId) throws Exception { - if (StringUtils.isEmpty(unique) - || (!JpaObjectTools.withinDefinedLength(unique, Person.class, Person.unique_FIELDNAME))) { - return null; - } - List list = this.entityManagerContainer().idsEqualAndNotEqual(Person.class, Person.unique_FIELDNAME, - unique, Person.id_FIELDNAME, excludeId); - return this.returnNotDuplicateId(list); - } - - public String getWithQq(String qq, String excludeId) throws Exception { - if (StringUtils.isEmpty(qq) || (!JpaObjectTools.withinDefinedLength(qq, Person.class, Person.qq_FIELDNAME))) { - return null; - } - List list = this.entityManagerContainer().idsEqualAndNotEqual(Person.class, Person.qq_FIELDNAME, qq, - Person.id_FIELDNAME, excludeId); - return this.returnNotDuplicateId(list); - } - - public String getWithMail(String mail, String excludeId) throws Exception { - if (StringUtils.isEmpty(mail) - || (!JpaObjectTools.withinDefinedLength(mail, Person.class, Person.mail_FIELDNAME))) { - return null; - } - List list = this.entityManagerContainer().idsEqualAndNotEqual(Person.class, Person.mail_FIELDNAME, mail, - Person.id_FIELDNAME, excludeId); - return this.returnNotDuplicateId(list); - } - - public String getWithWeixin(String weixin, String excludeId) throws Exception { - if (StringUtils.isEmpty(weixin) - || (!JpaObjectTools.withinDefinedLength(weixin, Person.class, Person.weixin_FIELDNAME))) { - return null; - } - List list = this.entityManagerContainer().idsEqualAndNotEqual(Person.class, Person.mail_FIELDNAME, - weixin, Person.id_FIELDNAME, excludeId); - return this.returnNotDuplicateId(list); - } - - private String returnNotDuplicateId(List list) throws Exception { - if (list.isEmpty()) { - return null; - } else if (list.size() == 1) { - return list.get(0); - } - throw new Exception("find duplicate value{" + StringUtils.join(list, ",") + "}"); - } - - public void setPassword(Person person, String password) throws Exception { - Calendar cal = Calendar.getInstance(); - person.setChangePasswordTime(cal.getTime()); - person.setPassword(Crypto.encrypt(password, Config.token().getKey())); - Integer passwordPeriod = Config.person().getPasswordPeriod(); - if (passwordPeriod == null || passwordPeriod <= 0) { - person.setPasswordExpiredTime(null); - } else { - cal.add(Calendar.DATE, passwordPeriod); - person.setPasswordExpiredTime(cal.getTime()); - } - } - -// public Person getWi1thDingdingIdObject(String dingdingId) throws Exception { -// EntityManager em = this.entityManagerContainer().get(Person.class); -// CriteriaBuilder cb = em.getCriteriaBuilder(); -// CriteriaQuery cq = cb.createQuery(Person.class); -// Root root = cq.from(Person.class); -// Predicate p = cb.equal(root.get(Person_.dingdingId), dingdingId); -// List os = em.createQuery(cq.select(root).where(p)).setMaxResults(1).getResultList(); -// if (os.isEmpty()) { -// return null; -// } else { -// return os.get(0); -// } -// } -// -// public Person getWithQiyeweixinIdObject(String dingdingId) throws Exception { -// EntityManager em = this.entityManagerContainer().get(Person.class); -// CriteriaBuilder cb = em.getCriteriaBuilder(); -// CriteriaQuery cq = cb.createQuery(Person.class); -// Root root = cq.from(Person.class); -// Predicate p = cb.equal(root.get(Person_.qiyeweixinId), dingdingId); -// List os = em.createQuery(cq.select(root).where(p)).setMaxResults(1).getResultList(); -// if (os.isEmpty()) { -// return null; -// } else { -// return os.get(0); -// } -// } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/RoleFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/RoleFactory.java deleted file mode 100644 index 40c61a34a9af993ac5d685231927f619890637b9..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/RoleFactory.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.x.organization.assemble.control.factory; - -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.regex.Matcher; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.organization.assemble.control.AbstractFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.PersistenceProperties; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; - -import net.sf.ehcache.Element; - -public class RoleFactory extends AbstractFactory { - - public RoleFactory(Business business) throws Exception { - super(business); - cache = ApplicationCache.instance().getCache(Role.class); - } - - public Role pick(String flag) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - Role o = null; - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - o = (Role) element.getObjectValue(); - } - } else { - o = this.pickObject(flag); - cache.put(new Element(flag, o)); - } - return o; - } - - private Role pickObject(String flag) throws Exception { - Role o = this.entityManagerContainer().flag(flag, Role.class); - if (o != null) { - this.entityManagerContainer().get(Role.class).detach(o); - } else { - String name = flag; - Matcher matcher = PersistenceProperties.Role.distinguishedName_pattern.matcher(flag); - if (matcher.find()) { - name = matcher.group(1); - String unique = matcher.group(2); - o = this.entityManagerContainer().flag(unique, Role.class); - if (null != o) { - this.entityManagerContainer().get(Role.class).detach(o); - } - } - if (null == o) { - EntityManager em = this.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = cb.equal(root.get(Role_.name), name); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - if (os.size() == 1) { - o = os.get(0); - em.detach(o); - } - } - } - return o; - } - - public List pick(List flags) throws Exception { - List list = new ArrayList<>(); - for (String str : flags) { - Element element = cache.get(str); - if (null != element) { - if (null != element.getObjectValue()) { - list.add((Role) element.getObjectValue()); - } - } else { - Role o = this.pickObject(str); - cache.put(new Element(str, o)); - if (null != o) { - list.add(o); - } - } - } - return list; - } - - public List sort(List list) { - list = list - .stream().sorted( - Comparator.comparing(Role::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator - .comparing(Role::getName, Comparator.nullsFirst(String::compareTo)).reversed())) - .collect(Collectors.toList()); - return list; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitAttributeFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitAttributeFactory.java deleted file mode 100644 index 24837df87014c99d9312934040971a40632e0bfc..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitAttributeFactory.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.x.organization.assemble.control.factory; - -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.regex.Matcher; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.organization.assemble.control.AbstractFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.PersistenceProperties; -import com.x.organization.core.entity.UnitAttribute; -import com.x.organization.core.entity.UnitAttribute_; - -import net.sf.ehcache.Element; - -public class UnitAttributeFactory extends AbstractFactory { - - public UnitAttributeFactory(Business business) throws Exception { - super(business); - cache = ApplicationCache.instance().getCache(UnitAttribute.class); - } - - public UnitAttribute pick(String flag) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - UnitAttribute o = null; - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - o = (UnitAttribute) element.getObjectValue(); - } - } else { - o = this.pickObject(flag); - cache.put(new Element(flag, o)); - } - return o; - } - - private UnitAttribute pickObject(String flag) throws Exception { - UnitAttribute o = this.entityManagerContainer().flag(flag, UnitAttribute.class); - if (o != null) { - this.entityManagerContainer().get(UnitAttribute.class).detach(o); - } else { - String name = flag; - Matcher matcher = PersistenceProperties.UnitAttribute.distinguishedName_pattern.matcher(flag); - if (matcher.find()) { - name = matcher.group(1); - String unique = matcher.group(2); - o = this.entityManagerContainer().flag(unique, UnitAttribute.class); - if (null != o) { - this.entityManagerContainer().get(UnitAttribute.class).detach(o); - } - } - if (null == o) { - EntityManager em = this.entityManagerContainer().get(UnitAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitAttribute.class); - Root root = cq.from(UnitAttribute.class); - Predicate p = cb.equal(root.get(UnitAttribute_.name), name); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - if (os.size() == 1) { - o = os.get(0); - em.detach(o); - } - } - } - return o; - } - - public List pick(List flags) throws Exception { - List list = new ArrayList<>(); - for (String str : flags) { - Element element = cache.get(str); - if (null != element) { - if (null != element.getObjectValue()) { - list.add((UnitAttribute) element.getObjectValue()); - } - } else { - UnitAttribute o = this.pickObject(str); - cache.put(new Element(str, o)); - if (null != o) { - list.add(o); - } - } - } - return list; - } - - public List sort(List list) { - list = list.stream() - .sorted(Comparator.comparing(UnitAttribute::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing( - Comparator.comparing(UnitAttribute::getName, Comparator.nullsFirst(String::compareTo)) - .reversed())) - .collect(Collectors.toList()); - return list; - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitDutyFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitDutyFactory.java deleted file mode 100644 index c4f6dd72167351cb0444651339ae3f960d391f89..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitDutyFactory.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.x.organization.assemble.control.factory; - -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.regex.Matcher; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.organization.assemble.control.AbstractFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.PersistenceProperties; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -public class UnitDutyFactory extends AbstractFactory { - - public UnitDutyFactory(Business business) throws Exception { - super(business); - cache = ApplicationCache.instance().getCache(UnitDuty.class); - } - - public UnitDuty pick(String flag) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - UnitDuty o = null; - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - o = (UnitDuty) element.getObjectValue(); - } - } else { - o = this.pickObject(flag); - cache.put(new Element(flag, o)); - } - return o; - } - - private UnitDuty pickObject(String flag) throws Exception { - UnitDuty o = this.entityManagerContainer().flag(flag, UnitDuty.class); - if (o != null) { - this.entityManagerContainer().get(UnitDuty.class).detach(o); - } else { - String name = flag; - Matcher matcher = PersistenceProperties.UnitDuty.distinguishedName_pattern.matcher(flag); - if (matcher.find()) { - name = matcher.group(1); - String unique = matcher.group(2); - o = this.entityManagerContainer().flag(unique, UnitDuty.class); - if (null != o) { - this.entityManagerContainer().get(UnitDuty.class).detach(o); - } - } - if (null == o) { - EntityManager em = this.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.name), name); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - if (os.size() == 1) { - o = os.get(0); - em.detach(o); - } - } - } - return o; - } - - public List pick(List flags) throws Exception { - List list = new ArrayList<>(); - for (String str : flags) { - Element element = cache.get(str); - if (null != element) { - if (null != element.getObjectValue()) { - list.add((UnitDuty) element.getObjectValue()); - } - } else { - UnitDuty o = this.pickObject(str); - cache.put(new Element(str, o)); - if (null != o) { - list.add(o); - } - } - } - return list; - } - - public List sort(List list) { - list = list.stream().sorted( - Comparator.comparing(UnitDuty::getOrderNumber, Comparator.nullsLast(Integer::compareTo)).thenComparing( - Comparator.comparing(UnitDuty::getName, Comparator.nullsFirst(String::compareTo)).reversed())) - .collect(Collectors.toList()); - return list; - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitFactory.java deleted file mode 100644 index 2bd41ed60aa2087140161490c1aff312dc109c39..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/factory/UnitFactory.java +++ /dev/null @@ -1,333 +0,0 @@ -package com.x.organization.assemble.control.factory; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Comparator; -import java.util.List; -import java.util.Objects; -import java.util.regex.Matcher; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.AbstractFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.PersistenceProperties; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -public class UnitFactory extends AbstractFactory { - - public UnitFactory(Business business) throws Exception { - super(business); - cache = ApplicationCache.instance().getCache(Unit.class); - } - - public Unit pick(String flag) throws Exception { - if (StringUtils.isEmpty(flag)) { - return null; - } - Unit o = null; - Element element = cache.get(flag); - if (null != element) { - if (null != element.getObjectValue()) { - o = (Unit) element.getObjectValue(); - } - } else { - o = this.pickObject(flag); - cache.put(new Element(flag, o)); - } - return o; - } - - private Unit pickObject(String flag) throws Exception { - Unit o = this.entityManagerContainer().flag(flag, Unit.class); - if (o != null) { - this.entityManagerContainer().get(Unit.class).detach(o); - } else { - String name = flag; - Matcher matcher = PersistenceProperties.Unit.distinguishedName_pattern.matcher(flag); - if (matcher.find()) { - name = matcher.group(1); - String unique = matcher.group(2); - o = this.entityManagerContainer().flag(unique, Unit.class); - if (null != o) { - this.entityManagerContainer().get(Unit.class).detach(o); - } - } - if (null == o) { - EntityManager em = this.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.name), name); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - if (os.size() == 1) { - o = os.get(0); - em.detach(o); - } - } - if (null == o && StringUtils.contains(flag, PersistenceProperties.Unit.levelNameSplit)) { - List list = Arrays.asList(StringUtils.split(flag, PersistenceProperties.Unit.levelNameSplit)); - EntityManager em = this.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.and(cb.equal(root.get(Unit_.name), Objects.toString(ListTools.last(list), "")), - cb.equal(root.get(Unit_.level), list.size())); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - for (Unit unit : os) { - if (StringUtils.equalsIgnoreCase(unit.getLevelName(), flag)) { - o = unit; - em.detach(o); - break; - } - } - } - } - return o; - } - - public List pick(List flags) throws Exception { - List list = new ArrayList<>(); - for (String str : flags) { - Element element = cache.get(str); - if (null != element) { - if (null != element.getObjectValue()) { - list.add((Unit) element.getObjectValue()); - } - } else { - Unit o = this.pickObject(str); - cache.put(new Element(str, o)); - if (null != o) { - list.add(o); - } - } - } - return list; - } - - public List sort(List list) { - List os = list.stream().sorted(Comparator.comparing(Unit::getLevel, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(Unit::getOrderNumber, Comparator.nullsLast(Integer::compareTo))) - .thenComparing( - Comparator.comparing(Unit::getName, Comparator.nullsFirst(String::compareTo)).reversed())) - .collect(Collectors.toList()); - return os; - } - - public String getSupDirect(String id) throws Exception { - if (StringUtils.isEmpty(id)) { - return null; - } - Unit unit = this.pick(id); - if (null == unit) { - return null; - } - if (StringUtils.isEmpty(unit.getSuperior())) { - return null; - } - Unit superior = this.pick(unit.getSuperior()); - if (null == superior) { - return null; - } - return superior.getId(); - } - - /** 递归的上级组织,从底层到顶层 */ - public List listSupNested(String id) throws Exception { - List list = new ArrayList<>(); - this.supNested(id, list); - return list; - } - - private void supNested(String id, List list) throws Exception { - String superiorId = this.getSupDirect(id); - if (StringUtils.isNotEmpty(superiorId) && (!list.contains(superiorId))) { - list.add(superiorId); - this.supNested(superiorId, list); - } - } - - public Unit getSupDirectObject(Unit unit) throws Exception { - if (null == unit) { - return null; - } - if (StringUtils.isEmpty(unit.getSuperior())) { - return null; - } - EntityManager em = this.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.id), unit.getSuperior()); - List list = em.createQuery(cq.select(root).where(p)).setMaxResults(1).getResultList(); - if (!list.isEmpty()) { - return list.get(0); - } else { - return null; - } - } - - /** 递归的上级组织,从底层到顶层 */ - public List listSupNestedObject(Unit unit) throws Exception { - List list = new ArrayList<>(); - if (unit == null) { - return list; - } - if (StringUtils.isEmpty(unit.getSuperior())) { - return list; - } - this.supNestedObject(unit, list); - list = list.stream().sorted(Comparator.comparing(Unit::getLevel, Comparator.nullsLast(Integer::compareTo))) - .collect(Collectors.toList()); - return list; - } - - private void supNestedObject(Unit unit, List list) throws Exception { - Unit superior = this.getSupDirectObject(unit); - if ((null != superior) && (!list.contains(superior))) { - list.add(superior); - this.supNestedObject(superior, list); - } - } - - public void adjustInherit(Unit unit) throws Exception { - List os = new ArrayList<>(); - os.add(unit); - os.addAll(this.listSubNestedObject(unit)); - for (Unit o : os) { - List list = this.listSupNestedObject(o); - /** 级别从1开始 */ - o.setLevel(list.size() + 1); - List names = ListTools.extractProperty(list, "name", String.class, false, false); - // Collections.reverse(names); - names.add(o.getName()); - o.setLevelName(StringUtils.join(names, PersistenceProperties.Unit.levelNameSplit)); - List inheritControllerList = new ArrayList<>(); - for (Unit u : list) { - if (ListTools.isNotEmpty(u.getControllerList())) { - inheritControllerList.addAll(u.getControllerList()); - } - } - o.setInheritedControllerList(ListTools.trim(inheritControllerList, true, true)); - } - } - - public List listSubNested(String id) throws Exception { - List list = new ArrayList<>(); - this.subNested(id, list); - return list; - } - - private void subNested(String id, List list) throws Exception { - List os = new ArrayList<>(); - for (String o : this.listSubDirect(id)) { - if (!list.contains(o)) { - os.add(o); - } - } - if (!os.isEmpty()) { - list.addAll(os); - for (String o : os) { - this.subNested(o, list); - } - } - } - - public List listSubDirect(String id) throws Exception { - if (StringUtils.isEmpty(id)) { - return new ArrayList(); - } - EntityManager em = this.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.superior), id); - return em.createQuery(cq.select(root.get(Unit_.id)).where(p)).getResultList(); - } - - public List listSubNestedObject(Unit unit) throws Exception { - List list = new ArrayList<>(); - this.subNestedObject(unit, list); - return list; - } - - private void subNestedObject(Unit unit, List list) throws Exception { - List os = new ArrayList<>(); - for (Unit o : this.listSubDirectObject(unit)) { - if (!list.contains(o)) { - os.add(o); - } - } - if (!os.isEmpty()) { - list.addAll(os); - for (Unit o : os) { - this.subNestedObject(o, list); - } - } - } - - public List listSubDirectObject(Unit unit) throws Exception { - if (null == unit) { - return new ArrayList(); - } - EntityManager em = this.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.superior), unit.getId()); - return em.createQuery(cq.select(root).where(p)).getResultList(); - } - - public List listTopObject() throws Exception { - EntityManager em = this.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.level), 0); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - os = os.stream().sorted(Comparator.comparing(Unit::getOrderNumber, Comparator.nullsLast(Integer::compareTo))) - .collect(Collectors.toList()); - return os; - } - - public Unit getWithDingdingIdObject(String dingdingId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.dingdingId), dingdingId); - List os = em.createQuery(cq.select(root).where(p)).setMaxResults(1).getResultList(); - if (os.isEmpty()) { - return null; - } else { - return os.get(0); - } - } - - public Unit getWithQiyeweixinIdObject(String dingdingId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.qiyeweixinId), dingdingId); - List os = em.createQuery(cq.select(root).where(p)).setMaxResults(1).getResultList(); - if (os.isEmpty()) { - return null; - } else { - return os.get(0); - } - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/ActionApplication.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/ActionApplication.java deleted file mode 100644 index 8eea1abf3091a1e1bd8c856ca8161405e0593d3c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/ActionApplication.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import java.util.Set; - -import javax.ws.rs.ApplicationPath; - -import com.x.base.core.project.jaxrs.AbstractActionApplication; -import com.x.organization.assemble.control.jaxrs.export.ExportAction; -import com.x.organization.assemble.control.jaxrs.function.FunctionAction; -import com.x.organization.assemble.control.jaxrs.group.GroupAction; -import com.x.organization.assemble.control.jaxrs.identity.IdentityAction; -import com.x.organization.assemble.control.jaxrs.inputperson.InputPersonAction; -import com.x.organization.assemble.control.jaxrs.loginrecord.LoginRecordAction; -import com.x.organization.assemble.control.jaxrs.permissionsetting.PermissionSettingAction; -import com.x.organization.assemble.control.jaxrs.person.PersonAction; -import com.x.organization.assemble.control.jaxrs.personattribute.PersonAttributeAction; -import com.x.organization.assemble.control.jaxrs.personcard.PersonCardAction; -import com.x.organization.assemble.control.jaxrs.role.RoleAction; -import com.x.organization.assemble.control.jaxrs.unit.UnitAction; -import com.x.organization.assemble.control.jaxrs.unitattribute.UnitAttributeAction; -import com.x.organization.assemble.control.jaxrs.unitduty.UnitDutyAction; - -@ApplicationPath("jaxrs") -public class ActionApplication extends AbstractActionApplication { - - public Set> getClasses() { - classes.add(PersonAction.class); - classes.add(PersonAttributeAction.class); - classes.add(IdentityAction.class); - classes.add(GroupAction.class); - classes.add(RoleAction.class); - classes.add(FunctionAction.class); - classes.add(LoginRecordAction.class); - classes.add(InputPersonAction.class); - classes.add(UnitAction.class); - classes.add(UnitAttributeAction.class); - classes.add(UnitDutyAction.class); - classes.add(ExportAction.class); - classes.add(PersonCardAction.class); - classes.add(PermissionSettingAction.class); - return classes; - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/ExportJaxrsFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/ExportJaxrsFilter.java deleted file mode 100644 index 4eca4867ab72f7bc67f84e73fcca5e05678b21f8..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/ExportJaxrsFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.CipherManagerJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/export/*", asyncSupported = true) -public class ExportJaxrsFilter extends CipherManagerJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/FunctionJaxrsFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/FunctionJaxrsFilter.java deleted file mode 100644 index d4683ee713bf1a3754eec564cb6022fe0a2d7f5b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/FunctionJaxrsFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.CipherManagerJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/function/*", asyncSupported = true) -public class FunctionJaxrsFilter extends CipherManagerJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/GroupJaxrsFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/GroupJaxrsFilter.java deleted file mode 100644 index d5250807e9ca386952e075f1fac6004c79f46977..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/GroupJaxrsFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.ManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/group/*", asyncSupported = true) -public class GroupJaxrsFilter extends ManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/IdentityJaxrsFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/IdentityJaxrsFilter.java deleted file mode 100644 index dd92eef99814dab628e68b450ed648d859da742f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/IdentityJaxrsFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.ManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/identity/*", asyncSupported = true) -public class IdentityJaxrsFilter extends ManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/InputPersonFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/InputPersonFilter.java deleted file mode 100644 index 8494c246bbc1419e2bccaeebfff8134b999df2f1..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/InputPersonFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.CipherManagerJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/inputperson/*", asyncSupported = true) -public class InputPersonFilter extends CipherManagerJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/LoginRecordFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/LoginRecordFilter.java deleted file mode 100644 index f23a22844bdd8c0f76456dd0bfb12a7d5e6fa9ed..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/LoginRecordFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.CipherManagerJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/loginrecord/*", asyncSupported = true) -public class LoginRecordFilter extends CipherManagerJaxrsFilter { - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/PersonAttributeJaxrsFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/PersonAttributeJaxrsFilter.java deleted file mode 100644 index 4961e9c5210fd0d4e06ce13ee898ced91716b4a8..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/PersonAttributeJaxrsFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.ManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/personattribute/*", asyncSupported = true) -public class PersonAttributeJaxrsFilter extends ManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/PersonJaxrsFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/PersonJaxrsFilter.java deleted file mode 100644 index 777ffde65f1f33a45f74d5ed747c8b1add7c0c88..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/PersonJaxrsFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.ManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/person/*", asyncSupported = true) -public class PersonJaxrsFilter extends ManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/RoleFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/RoleFilter.java deleted file mode 100644 index 3172622c274d57bb08c09181691a0fe6bc89efc2..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/RoleFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.ManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/role/*", asyncSupported = true) -public class RoleFilter extends ManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/TestFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/TestFilter.java deleted file mode 100644 index 6c810fa88a9fe2484ae2d0b4667a3e29dd76ac6f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/TestFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.AnonymousCipherManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/test/*", asyncSupported = true) -public class TestFilter extends AnonymousCipherManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitAttributeFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitAttributeFilter.java deleted file mode 100644 index a3af80e5577e66e1845570c594d8c8b52cdc24fd..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitAttributeFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.CipherManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/unitattribute/*", asyncSupported = true) -public class UnitAttributeFilter extends CipherManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitDutyFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitDutyFilter.java deleted file mode 100644 index 568e40a0093658330900b53a9a6338910bea2de4..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitDutyFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.CipherManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/unitduty/*", asyncSupported = true) -public class UnitDutyFilter extends CipherManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitFilter.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitFilter.java deleted file mode 100644 index 6dce5f9d4e0302d0b43d8999ffcc39cc542a7fa3..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/UnitFilter.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.x.organization.assemble.control.jaxrs; - -import javax.servlet.annotation.WebFilter; - -import com.x.base.core.project.jaxrs.CipherManagerUserJaxrsFilter; - -@WebFilter(urlPatterns = "/jaxrs/unit/*", asyncSupported = true) -public class UnitFilter extends CipherManagerUserJaxrsFilter { - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ActionGetResult.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ActionGetResult.java deleted file mode 100644 index f35efbb60bdba73df630a370f0b6803cc3efd24a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ActionGetResult.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.export; - -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoFile; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -import net.sf.ehcache.Element; - -class ActionGetResult extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(ActionGetResult.class); - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - logger.debug(effectivePerson, "flag:{}.", flag); - ActionResult result = new ActionResult<>(); - Element element = cache.get(flag); - if (null == element || (null == element.getObjectValue())) { - throw new ExceptionResultNotFound(flag); - } - CacheFileResult o = (CacheFileResult) element.getObjectValue(); - Wo wo = new Wo(o.getBytes(), this.contentType(true, o.getName()), this.contentDisposition(true, o.getName())); - result.setData(wo); - return result; - } - - public static class Wo extends WoFile { - - public Wo(byte[] bytes, String contentType, String contentDisposition) { - super(bytes, contentType, contentDisposition); - } - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ActionZhengwuDingdingPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ActionZhengwuDingdingPerson.java deleted file mode 100644 index d1355cbeaab6c66a3314d924d0bba73d97220766..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ActionZhengwuDingdingPerson.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.export; - -import java.io.ByteArrayOutputStream; -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.ss.usermodel.Sheet; -import org.apache.poi.ss.usermodel.Workbook; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionZhengwuDingdingPerson extends BaseAction { - - private List allUnit; - private List allPerson; - private List allIdentity; - - ActionResult execute(EffectivePerson effectivePerson) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create(); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - Workbook workBook = new XSSFWorkbook()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - allUnit = this.listUnit(business); - allPerson = this.listPerson(business); - allIdentity = emc.listAll(Identity.class); - List sortedPerson = new ArrayList<>(); - for (Unit u : this.allUnit) { - List os = this.listPersonWithUnit(u); - for (Person p : os) { - if (!sortedPerson.contains(p)) { - sortedPerson.add(p); - } - } - } - List users = new ArrayList<>(); - for (Person person : sortedPerson) { - List units = this.listUnitWithPerson(person); - User user = new User(); - user.setName(person.getName()); - user.setZhengwuDingdingId(person.getZhengwuDingdingId()); - user.setMobile(person.getMobile()); - user.setUnitList(ListTools.extractProperty(units, Unit.name_FIELDNAME, String.class, true, false)); - users.add(user); - } - Sheet sheet = workBook.createSheet("政务钉钉人员"); - Row row = sheet.createRow(0); - row.createCell(0).setCellValue("姓名"); - row.createCell(1).setCellValue("手机"); - row.createCell(2).setCellValue("政务钉钉ID"); - for (int i = 0; i < users.size(); i++) { - User user = users.get(i); - row = sheet.createRow(i + 1); - row.createCell(0).setCellValue(user.getName()); - row.createCell(1).setCellValue(user.getMobile()); - row.createCell(2).setCellValue(user.getZhengwuDingdingId()); - for (int j = 0; j < user.getUnitList().size(); j++) { - row.createCell(j + 3).setCellValue(user.getUnitList().get(j)); - } - } - workBook.write(baos); - CacheFileResult cacheFileResult = new CacheFileResult(); - cacheFileResult.setBytes(baos.toByteArray()); - cacheFileResult.setName("政务钉钉人员.xlsx"); - Wo wo = new Wo(); - wo.setFlag(StringTools.uniqueToken()); - this.cache.put(new Element(wo.getFlag(), cacheFileResult)); - result.setData(wo); - return result; - } - } - - private List listPerson(Business business) throws Exception { - EntityManager em = business.entityManagerContainer().get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - Predicate p = cb.isNotEmpty(root.get(Person.zhengwuDingdingId_FIELDNAME)); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - return os; - } - - private List listUnit(Business business) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.isNotEmpty(root.get(Unit.zhengwuDingdingId_FIELDNAME)); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - os = os.stream().sorted(Comparator.comparing(Unit::getOrderNumber, Comparator.nullsLast(Integer::compareTo))) - .collect(Collectors.toList()); - return os; - } - - private List listPersonWithUnit(Unit unit) throws Exception { - List identities = this.listIdentityWithUnit(unit); - return this.listWithIdentity(identities); - } - - private List listIdentityWithUnit(Unit unit) throws Exception { - List os = allIdentity.stream().filter(o -> { - return StringUtils.equals(unit.getId(), o.getUnit()); - }).collect(Collectors.toList()); - return os; - } - - private List listWithIdentity(List identities) throws Exception { - final List ids = ListTools.extractProperty(identities, Identity.person_FIELDNAME, String.class, true, - true); - List os = allPerson.stream().filter(o -> { - return ListTools.contains(ids, o.getId()); - }).collect(Collectors.toList()); - return os; - } - - private List listUnitWithPerson(Person person) throws Exception { - List identities = this.listIdentityWithPerson(person); - final List ids = ListTools.extractProperty(identities, Identity.unit_FIELDNAME, String.class, true, - true); - List os = allUnit.stream().filter(o -> { - return ListTools.contains(ids, o.getId()); - }).collect(Collectors.toList()); - return os; - } - - private List listIdentityWithPerson(Person person) { - List os = allIdentity.stream().filter(o -> { - return StringUtils.equals(o.getPerson(), person.getId()); - }).collect(Collectors.toList()); - return os; - } - - public static class Wo extends GsonPropertyObject { - - @FieldDescribe("返回的结果标识") - private String flag; - - public String getFlag() { - return flag; - } - - public void setFlag(String flag) { - this.flag = flag; - } - - } - - public static class User extends GsonPropertyObject { - private String name; - - private String mobile; - - private String zhengwuDingdingId; - - private String zhengwuDingdingTitle; - - private List unitList; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getMobile() { - return mobile; - } - - public void setMobile(String mobile) { - this.mobile = mobile; - } - - public String getZhengwuDingdingId() { - return zhengwuDingdingId; - } - - public void setZhengwuDingdingId(String zhengwuDingdingId) { - this.zhengwuDingdingId = zhengwuDingdingId; - } - - public String getZhengwuDingdingTitle() { - return zhengwuDingdingTitle; - } - - public void setZhengwuDingdingTitle(String zhengwuDingdingTitle) { - this.zhengwuDingdingTitle = zhengwuDingdingTitle; - } - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/BaseAction.java deleted file mode 100644 index c3baaa1f34c0036bfacff0631c17c2ae4cf8ecde..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/BaseAction.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.export; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; - -import net.sf.ehcache.Ehcache; - -abstract class BaseAction extends StandardJaxrsAction { - - protected Ehcache cache = ApplicationCache.instance().getCache(CacheFileResult.class); - - public static class CacheFileResult { - - private String name; - - private byte[] bytes; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public byte[] getBytes() { - return bytes; - } - - public void setBytes(byte[] bytes) { - this.bytes = bytes; - } - - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ExceptionResultNotFound.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ExceptionResultNotFound.java deleted file mode 100644 index 2a8fbd2d37bc2f28078eab6c32fbf2131d4ebdff..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ExceptionResultNotFound.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.export; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionResultNotFound extends PromptException { - - private static final long serialVersionUID = -2139584911736169462L; - - ExceptionResultNotFound(String flag) { - super("找不到导入结果:{}.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ExportAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ExportAction.java deleted file mode 100644 index 22e8a221c1cdab44199eb4dab3e58d2985555607..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/export/ExportAction.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.export; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("export") -@JaxrsDescribe("导出") -public class ExportAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(ExportAction.class); - - @JaxrsMethodDescribe(value = "获取政务钉钉人员.", action = ActionZhengwuDingdingPerson.class) - @GET - @Path("zhengwudingding/person") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void zhengwuDingdingPerson(@Suspended final AsyncResponse asyncResponse, - @Context HttpServletRequest request) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionZhengwuDingdingPerson().execute(effectivePerson); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取导出结果.", action = ActionGetResult.class) - @GET - @Path("result/flag/{flag}") - @Consumes(MediaType.APPLICATION_JSON) - public void getResult(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("导入文件返回的结果标记") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGetResult().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionCreatePassword.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionCreatePassword.java deleted file mode 100644 index 303837349b7813ca3f4cbb8d4b25cdc1472ee19c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionCreatePassword.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.function; - -import java.util.List; -import java.util.Objects; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; - -import org.apache.commons.beanutils.PropertyUtils; -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.WrapOutCount; -import com.x.base.core.project.tools.Crypto; -import com.x.organization.core.entity.Person; - -public class ActionCreatePassword { - - protected ActionResult execute(String attribute) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - if (!StringUtils.equals(attribute, "password")) { - EntityManager em = emc.beginTransaction(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - cq.select(root); - List list = em.createQuery(cq).getResultList(); - for (Person o : list) { - Object obj = PropertyUtils.getProperty(o, attribute); - if (null == obj) { - throw new Exception("person{name:" + o.getName() + "} can not create password."); - } - String str = Objects.toString(obj); - if (StringUtils.isEmpty(str)) { - throw new Exception("person{name:" + o.getName() + "} can not create empty password."); - } - String value = Crypto.encrypt(str, Config.token().getKey()); - PropertyUtils.setProperty(o, "password", value); - } - emc.commit(); - WrapOutCount wrap = new WrapOutCount(); - wrap.setCount(list.size()); - result.setData(wrap); - } - return result; - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionListAllPersonName.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionListAllPersonName.java deleted file mode 100644 index 6ef7db7a5d2f05461653cd16f5e67f07d0f3198a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionListAllPersonName.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.function; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.Tuple; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.persistence.criteria.Selection; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.project.http.WrapInStringList; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; - -public class ActionListAllPersonName { - - protected List execute(Business business, WrapInStringList wrapIn) throws Exception { - EntityManagerContainer emc = business.entityManagerContainer(); - EntityManager em = emc.get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Tuple.class); - Root root = cq.from(Person.class); - List> selections = new ArrayList<>(); - for (String str : wrapIn.getValueList()) { - selections.add(root.get(str)); - } - cq.multiselect(selections); - List wraps = em.createQuery(cq).getResultList(); - return wraps; - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionSetPassword.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionSetPassword.java deleted file mode 100644 index 74b154e3687fab4164c8a470f0d5b19925cce224..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionSetPassword.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.function; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.exception.ExceptionWhen; -import com.x.base.core.project.http.WrapInString; -import com.x.base.core.project.http.WrapOutId; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; - -public class ActionSetPassword { - - protected WrapOutId execute(Business business, String name, WrapInString wrapIn) throws Exception { - EntityManagerContainer emc = business.entityManagerContainer(); - String personId = business.person().getWithName(name, null); - if (StringUtils.isEmpty(personId)) { - personId = business.person().getWithUnique(name, null); - } - if (StringUtils.isEmpty(personId)) { - throw new Exception("can not find person:" + name); - } else { - if (StringUtils.isEmpty(wrapIn.getValue())) { - throw new Exception("new password is empty"); - } - Person person = emc.find(personId, Person.class, ExceptionWhen.not_found); - emc.beginTransaction(Person.class); - business.person().setPassword(person, wrapIn.getValue()); - emc.check(person, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Person.class); - WrapOutId wrap = new WrapOutId(person.getId()); - return wrap; - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionSetText.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionSetText.java deleted file mode 100644 index ada3e4d79784abfb1fd81da572c94615e1a1c4ca..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/ActionSetText.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.function; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; - -import org.apache.commons.beanutils.PropertyUtils; -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.WrapOutCount; -import com.x.base.core.project.tools.Crypto; -import com.x.organization.core.entity.Person; - -public class ActionSetText { - - protected ActionResult execute(String attribute, String key) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - if (!StringUtils.equals(attribute, "password")) { - EntityManager em = emc.beginTransaction(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - cq.select(root); - List list = em.createQuery(cq).getResultList(); - for (Person o : list) { - String value = Crypto.decrypt(o.getPassword(), key); - PropertyUtils.setProperty(o, attribute, value); - } - emc.commit(); - WrapOutCount wrap = new WrapOutCount(); - wrap.setCount(list.size()); - result.setData(wrap); - } - return result; - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/FunctionAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/FunctionAction.java deleted file mode 100644 index b27d345ecced987a3006548c6e6e1331c5dee2b8..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/function/FunctionAction.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.function; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.Tuple; -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.http.WrapInString; -import com.x.base.core.project.http.WrapInStringList; -import com.x.base.core.project.http.WrapOutCount; -import com.x.base.core.project.http.WrapOutId; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.organization.assemble.control.Business; - -@Path("function") -public class FunctionAction extends StandardJaxrsAction { - - // @HttpMethodDescribe(value = "获取人员指定信息.", response = WrapOutStringList.class) - @POST - @Path("list/person") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listAllPersonName(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - WrapInStringList wrapIn) { - ActionResult> result = new ActionResult<>(); - List wraps = new ArrayList<>(); - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - wraps = new ActionListAllPersonName().execute(business, wrapIn); - result.setData(wraps); - } catch (Throwable th) { - th.printStackTrace(); - result.error(th); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - // @HttpMethodDescribe(value = "更新指定Person的Password.", request = - // WrapInString.class, response = WrapOutId.class) - @PUT - @Path("person/{name}/set/password") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void setPassword(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @PathParam("name") String name, WrapInString wrapIn) { - ActionResult result = new ActionResult<>(); - WrapOutId wrap = null; - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - wrap = new ActionSetPassword().execute(business, name, wrapIn); - result.setData(wrap); - } catch (Throwable th) { - th.printStackTrace(); - result.error(th); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - // @HttpMethodDescribe(response = WrapOutCount.class, value = "set text") - @GET - @Path("person/set/text/{attribute}/{key}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void setText(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @PathParam("attribute") String attribute, @PathParam("key") String key) { - ActionResult result = new ActionResult<>(); - try { - result = new ActionSetText().execute(attribute, key); - } catch (Throwable th) { - th.printStackTrace(); - result.error(th); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - // @HttpMethodDescribe(response = WrapOutCount.class, value = "create password") - @GET - @Path("person/create/password/{attribute}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void createPassword(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @PathParam("attribute") String attribute) { - ActionResult result = new ActionResult<>(); - try { - result = new ActionCreatePassword().execute(attribute); - } catch (Throwable th) { - th.printStackTrace(); - result.error(th); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionAddMember.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionAddMember.java deleted file mode 100644 index af4b9d2c04dd715ed88146670ad0a994efd10dc1..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionAddMember.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.List; - -import org.apache.commons.collections4.ListUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -class ActionAddMember extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Group group = business.group().pick(flag); - if (null == group) { - throw new ExceptionGroupNotExist(flag); - } - if (!business.editable(effectivePerson, group)) { - throw new ExceptionDenyEditGroup(effectivePerson, flag); - } - emc.beginTransaction(Group.class); - group = emc.find(group.getId(), Group.class); - if (ListTools.isNotEmpty(wi.getPersonList())) { - List person_add_ids = ListTools.extractProperty( - business.person().pick(ListTools.trim(wi.getPersonList(), true, true)), JpaObject.id_FIELDNAME, - String.class, true, true); - if (ListTools.isNotEmpty(person_add_ids)) { - group.setPersonList( - ListTools.trim(ListUtils.sum(group.getPersonList(), person_add_ids), true, true)); - } - } - if (ListTools.isNotEmpty(wi.getGroupList())) { - List group_add_ids = ListTools.extractProperty( - business.group().pick(ListTools.trim(wi.getGroupList(), true, true)), JpaObject.id_FIELDNAME, - String.class, true, true); - if (ListTools.isNotEmpty(group_add_ids)) { - group.setGroupList(ListTools.trim(ListUtils.sum(group.getGroupList(), group_add_ids), true, true)); - } - } - emc.check(group, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Group.class); - Wo wo = new Wo(); - wo.setId(group.getId()); - result.setData(wo); - return result; - } - } - - public static class Wi extends Group { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Group.class, - ListTools.toList(JpaObject.FieldsUnmodify, Group.personList_FIELDNAME, Group.groupList_FIELDNAME), - null); - } - - public static class Wo extends WoId { - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionCreate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionCreate.java deleted file mode 100644 index c4ac609116cf78bfe9ffbe80ed3d2505ef13ec2a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionCreate.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Group; - -class ActionCreate extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionCreate.class); - ActionResult execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Group group = Wi.copier.copy(wi); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.uniqueDuplicateWhenNotEmpty(business, group)) { - throw new ExceptionDuplicateUnique(group.getName(), group.getUnique()); - } - if (!business.editable(effectivePerson, group)) { - throw new ExceptionDenyCreateGroup(effectivePerson, group.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - group.setPersonList( - ListTools.extractProperty(business.person().pick(ListTools.trim(group.getPersonList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - group.setGroupList( - ListTools.extractProperty(business.group().pick(ListTools.trim(group.getGroupList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - emc.beginTransaction(Group.class); - emc.persist(group, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Group.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("add", "group", group, effectivePerson); - - - Wo wo = new Wo(); - wo.setId(group.getId()); - result.setData(wo); - return result; - } - } - - public static class Wi extends Group { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Group.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial")); - } - - public static class Wo extends WoId { - - } - - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionDelete.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionDelete.java deleted file mode 100644 index 0d511030b61c98f05ccf2097995c511c63c3c04c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionDelete.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.google.gson.Gson; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; - -class ActionDelete extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionDelete.class); - ActionResult execute(EffectivePerson effectivePerson, String groupFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Group group = business.group().pick(groupFlag); - if (null == group) { - throw new ExceptionGroupNotExist(groupFlag); - } - if (!business.editable(effectivePerson, group)) { - throw new ExceptionDenyDeleteGroup(effectivePerson, groupFlag); - } - // if (emc.listIsMember(Group.class,Group., value)) - - emc.beginTransaction(Group.class); - group = emc.find(group.getId(), Group.class); - emc.beginTransaction(Role.class); - /** 删除有群组成员的群组和角色成员 */ - this.removeGroupMember(business, group); - this.removeRoleMember(business, group); - emc.remove(group, CheckRemoveType.all); - emc.commit(); - ApplicationCache.notify(Group.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("delete", "group", group, effectivePerson); - - - Wo wo = new Wo(); - wo.setId(group.getId()); - result.setData(wo); - return result; - } - } - - private void removeGroupMember(Business business, Group group) throws Exception { - EntityManager em = business.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = cb.isMember(group.getId(), root.get(Group_.groupList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (Group o : os) { - o.getGroupList().remove(group.getId()); - } - } - - private void removeRoleMember(Business business, Group group) throws Exception { - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = cb.isMember(group.getId(), root.get(Role_.groupList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (Role o : os) { - o.getGroupList().remove(group.getId()); - } - } - - public static class Wo extends WoId { - - } - - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionDeleteMember.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionDeleteMember.java deleted file mode 100644 index 663cf1e2b0fc10563433ef7f7b13854fcd63e163..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionDeleteMember.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.List; - -import org.apache.commons.collections4.ListUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -class ActionDeleteMember extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Group group = business.group().pick(flag); - if (null == group) { - throw new ExceptionGroupNotExist(flag); - } - if (!business.editable(effectivePerson, group)) { - throw new ExceptionDenyEditGroup(effectivePerson, flag); - } - emc.beginTransaction(Group.class); - group = emc.find(group.getId(), Group.class); - if (ListTools.isNotEmpty(wi.getPersonList())) { - List person_remove_ids = ListTools.extractProperty( - business.person().pick(ListTools.trim(wi.getPersonList(), true, true)), JpaObject.id_FIELDNAME, - String.class, true, true); - if (ListTools.isNotEmpty(person_remove_ids)) { - group.setPersonList(ListUtils.subtract(group.getPersonList(), person_remove_ids)); - } - } - if (ListTools.isNotEmpty(wi.getGroupList())) { - List group_remove_ids = ListTools.extractProperty( - business.group().pick(ListTools.trim(wi.getGroupList(), true, true)), JpaObject.id_FIELDNAME, - String.class, true, true); - if (ListTools.isNotEmpty(group_remove_ids)) { - group.setGroupList(ListUtils.union(group.getGroupList(), group_remove_ids)); - } - } - emc.check(group, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Group.class); - Wo wo = new Wo(); - wo.setId(group.getId()); - result.setData(wo); - return result; - } - } - - public static class Wi extends Group { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Group.class, - ListTools.toList(JpaObject.FieldsUnmodify, Group.personList_FIELDNAME, Group.groupList_FIELDNAME), - null); - } - - public static class Wo extends WoId { - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionEdit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionEdit.java deleted file mode 100644 index 47c5135b7161d8cdef184df59f6aa8705cbc8ecf..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionEdit.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Group; - -class ActionEdit extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionEdit.class); - ActionResult execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Group group = business.group().pick(flag); - if (null == group) { - throw new ExceptionGroupNotExist(flag); - } - if (!business.editable(effectivePerson, group)) { - throw new ExceptionDenyEditGroup(effectivePerson, flag); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - emc.beginTransaction(Group.class); - group = emc.find(group.getId(), Group.class); - - Gson gsontool = new Gson(); - String strGroup = gsontool.toJson(group); - - Wi.copier.copy(wi, group); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.uniqueDuplicateWhenNotEmpty(business, group)) { - throw new ExceptionDuplicateUnique(group.getName(), group.getUnique()); - } - group.setPersonList( - ListTools.extractProperty(business.person().pick(ListTools.trim(group.getPersonList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - group.setGroupList( - ListTools.extractProperty(business.group().pick(ListTools.trim(group.getGroupList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - emc.check(group, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Group.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("modfiy", "group",strGroup, group, effectivePerson); - - Wo wo = new Wo(); - wo.setId(group.getId()); - result.setData(wo); - return result; - } - } - - public static class Wi extends Group { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Group.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial")); - } - - public static class Wo extends WoId { - - } - - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionGet.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionGet.java deleted file mode 100644 index 4d2e39f96c474fb0b7ec80dfc45d6c0e18d8b05e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionGet.java +++ /dev/null @@ -1,157 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionGet extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private Wo get(Business business, String flag) throws Exception { - Group group = business.group().pick(flag); - if (null == group) { - throw new ExceptionGroupNotExist(flag); - } - Wo wo = Wo.copier.copy(group); - this.referenceGroup(business, wo); - this.referencePerson(business, wo); - this.referenceUnit(business, wo); - return wo; - } - - private void referenceGroup(Business business, Wo wo) throws Exception { - List wos = new ArrayList<>(); - if (ListTools.isNotEmpty(wo.getGroupList())) { - List os = business.group().pick(wo.getGroupList()); - wos = Wo.copier.copy(os); - } - /*wos = wos.stream() - .sorted(Comparator.comparing(Wo::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(Wo::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList());*/ - wo.setWoGroupList(wos); - } - - private void referencePerson(Business business, Wo wo) throws Exception { - List wos = new ArrayList<>(); - if (ListTools.isNotEmpty(wo.getPersonList())) { - List os = business.person().pick(wo.getPersonList()); - wos = WoPerson.copier.copy(os); - } - /*wos = wos.stream() - .sorted(Comparator.comparing(WoPerson::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing( - Comparator.comparing(WoPerson::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList());*/ - wo.setWoPersonList(wos); - } - - private void referenceUnit(Business business, Wo wo) throws Exception { - List wos = new ArrayList<>(); - if (ListTools.isNotEmpty(wo.getUnitList())) { - List os = business.unit().pick(wo.getUnitList()); - wos = WoUnit.copier.copy(os); - } - /*wos = wos.stream() - .sorted(Comparator.comparing(WoUnit::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(WoUnit::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList());*/ - wo.setWoUnitList(wos); - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("成员群组对象") - private List woGroupList = new ArrayList<>(); - - @FieldDescribe("成员个人对象") - private List woPersonList = new ArrayList<>(); - - @FieldDescribe("成员组织对象") - private List woUnitList = new ArrayList<>(); - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - public List getWoGroupList() { - return woGroupList; - } - - public void setWoGroupList(List woGroupList) { - this.woGroupList = woGroupList; - } - - public List getWoPersonList() { - return woPersonList; - } - - public void setWoPersonList(List woPersonList) { - this.woPersonList = woPersonList; - } - - public List getWoUnitList() { - return woUnitList; - } - - public void setWoUnitList(List woUnitList) { - this.woUnitList = woUnitList; - } - - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(JpaObject.FieldsInvisible, "password", "icon")); - - } - - public static class WoUnit extends Unit { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, WoUnit.class, null, - JpaObject.FieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListLike.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListLike.java deleted file mode 100644 index 326a82e6e6c5e8a19537995db168bdf75577e43e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListLike.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; - -import net.sf.ehcache.Element; - -class ActionListLike extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - } - - private List list(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List groupIds = business.expendGroupRoleToGroup(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = cb.like(cb.lower(root.get(Group_.name)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR); - p = cb.or(p, cb.like(cb.lower(root.get(Group_.unique)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Group_.pinyin)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Group_.pinyinInitial)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Group_.distinguishedName)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - if (ListTools.isNotEmpty(groupIds)) { - p = cb.and(p, root.get(Group_.id).in(groupIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.group().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListLikePinyin.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListLikePinyin.java deleted file mode 100644 index 90fde82ae1a032f43159327cbcc6fa4f976dd372..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListLikePinyin.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; - -import net.sf.ehcache.Element; - -class ActionListLikePinyin extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - } - - private List list(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List groupIds = business.expendGroupRoleToGroup(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = cb.like(root.get(Group_.pinyin), str + "%"); - p = cb.or(p, cb.like(root.get(Group_.pinyinInitial), str + "%")); - if (ListTools.isNotEmpty(groupIds)) { - p = cb.and(p, root.get(Group_.id).in(groupIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.group().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListNext.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListNext.java deleted file mode 100644 index 00ae2cfe26a0bd6b6843dbfc99233a4e43faadd6..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListNext.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -import net.sf.ehcache.Element; - -class ActionListNext extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Group o = business.group().pick(flag); - if (null == o) { - throw new ExceptionGroupNotExist(flag); - } - id = o.getId(); - } - result = this.standardListNext(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, - JpaObject.singularAttributeField(Group.class, true, true), null); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListPinyinInitial.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListPinyinInitial.java deleted file mode 100644 index 04e3fdd2f9e307252d83259ef7a08e5e3e9a8a63..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListPinyinInitial.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; - -import net.sf.ehcache.Element; - -class ActionListPinyinInitial extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List groupIds = business.expendGroupRoleToGroup(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = cb.like(root.get(Group_.pinyinInitial), str + "%", StringTools.SQL_ESCAPE_CHAR); - if (ListTools.isNotEmpty(groupIds)) { - p = cb.and(p, root.get(Group_.id).in(groupIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.group().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListPrev.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListPrev.java deleted file mode 100644 index 4383314e2b4c65ca9a20dbe4a7641eb1b1dd1333..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListPrev.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -import net.sf.ehcache.Element; - -class ActionListPrev extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Group o = business.group().pick(flag); - if (null == o) { - throw new ExceptionGroupNotExist(flag); - } - id = o.getId(); - } - result = this.standardListPrev(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("身份") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, - JpaObject.singularAttributeField(Group.class, true, true), null); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSubDirect.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSubDirect.java deleted file mode 100644 index 047b5c3b24f8a98f90b3aa77b3b80b14b75973c4..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSubDirect.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -import net.sf.ehcache.Element; - -class ActionListSubDirect extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String key) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), key); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, key); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String flag) throws Exception { - Group group = business.group().pick(flag); - if (null == group) { - throw new ExceptionGroupNotExist(flag); - } - List os = business.group().listSubDirectObject(group); - List wos = Wo.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(Wo::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(Wo::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList()); - return wos; - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSubNested.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSubNested.java deleted file mode 100644 index 8dc64b7ea137c9cf29a53b45e9f4c94e11ed992e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSubNested.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -import net.sf.ehcache.Element; - -class ActionListSubNested extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String key) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), key); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, key); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String flag) throws Exception { - Group group = business.group().pick(flag); - if (null == group) { - throw new ExceptionGroupNotExist(flag); - } - List os = business.group().listSubNestedObject(group); - List wos = Wo.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(Wo::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(Wo::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList()); - return wos; - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupDirect.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupDirect.java deleted file mode 100644 index 1a4c67d41a5941495564def9a0cab87c8fcd5f5e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupDirect.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -import net.sf.ehcache.Element; - -class ActionListSupDirect extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String key) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), key); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, key); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String flag) throws Exception { - Group group = business.group().pick(flag); - if (null == group) { - throw new ExceptionGroupNotExist(flag); - } - List os = business.group().listSupDirectObject(group); - List wos = Wo.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(Wo::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(Wo::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList()); - return wos; - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupDirectWithPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupDirectWithPerson.java deleted file mode 100644 index afd33fc23f433a15d9e0ce19c8a062050b6ddcda..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupDirectWithPerson.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -class ActionListSupDirectWithPerson extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String key) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), key); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, key); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String personFlag) throws Exception { - Person person = business.person().pick(personFlag); - if (null == person) { - throw new ExceptionPersonNotExist(personFlag); - } - List os = business.group().listSupDirectWithPersonObject(person); - List wos = Wo.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(Wo::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(Wo::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList()); - return wos; - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupNested.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupNested.java deleted file mode 100644 index 1d2f8dae0d3e76e66bb572fa5c84998c0a971a66..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupNested.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -import net.sf.ehcache.Element; - -class ActionListSupNested extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String key) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), key); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, key); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String flag) throws Exception { - Group group = business.group().pick(flag); - if (null == group) { - throw new ExceptionGroupNotExist(flag); - } - List os = business.group().listSupNestedObject(group); - List wos = Wo.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(Wo::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(Wo::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList()); - return wos; - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupNestedWithPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupNestedWithPerson.java deleted file mode 100644 index a84d6931a3f5371f0a76d50bf9486114176f6c70..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListSupNestedWithPerson.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -class ActionListSupNestedWithPerson extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String key) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), key); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, key); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String personFlag) throws Exception { - Person person = business.person().pick(personFlag); - if (null == person) { - throw new ExceptionPersonNotExist(personFlag); - } - List os = business.group().listSupNestedWithPersonObject(person); - List wos = Wo.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(Wo::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(Wo::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList()); - return wos; - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListWithRole.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListWithRole.java deleted file mode 100644 index 130e03001abe0b751818b5da3cb18b2ae62cd041..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ActionListWithRole.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Role; - -import net.sf.ehcache.Element; - -class ActionListWithRole extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String roleFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), roleFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, roleFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String roleFlag) throws Exception { - Role o = business.role().pick(roleFlag); - if (null == o) { - throw new ExceptionRoleNotExist(roleFlag); - } - List ids = o.getGroupList(); - List os = business.group().pick(ids); - List wos = Wo.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(Wo::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Wo::getName, Comparator.nullsLast(String::compareTo))) - .collect(Collectors.toList()); - return wos; - } - - public static class Wo extends WoGroupAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, Wo.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/BaseAction.java deleted file mode 100644 index 496e3101e804b445ed4db4320b5bf9bed959a6a0..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/BaseAction.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; - -public class BaseAction extends StandardJaxrsAction { - - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - protected boolean uniqueDuplicateWhenNotEmpty(Business business, Group group) throws Exception { - if (StringUtils.isNotEmpty(group.getUnique())) { - if (business.entityManagerContainer().duplicateWithFlags(group.getId(), Group.class, group.getUnique())) { - return true; - } - } - return false; - } - - public static class WoGroupAbstract extends Group { - - private static final long serialVersionUID = 5454920726133364605L; - @FieldDescribe("对群组的操作权限") - private Control control = new Control(); - - public Control getControl() { - return control; - } - - public void setControl(Control control) { - this.control = control; - } - } - - public static class Control extends GsonPropertyObject { - - private Boolean allowEdit = false; - private Boolean allowDelete = false; - - public Boolean getAllowEdit() { - return allowEdit; - } - - public void setAllowEdit(Boolean allowEdit) { - this.allowEdit = allowEdit; - } - - public Boolean getAllowDelete() { - return allowDelete; - } - - public void setAllowDelete(Boolean allowDelete) { - this.allowDelete = allowDelete; - } - - } - - protected void updateControl(EffectivePerson effectivePerson, Business business, - List list) throws Exception { - if (effectivePerson.isManager() - || business.hasAnyRole(effectivePerson, OrganizationDefinition.OrganizationManager)) { - for (T t : list) { - t.getControl().setAllowDelete(true); - t.getControl().setAllowEdit(true); - } - } else { - for (T t : list) { - t.getControl().setAllowDelete(false); - t.getControl().setAllowEdit(false); - } - } - } - - protected void updateControl(EffectivePerson effectivePerson, Business business, T t) - throws Exception { - if (effectivePerson.isManager() - || business.hasAnyRole(effectivePerson, OrganizationDefinition.OrganizationManager)) { - t.getControl().setAllowDelete(true); - t.getControl().setAllowEdit(true); - } else { - t.getControl().setAllowDelete(false); - t.getControl().setAllowEdit(false); - } - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyCreateGroup.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyCreateGroup.java deleted file mode 100644 index 16ca72bbdb7a011119ff4902603f884ffe2f4f73..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyCreateGroup.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyCreateGroup extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionDenyCreateGroup(EffectivePerson effectivePerson, String name) { - super("{} 不能创建群组:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyDeleteGroup.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyDeleteGroup.java deleted file mode 100644 index 629e4bc2e9b28259748c0b33bf06371702e1d292..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyDeleteGroup.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyDeleteGroup extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionDenyDeleteGroup(EffectivePerson effectivePerson, String name) { - super("{} 不能删除群组:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyEditGroup.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyEditGroup.java deleted file mode 100644 index 58a1376f87ada8e1e17eab63bafc306fdb0954f3..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDenyEditGroup.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyEditGroup extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionDenyEditGroup(EffectivePerson effectivePerson, String name) { - super("{} 不能编辑群组:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDuplicateUnique.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDuplicateUnique.java deleted file mode 100644 index 684088cabea7cbe66b9a7e51993ea1edac697252..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionDuplicateUnique.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateUnique extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateUnique(String name, String unique) { - super("群组 {} 的唯一标识:{},不能和已有的标识冲突.", name, unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionGroupNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionGroupNotExist.java deleted file mode 100644 index 70aa8b469ccbeb96331a996a3fc5e14695d52d32..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionGroupNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionGroupNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionGroupNotExist(String flag) { - super("群组: {} 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionNameEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionNameEmpty.java deleted file mode 100644 index 96aaba3d4fcbb9d7a8df17aa44d7fed1b2522dab..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionNameEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameEmpty extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionNameEmpty() { - super("群组名称不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionPersonNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionPersonNotExist.java deleted file mode 100644 index 3b4781fbf20f91f83f446d651746340233e9690a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionPersonNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPersonNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionPersonNotExist(String name) { - super("个人: {} 不存在.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionRoleNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionRoleNotExist.java deleted file mode 100644 index ff3d33152e5e4ff45861dd2015adb040f9d20732..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/ExceptionRoleNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionRoleNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionRoleNotExist(String name) { - super("角色: {} 不存在.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/GroupAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/GroupAction.java deleted file mode 100644 index c4a91678feb2b776fd698d9842bb58de3a9bce79..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/group/GroupAction.java +++ /dev/null @@ -1,364 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.group; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.google.gson.JsonElement; -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("group") -@JaxrsDescribe("群组操作") -public class GroupAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(GroupAction.class); - - @JaxrsMethodDescribe(value = "获取群组.", action = ActionGet.class) - @GET - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGet().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "创建群组.", action = ActionCreate.class) - @POST - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void create(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionCreate().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新群组.", action = ActionEdit.class) - @PUT - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void edit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionEdit().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除群组.", action = ActionDelete.class) - @DELETE - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void delete(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDelete().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示群组,下一页.", action = ActionListNext.class) - @GET - @Path("list/{flag}/next/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listNext(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListNext().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示群组,上一页.", action = ActionListPrev.class) - @GET - @Path("list/{flag}/prev/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPrev(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPrev().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找群组的直接上级群组.", action = ActionListSupDirect.class) - @GET - @Path("list/{flag}/sup/direct") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSupDirect(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSupDirect().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找群组的嵌套上级群组", action = ActionListSupNested.class) - @GET - @Path("list/{flag}/sup/nested") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSupNested(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSupNested().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找人员直接作为成员所在的群组.", action = ActionListSupDirectWithPerson.class) - @GET - @Path("list/person/{personFlag}/sup/direct") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSupDirectWithPerson(@Suspended final AsyncResponse asyncResponse, - @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("personFlag") String personFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSupDirectWithPerson().execute(effectivePerson, personFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找人员所在的群组,包括嵌套的下级群组.", action = ActionListSupNestedWithPerson.class) - @GET - @Path("list/person/{personFlag}/sup/nested") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSupNestedWithPerson(@Suspended final AsyncResponse asyncResponse, - @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("personFlag") String personFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSupNestedWithPerson().execute(effectivePerson, personFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找群组直接作为成员所在的群组.", action = ActionListSubDirect.class) - @GET - @Path("list/{flag}/sub/direct") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSubDirect(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSubDirect().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找群组所在的群组,包括嵌套的下级群组.", action = ActionListSubNested.class) - @GET - @Path("list/{flag}/sub/nested") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSubNested(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSubNested().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找指定角色所包含的群组.", action = ActionListWithRole.class) - @GET - @Path("list/role/{roleFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithRole(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("角色标识") @PathParam("roleFlag") String roleFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithRole().execute(effectivePerson, roleFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取拼音首字母开始的群组.", action = ActionListPinyinInitial.class) - @PUT - @Path("list/pinyininitial") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPinyinInitial(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPinyinInitial().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据名称进行模糊查询.", action = ActionListLike.class) - @PUT - @Path("list/like") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLike(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLike().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据拼音或者首字母进行模糊查询", action = ActionListLikePinyin.class) - @PUT - @Path("list/like/pinyin") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLikePinyin(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLikePinyin().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "添加群组成员.", action = ActionAddMember.class) - @PUT - @Path("{flag}/add/member") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void addMember(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionAddMember().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除群组成员.", action = ActionDeleteMember.class) - @PUT - @Path("{flag}/delete/member") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void deleteMember(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDeleteMember().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionCreate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionCreate.java deleted file mode 100644 index e8f2ee88bdeb38a9773b4b6eec6a0a68110b6e29..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionCreate.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.BooleanUtils; -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.exception.ExceptionAccessDenied; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; - -class ActionCreate extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - /* 前端在添加人员时重复执行,所以需要同步执行 */ - ActionResult result = new ActionResult<>(); - Wo wo = new Wo(); - synchronized (ActionCreate.class) { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Person person = business.person().pick(wi.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(wi.getPerson()); - } - person = emc.find(person.getId(), Person.class); - Unit unit = business.unit().pick(wi.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(wi.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionAccessDenied(effectivePerson, unit); - } - if (this.existedWithPersonWithUnit(business, person, unit)) { - throw new ExceptionExistInUnit(person, unit); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - Identity identity = new Identity(); - Wi.copier.copy(wi, identity); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.uniqueDuplicateWhenNotEmpty(business, identity)) { - throw new ExceptionDuplicateUnique(identity.getName(), identity.getUnique()); - } - identity.setUnit(unit.getId()); - identity.setUnitLevel(unit.getLevel()); - identity.setUnitLevelName(unit.getLevelName()); - identity.setUnitName(unit.getName()); - identity.setPerson(person.getId()); - /* 设置主身份 */ - List others = emc.listEqual(Identity.class, Identity.person_FIELDNAME, identity.getPerson()); - if (others.isEmpty()) { - identity.setMajor(true); - } else { - if (BooleanUtils.isTrue(identity.getMajor())) { - for (Identity o : others) { - if (!StringUtils.equals(identity.getId(), o.getId())) { - o.setMajor(false); - } - } - } - } - - emc.beginTransaction(Identity.class); - emc.beginTransaction(Person.class); - - emc.persist(identity, CheckPersistType.all); - List topUnits = business.unit().pick( - ListTools.trim(person.getTopUnitList(), true, true, this.topUnit(business, unit).getId())); - person.setTopUnitList(ListTools.extractField(topUnits, Unit.id_FIELDNAME, String.class, true, true)); - emc.persist(person, CheckPersistType.all); - - emc.commit(); - wo.setId(identity.getId()); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("add", "identity", identity, effectivePerson); - - } - ApplicationCache.notify(Identity.class); - ApplicationCache.notify(Person.class); - - - - - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - - } - - public static class Wi extends Identity { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Identity.class, null, ListTools - .toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial", "unitName", "unitLevel", "unitLevelName")); - } - - private boolean existedWithPersonWithUnit(Business business, Person person, Unit unit) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), unit.getId()); - p = cb.and(p, cb.equal(root.get(Identity_.person), person.getId())); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - if (count > 0) { - return true; - } else { - return false; - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionDelete.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionDelete.java deleted file mode 100644 index 404609bcde2bc3aa01fcc67caa41b0648852225a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionDelete.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.Comparator; -import java.util.Date; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.exception.ExceptionAccessDenied; -import com.x.base.core.project.exception.ExceptionEntityNotExist; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -public class ActionDelete extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Identity identity = business.identity().pick(flag); - if (null == identity) { - throw new ExceptionEntityNotExist(flag,Identity.class); - } - if (StringUtils.isNotEmpty(identity.getUnit())) { - Unit unit = business.unit().pick(identity.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(identity.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionAccessDenied(effectivePerson, unit); - } - /** 由于有关联所以要分段提交,提交UnitDuty的成员删除。 */ - emc.beginTransaction(UnitDuty.class); - this.removeMemberOfUnitDuty(business, identity); - emc.commit(); - } - /** 由于前面pick出来的需要重新取出 */ - identity = emc.find(identity.getId(), Identity.class); - // /** 删除下属身份 */ - // emc.beginTransaction(Identity.class); - // this.removeMemberOfJunior(business, identity); - // emc.commit(); - /** 最后进行身份的删除 */ - /* 设置主身份 */ - final String id = identity.getId(); - List others = emc.listEqual(Identity.class, Identity.person_FIELDNAME, identity.getPerson()) - .stream().filter(o -> !StringUtils.equals(id, o.getId())) - .sorted(Comparator.comparing(Identity::getCreateTime, Comparator.nullsLast(Date::compareTo))) - .collect(Collectors.toList()); - for (int i = 0; i < others.size(); i++) { - if (i == 0) { - others.get(i).setMajor(true); - } else { - others.get(i).setMajor(false); - } - } - emc.beginTransaction(Identity.class); - emc.remove(identity, CheckRemoveType.all); - emc.commit(); - ApplicationCache.notify(Identity.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("delete", "identity", identity, effectivePerson); - - Wo wo = new Wo(); - wo.setId(identity.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - - } - - // private void removeMemberOfJunior(Business business, Identity identity) - // throws Exception { - // EntityManager em = business.entityManagerContainer().get(Identity.class); - // CriteriaBuilder cb = em.getCriteriaBuilder(); - // CriteriaQuery cq = cb.createQuery(Identity.class); - // Root root = cq.from(Identity.class); - // Predicate p = cb.isMember(identity.getId(), - // root.get(Identity_.juniorList)); - // List os = - // em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - // for (Identity o : os) { - // o.getJuniorList().remove(identity.getId()); - // } - // } - - private void removeMemberOfUnitDuty(Business business, Identity identity) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.isMember(identity.getId(), root.get(UnitDuty_.identityList)); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - for (UnitDuty o : os) { - o.getIdentityList().remove(identity.getId()); - } - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionEdit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionEdit.java deleted file mode 100644 index c03421a3424f1a2d0efda72f4c3b2fff87f73d1c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionEdit.java +++ /dev/null @@ -1,111 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.List; - -import org.apache.commons.lang3.BooleanUtils; -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.exception.ExceptionAccessDenied; -import com.x.base.core.project.exception.ExceptionEntityNotExist; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; - -class ActionEdit extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Identity identity = business.identity().pick(flag); - if (null == identity) { - throw new ExceptionEntityNotExist(flag, Identity.class); - } - Person person = emc.find(identity.getPerson(), Person.class); - if (null == person) { - throw new ExceptionEntityNotExist(identity.getPerson(), Person.class); - } - Unit unit = business.unit().pick(identity.getUnit()); - if (null == unit) { - throw new ExceptionEntityNotExist(identity.getUnit(), Unit.class); - } - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionAccessDenied(effectivePerson, unit); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - emc.beginTransaction(Identity.class); - emc.beginTransaction(Person.class); - identity = emc.find(identity.getId(), Identity.class); - - Gson gsontool = new Gson(); - String strIdentity = gsontool.toJson(identity); - - Wi.copier.copy(wi, identity); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.uniqueDuplicateWhenNotEmpty(business, identity)) { - throw new ExceptionDuplicateUnique(identity.getName(), identity.getUnique()); - } - identity.setUnit(unit.getId()); - identity.setUnitLevel(unit.getLevel()); - identity.setUnitLevelName(unit.getLevelName()); - identity.setUnitName(unit.getName()); - /* 设置主身份 */ - if (BooleanUtils.isTrue(identity.getMajor())) { - for (Identity o : emc.listEqual(Identity.class, Identity.person_FIELDNAME, identity.getPerson())) { - if (!StringUtils.equals(identity.getId(), o.getId())) { - o.setMajor(false); - } - } - } - emc.check(identity, CheckPersistType.all); - List topUnits = business.unit() - .pick(ListTools.trim(person.getTopUnitList(), true, true, this.topUnit(business, unit).getId())); - person.setTopUnitList(ListTools.extractField(topUnits, Unit.id_FIELDNAME, String.class, true, true)); - emc.check(person, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Identity.class); - ApplicationCache.notify(Person.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("modfiy", "identity",strIdentity, identity, effectivePerson); - - - Wo wo = new Wo(); - wo.setId(identity.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - - } - - public static class Wi extends Identity { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Identity.class, null, ListTools - .toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial", "unitName", "unitLevel", "unitLevelName")); - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionGet.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionGet.java deleted file mode 100644 index 7720d478d4f2b34b289cb0202cacf23963dc4d0d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionGet.java +++ /dev/null @@ -1,171 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionGet extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - return result; - } - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - @FieldDescribe("组织对象") - private WoUnit woUnit; - - @FieldDescribe("个人对象") - private WoPerson woPerson; - - public WoUnit getWoUnit() { - return woUnit; - } - - public void setWoUnit(WoUnit woUnit) { - this.woUnit = woUnit; - } - - public WoPerson getWoPerson() { - return woPerson; - } - - public void setWoPerson(WoPerson woPerson) { - this.woPerson = woPerson; - } - - } - - public static class WoUnit extends Unit { - - private static final long serialVersionUID = 2465212973550376118L; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, WoUnit.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = -8775294698857946888L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(ListTools.toList(JpaObject.FieldsInvisible, "password", "icon"))); - } - - private Wo get(Business business, String flag) throws Exception { - Identity identity = business.identity().pick(flag); - if (null == identity) { - throw new ExceptionIdentityNotExist(flag); - } - Wo wo = Wo.copier.copy(identity); - this.referenceUnit(business, wo); - this.referencePerson(business, wo); - return wo; - } - - private void referenceUnit(Business business, Wo wo) throws Exception { - if (StringUtils.isNotEmpty(wo.getUnit())) { - Unit unit = business.unit().pick(wo.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(wo.getUnit()); - } - WoUnit woUnit = WoUnit.copier.copy(unit); - woUnit.setSubDirectIdentityCount(this.countSubDirectIdentity(business, woUnit)); - woUnit.setSubDirectUnitCount(this.countSubDirectUnit(business, woUnit)); - wo.setWoUnit(woUnit); - } - } - - private void referencePerson(Business business, Wo wo) throws Exception { - Person person = business.person().pick(wo.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(wo.getPerson()); - } - WoPerson woPerson = WoPerson.copier.copy(person); - wo.setWoPerson(woPerson); - } - - private Long countSubDirectUnit(Business business, WoUnit woUnit) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.superior), woUnit.getId()); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count; - } - - private Long countSubDirectIdentity(Business business, WoUnit woUnit) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), woUnit.getId()); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count; - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListLike.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListLike.java deleted file mode 100644 index c0f25f4b52248ac30dca24972e1adb1b95107383..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListLike.java +++ /dev/null @@ -1,134 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.collections.ListUtils; -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.UnitDuty; - -import net.sf.ehcache.Element; - -class ActionListLike extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getUnitList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.listLike(business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索组织范围,为空则不限定") - private List unitList = new ArrayList<>(); - @FieldDescribe("搜索职务范围,为空则不限定") - private List unitDutyList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - - public List getUnitDutyList() { - return unitDutyList; - } - - public void setUnitDutyList(List unitDutyList) { - this.unitDutyList = unitDutyList; - } - - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - } - - private List listLike(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.like(cb.lower(root.get(Identity_.name)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR); - p = cb.or(p, cb.like(cb.lower(root.get(Identity_.unique)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Identity_.pinyin)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Identity_.pinyinInitial)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Identity_.distinguishedName)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - if (ListTools.isNotEmpty(wi.getUnitDutyList())) { - List unitDuties = business.unitDuty().pick(wi.getUnitDutyList()); - List unitDutyIdentities = new ArrayList<>(); - for (UnitDuty o : unitDuties) { - unitDutyIdentities.addAll(o.getIdentityList()); - } - unitDutyIdentities = ListTools.trim(unitDutyIdentities, true, true); - p = cb.and(p, root.get(Identity_.id).in(unitDutyIdentities)); - } - if (ListTools.isNotEmpty(wi.getUnitList())) { - List identityIds = business.expendUnitToIdentity(wi.getUnitList()); - p = cb.and(p, root.get(Identity_.id).in(identityIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.identity().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListLikePinyin.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListLikePinyin.java deleted file mode 100644 index 4c04694a2511e5b6cedc1dbc03a4a044c162387a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListLikePinyin.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.collections.ListUtils; -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.UnitDuty; - -import net.sf.ehcache.Element; - -class ActionListLikePinyin extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getUnitList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索组织范围,为空则不限定") - private List unitList = new ArrayList<>(); - @FieldDescribe("搜索职务范围,为空则不限定") - private List unitDutyList = new ArrayList<>(); - - public List getUnitDutyList() { - return unitDutyList; - } - - public void setUnitDutyList(List unitDutyList) { - this.unitDutyList = unitDutyList; - } - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.like(root.get(Identity_.pinyin), str + "%"); - p = cb.or(p, cb.like(root.get(Identity_.pinyinInitial), str + "%")); - if (ListTools.isNotEmpty(wi.getUnitDutyList())) { - List unitDuties = business.unitDuty().pick(wi.getUnitDutyList()); - List unitDutyIdentities = new ArrayList<>(); - for (UnitDuty o : unitDuties) { - unitDutyIdentities.addAll(o.getIdentityList()); - } - unitDutyIdentities = ListTools.trim(unitDutyIdentities, true, true); - p = cb.and(p, root.get(Identity_.id).in(unitDutyIdentities)); - } - if (ListTools.isNotEmpty(wi.getUnitList())) { - List identityIds = business.expendUnitToIdentity(wi.getUnitList()); - p = cb.and(p, root.get(Identity_.id).in(identityIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.identity().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListNext.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListNext.java deleted file mode 100644 index 6c70e63e9fa64be51ffc28cdfc72a800cb435351..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListNext.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; - -import net.sf.ehcache.Element; - -class ActionListNext extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - ActionResult> result = new ActionResult<>(); - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Identity identity = business.identity().pick(flag); - if (null == identity) { - throw new ExceptionIdentityNotExist(flag); - } - id = identity.getId(); - } - result = this.standardListNext(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - } - return result; - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListPinyinInitial.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListPinyinInitial.java deleted file mode 100644 index 2b917c98b4b47efbb1dd8165fb6e9ada58d1f51c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListPinyinInitial.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.UnitDuty; - -import net.sf.ehcache.Element; - -public class ActionListPinyinInitial extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getUnitList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索组织范围,为空则不限定") - private List unitList = new ArrayList<>(); - @FieldDescribe("搜索职务范围,为空则不限定") - private List unitDutyList = new ArrayList<>(); - - public List getUnitDutyList() { - return unitDutyList; - } - - public void setUnitDutyList(List unitDutyList) { - this.unitDutyList = unitDutyList; - } - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.like(root.get(Identity_.pinyinInitial), str + "%", StringTools.SQL_ESCAPE_CHAR); - if (ListTools.isNotEmpty(wi.getUnitDutyList())) { - List unitDuties = business.unitDuty().pick(wi.getUnitDutyList()); - List unitDutyIdentities = new ArrayList<>(); - for (UnitDuty o : unitDuties) { - unitDutyIdentities.addAll(o.getIdentityList()); - } - unitDutyIdentities = ListTools.trim(unitDutyIdentities, true, true); - p = cb.and(p, root.get(Identity_.id).in(unitDutyIdentities)); - } - if (ListTools.isNotEmpty(wi.getUnitList())) { - List identityIds = business.expendUnitToIdentity(wi.getUnitList()); - p = cb.and(p, root.get(Identity_.id).in(identityIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.identity().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListPrev.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListPrev.java deleted file mode 100644 index 438267a33326722338fc3d3b8c1dabc67e84c8ae..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListPrev.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; - -import net.sf.ehcache.Element; - -class ActionListPrev extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Identity identity = business.identity().pick(flag); - if (null == identity) { - throw new ExceptionIdentityNotExist(flag); - } - id = identity.getId(); - } - result = this.standardListPrev(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithPerson.java deleted file mode 100644 index edfbd06d42b26bc53dcc7a5bccc7a664eb0df80f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithPerson.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -class ActionListWithPerson extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String personFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), personFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, personFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, String personFlag) throws Exception { - Person person = business.person().pick(personFlag); - if (null == person) { - throw new ExceptionPersonNotExist(personFlag); - } - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.person), person.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = Wo.copier.copy(os); - wos = business.identity().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnit.java deleted file mode 100644 index 3d870cd95b55ab2891d51e7a6b578da4861be4ec..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnit.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionListWithUnit extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String unitFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), unitFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, unitFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, String unitFlag) throws Exception { - Unit unit = business.unit().pick(unitFlag); - if (null == unit) { - throw new ExceptionUnitNotExist(unitFlag); - } - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), unit.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = Wo.copier.copy(os); - wos = business.identity().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnitDutyName.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnitDutyName.java deleted file mode 100644 index 7c47913949c246c7d34543882408ab82c32b6423..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnitDutyName.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -class ActionListWithUnitDutyName extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String unitDutyName) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), unitDutyName); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, unitDutyName); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wo extends Identity { - - private String matchUnitName; - private String matchUnitLevelName; - private Integer matchUnitLevel; - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public String getMatchUnitName() { - return matchUnitName; - } - - public void setMatchUnitName(String matchUnitName) { - this.matchUnitName = matchUnitName; - } - - public String getMatchUnitLevelName() { - return matchUnitLevelName; - } - - public void setMatchUnitLevelName(String matchUnitLevelName) { - this.matchUnitLevelName = matchUnitLevelName; - } - - public Integer getMatchUnitLevel() { - return matchUnitLevel; - } - - public void setMatchUnitLevel(Integer matchUnitLevel) { - this.matchUnitLevel = matchUnitLevel; - } - - } - - private List list(Business business, String unitDutyName) throws Exception { - List wos = new ArrayList(); - List os = business.entityManagerContainer().listEqual(UnitDuty.class, UnitDuty.name_FIELDNAME, - unitDutyName); - for (UnitDuty o : os) { - Unit unit = business.unit().pick(o.getUnit()); - for (String identityId : o.getIdentityList()) { - Identity identity = business.identity().pick(identityId); - Wo wo = Wo.copier.copy(identity); - wo.setMatchUnitLevel(unit.getLevel()); - wo.setMatchUnitLevelName(unit.getLevelName()); - wo.setMatchUnitName(unit.getName()); - wos.add(wo); - } - } - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnitWithUnitDutyName.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnitWithUnitDutyName.java deleted file mode 100644 index 00f1d3d8f944e6530bc2bc5c732496029b480f92..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionListWithUnitWithUnitDutyName.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -class ActionListWithUnitWithUnitDutyName extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String unitFlag, String unitDutyName) - throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), unitFlag, unitDutyName); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, unitFlag, unitDutyName); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wo extends Identity { - - private static final long serialVersionUID = -127291000673692614L; - - private WoPerson woPerson; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public WoPerson getWoPerson() { - return woPerson; - } - - public void setWoPerson(WoPerson woPerson) { - this.woPerson = woPerson; - } - - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = -8775294698857946888L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(ListTools.toList(JpaObject.FieldsInvisible, "password", "icon"))); - } - - private List list(Business business, String unitFlag, String unitDutyName) throws Exception { - List wos = new ArrayList<>(); - Unit unit = business.unit().pick(unitFlag); - if (null != unit) { - List identityIds = this.listIdentityId(business, unit, unitDutyName); - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = root.get(Identity_.id).in(identityIds); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.identity().sort(wos); - for (Wo wo : wos) { - this.referencePerson(business, wo); - } - } - return wos; - } - - private List listIdentityId(Business business, Unit unit, String unitDutyName) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.name), unitDutyName); - p = cb.and(p, cb.equal(root.get(UnitDuty_.unit), unit.getId())); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List identityIds = new ArrayList<>(); - for (UnitDuty o : os) { - identityIds.addAll(o.getIdentityList()); - } - identityIds = ListTools.trim(identityIds, true, true); - return identityIds; - } - - private void referencePerson(Business business, Wo wo) throws Exception { - Person person = business.person().pick(wo.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(wo.getPerson()); - } - WoPerson woPerson = WoPerson.copier.copy(person); - wo.setWoPerson(woPerson); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionOrder.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionOrder.java deleted file mode 100644 index 70975d8de4cb5db79021445222a0e4b87dbd0656..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ActionOrder.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.collections4.ListUtils; -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.exception.ExceptionAccessDenied; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WrapBoolean; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Unit; - -class ActionOrder extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag, String followFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Identity identity = business.identity().pick(flag); - if (null == identity) { - throw new ExceptionIdentityNotExist(flag); - } - /** 重新加载对象,之前是从缓存中取得 */ - identity = emc.find(identity.getId(), Identity.class); - Unit unit = business.unit().pick(identity.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(identity.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionAccessDenied(effectivePerson, unit); - } - Identity followIdentity = null; - if (!StringUtils.equals(followFlag, EMPTY_SYMBOL)) { - followIdentity = business.identity().pick(followFlag); - if (null == followIdentity) { - throw new ExceptionIdentityNotExist(followFlag); - } - /** 重新加载对象,之前是从缓存中取得 */ - followIdentity = emc.find(followIdentity.getId(), Identity.class); - if (followIdentity.equals(identity)) { - throw new ExceptionSameNotOrder(flag, followFlag); - } - } - List os = this.list(business, identity.getUnit()); - os = ListUtils.subtract(os, ListTools.toList(identity)); - /** 至少有2条数据才需要排序 */ - if (!os.isEmpty()) { - os = business.identity().sort(os); - if (null == followIdentity) { - os.add(identity); - } else { - List _sort = new ArrayList<>(); - for (Identity o : os) { - if (o.equals(followIdentity)) { - _sort.add(identity); - } - _sort.add(o); - } - os = _sort; - } - } - emc.beginTransaction(Identity.class); - int order = 1; - for (Identity o : os) { - o.setOrderNumber(order++); - } - emc.commit(); - Wo wo = new Wo(); - wo.setValue(true); - result.setData(wo); - ApplicationCache.notify(Identity.class); - ApplicationCache.notify(Unit.class); - return result; - } - } - - private List list(Business business, String unitId) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), unitId); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - return os; - } - - public static class Wo extends WrapBoolean { - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/BaseAction.java deleted file mode 100644 index 9a028dc3ba58cece25509fc78f7bd1d6726f0df8..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/BaseAction.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.List; -import java.util.Objects; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; - -abstract class BaseAction extends StandardJaxrsAction { - - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - protected boolean uniqueDuplicateWhenNotEmpty(Business business, Identity identity) throws Exception { - if (StringUtils.isNotEmpty(identity.getUnique())) { - if (business.entityManagerContainer().duplicateWithFlags(identity.getId(), Identity.class, - identity.getUnique())) { - return true; - } - } - return false; - } - - protected Unit topUnit(Business business, Unit unit) throws Exception { - if (Objects.equals(Unit.TOP_LEVEL, unit.getLevel())) { - return unit; - } - List os = business.unit().listSupNestedObject(unit); - return os.get(0); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionDuplicateUnique.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionDuplicateUnique.java deleted file mode 100644 index 0d099925feb7af6cadf558f59f87847ed03208fd..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionDuplicateUnique.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateUnique extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateUnique(String name, String unique) { - super("身份 {} 的唯一标识:{},不能和已有的标识冲突.", name, unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionExistInUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionExistInUnit.java deleted file mode 100644 index 2ed08e57f0655a6c737d1c8c9a7c39eb75950ccc..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionExistInUnit.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import com.x.base.core.project.exception.PromptException; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; - -class ExceptionExistInUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionExistInUnit(Person person, Unit unit) { - super("人员:{}, 在组织:{} 中的身份已存在.", person.getName(), unit.getName()); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionIdentityNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionIdentityNotExist.java deleted file mode 100644 index db4b9b2ad2ed52abf6944d16969ef2c125916de3..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionIdentityNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionIdentityNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionIdentityNotExist(String flag) { - super("身份:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionNameEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionNameEmpty.java deleted file mode 100644 index fd20d40ce341c94466c7be2a225831a490ec5571..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionNameEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameEmpty extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionNameEmpty() { - super("身份名称不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionPersonNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionPersonNotExist.java deleted file mode 100644 index e2b0f584785b9a02d53f683cda9a1933df4eb061..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionPersonNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPersonNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionPersonNotExist(String flag) { - super("人员:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionSameNotOrder.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionSameNotOrder.java deleted file mode 100644 index 8b8c49e52436a390bbe85d6a838e2a1691308e14..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionSameNotOrder.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionSameNotOrder extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionSameNotOrder(String flag, String otherFlag) { - super("无法对同一个身份进行排序:{}, :{}.", flag, otherFlag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionUnitNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionUnitNotExist.java deleted file mode 100644 index a49a4952ca6e59b88569608bc285ce34abc40c63..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/ExceptionUnitNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionUnitNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionUnitNotExist(String flag) { - super("组织:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/IdentityAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/IdentityAction.java deleted file mode 100644 index 3ee8788554c93712ff513b901534bbfd218cc64c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/identity/IdentityAction.java +++ /dev/null @@ -1,291 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.identity; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.google.gson.JsonElement; -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("identity") -@JaxrsDescribe("身份操作") -public class IdentityAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(IdentityAction.class); - - @JaxrsMethodDescribe(value = "获取身份.", action = ActionGet.class) - @GET - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("身份标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGet().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "创建身份.", action = ActionCreate.class) - @POST - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void create(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionCreate().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新身份.", action = ActionEdit.class) - @PUT - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void edit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("身份标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionEdit().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除身份,同时删除职务.", action = ActionDelete.class) - @DELETE - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void delete(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("身份标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDelete().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示身份,下一页.", action = ActionListNext.class) - @GET - @Path("list/{flag}/next/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listNext(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("身份标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListNext().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示身份,上一页.", action = ActionListPrev.class) - @GET - @Path("list/{flag}/prev/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPrev(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("身份标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPrev().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的人员,列示其所有的身份.", action = ActionListWithPerson.class) - @GET - @Path("list/person/{personFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithPerson(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("personFlag") String personFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithPerson().execute(effectivePerson, personFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的组织,列示其所有的身份.", action = ActionListWithUnit.class) - @GET - @Path("list/unit/{unitFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithUnit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("unitFlag") String unitFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithUnit().execute(effectivePerson, unitFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的组织职务名称,列示其所有的身份.", action = ActionListWithUnitDutyName.class) - @GET - @Path("list/unitduty/name/{unitDutyName}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithUnitDutyName(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织职务名称") @PathParam("unitDutyName") String unitDutyName) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithUnitDutyName().execute(effectivePerson, unitDutyName); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的组织和组织职务名称,列示其所有的身份.", action = ActionListWithUnitWithUnitDutyName.class) - @GET - @Path("list/{flag}/unitduty/name/{unitDutyName}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithUnitWithUnitDutyName(@Suspended final AsyncResponse asyncResponse, - @Context HttpServletRequest request, @JaxrsParameterDescribe("组织") @PathParam("flag") String flag, - @JaxrsParameterDescribe("组织职务名称") @PathParam("unitDutyName") String unitDutyName) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithUnitWithUnitDutyName().execute(effectivePerson, flag, unitDutyName); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取拼音首字母开始的身份.", action = ActionListPinyinInitial.class) - @PUT - @Path("list/pinyininitial") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPinyinInitial(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPinyinInitial().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据拼音或者首字母搜索.", action = ActionListLikePinyin.class) - @PUT - @Path("list/like/pinyin") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLikePinyin(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLikePinyin().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "进行模糊查询.", action = ActionListLike.class) - @PUT - @Path("list/like") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLike(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLike().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新身份.", action = ActionOrder.class) - @GET - @Path("{flag}/order/before/{followFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void order(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("身份标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("后续身份标识") @PathParam("followFlag") String followFlag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionOrder().execute(effectivePerson, flag, followFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionGetResult.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionGetResult.java deleted file mode 100644 index 29484e2eaf619873a3b1a9f4b97130efb6bb8c8a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionGetResult.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoFile; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -import net.sf.ehcache.Element; - -public class ActionGetResult extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(ActionGetResult.class); - - protected ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - logger.debug(effectivePerson, "flag:{}.", flag); - ActionResult result = new ActionResult<>(); - Element element = cache.get(flag); - if (null == element || (null == element.getObjectValue())) { - throw new ExceptionResultNotFound(flag); - } - CacheInputResult o = (CacheInputResult) element.getObjectValue(); - Wo wo = new Wo(o.getBytes(), this.contentType(true, o.getName()), this.contentDisposition(true, o.getName())); - result.setData(wo); - return result; - } - - public static class Wo extends WoFile { - - public Wo(byte[] bytes, String contentType, String contentDisposition) { - super(bytes, contentType, contentDisposition); - } - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionInput.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionInput.java deleted file mode 100644 index 88dd899225ca1584a517ef193eb7cf0572584ba5..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionInput.java +++ /dev/null @@ -1,338 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.Map.Entry; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.script.Bindings; -import javax.script.ScriptContext; -import javax.script.SimpleScriptContext; - -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.text.StringEscapeUtils; -import org.apache.poi.ss.usermodel.Cell; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.ss.usermodel.Sheet; -import org.apache.poi.ss.util.CellUtil; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.entity.type.GenderType; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.script.ScriptFactory; -import com.x.base.core.project.tools.Crypto; -import com.x.base.core.project.tools.DateTools; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; -import com.x.organization.core.entity.Role; - -import net.sf.ehcache.Element; - -class ActionInput extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(ActionInput.class); - - ActionResult execute(EffectivePerson effectivePerson, byte[] bytes, FormDataContentDisposition disposition) - throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create(); - InputStream is = new ByteArrayInputStream(bytes); - XSSFWorkbook workbook = new XSSFWorkbook(is); - ByteArrayOutputStream os = new ByteArrayOutputStream()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - this.scan(business, workbook); - String name = "person_" + DateTools.formatDate(new Date()) + ".xlsx"; - workbook.write(os); - CacheInputResult cacheInputResult = new CacheInputResult(); - cacheInputResult.setName(name); - cacheInputResult.setBytes(os.toByteArray()); - String flag = StringTools.uniqueToken(); - cache.put(new Element(flag, cacheInputResult)); - ApplicationCache.notify(Person.class); - ApplicationCache.notify(Group.class); - ApplicationCache.notify(Role.class); - ApplicationCache.notify(Identity.class); - ApplicationCache.notify(PersonAttribute.class); - Wo wo = new Wo(); - wo.setFlag(flag); - result.setData(wo); - return result; - } - } - - private void scan(Business business, XSSFWorkbook workbook) throws Exception { - Sheet sheet = workbook.getSheetAt(0); - PersonSheetConfigurator configurator = new PersonSheetConfigurator(workbook, sheet); - List people = this.scanPerson(configurator, sheet); - this.concretePassword(people); - this.persist(business, workbook, configurator, people); - } - - private void concretePassword(List people) throws Exception { - Pattern pattern = Pattern.compile(com.x.base.core.project.config.Person.REGULAREXPRESSION_SCRIPT); - Matcher matcher = pattern.matcher(Config.person().getPassword()); - if (matcher.matches()) { - String eval = ScriptFactory.functionalization(StringEscapeUtils.unescapeJson(matcher.group(1))); - ScriptContext scriptContext = new SimpleScriptContext(); - Bindings bindings = scriptContext.getBindings(ScriptContext.ENGINE_SCOPE); - for (PersonItem o : people) { - bindings.put("person", o); - String pass = ScriptFactory.scriptEngine.eval(eval, scriptContext).toString(); - o.setPassword(pass); - } - } else { - for (PersonItem o : people) { - o.setPassword(Config.person().getPassword()); - } - } - for (PersonItem o : people) { - o.setPassword(Crypto.encrypt(o.getPassword(), Config.token().getKey())); - } - } - - private List scanPerson(PersonSheetConfigurator configurator, Sheet sheet) throws Exception { - if (null == configurator.getNameColumn()) { - throw new ExceptionNameColumnEmpty(); - } - if (null == configurator.getMobileColumn()) { - throw new ExceptionMobileColumnEmpty(); - } - List people = new ArrayList<>(); - for (int i = configurator.getFirstRow(); i <= configurator.getLastRow(); i++) { - Row row = sheet.getRow(i); - if (null != row) { - String name = configurator.getCellStringValue(row.getCell(configurator.getNameColumn())); - String mobile = configurator.getCellStringValue(row.getCell(configurator.getMobileColumn())); - if (StringUtils.isNotEmpty(name) && StringUtils.isNotEmpty(mobile)) { - PersonItem personItem = new PersonItem(); - personItem.setRow(i); - name = StringUtils.trimToEmpty(name); - mobile = StringUtils.trimToEmpty(mobile); - GenderType genderType = GenderType.d; - if (null != configurator.getGenderTypeColumn()) { - String gender = configurator - .getCellStringValue(row.getCell(configurator.getGenderTypeColumn())); - gender = StringUtils.trimToEmpty(gender); - if (genderTypeMaleItems.contains(gender)) { - genderType = GenderType.m; - } - if (genderTypeFemaleItems.contains(gender)) { - genderType = GenderType.f; - } - } - personItem.setName(name); - personItem.setGenderType(genderType); - personItem.setMobile(mobile); - if (null != configurator.getEmployeeColumn()) { - String employee = configurator - .getCellStringValue(row.getCell(configurator.getEmployeeColumn())); - employee = StringUtils.trimToEmpty(employee); - personItem.setEmployee(employee); - } - if (null != configurator.getUniqueColumn()) { - String unique = configurator.getCellStringValue(row.getCell(configurator.getUniqueColumn())); - unique = StringUtils.trimToEmpty(unique); - personItem.setUnique(unique); - } - if (null != configurator.getMailColumn()) { - String mail = configurator.getCellStringValue(row.getCell(configurator.getMailColumn())); - mail = StringUtils.trimToEmpty(mail); - personItem.setMail(mail); - } - if (!configurator.getAttributes().isEmpty()) { - for (Entry en : configurator.getAttributes().entrySet()) { - String value = configurator.getCellStringValue(row.getCell(en.getValue())); - value = StringUtils.trimToEmpty(value); - personItem.getAttributes().put(en.getKey(), value); - } - } - people.add(personItem); - logger.debug("scan person:{}.", personItem); - } - } - } - return people; - } - - private void persist(Business business, XSSFWorkbook workbook, PersonSheetConfigurator configurator, - List people) throws Exception { - EntityManagerContainer emc = business.entityManagerContainer(); - Person p = null; - boolean validate = true; - for (PersonItem o : people) { - logger.debug("正在校验用户:{}.", o.getName()); - if (StringUtils.isEmpty(o.getName())) { - this.setMemo(workbook, configurator, o, "姓名不能为空."); - validate = false; - continue; - } - if (!Config.person().isMobile(o.getMobile())) { - this.setMemo(workbook, configurator, o, "手机号为空或者格式错误."); - validate = false; - continue; - } - if (StringUtils.isNotEmpty(o.getMail())) { - if (!StringTools.isMail(o.getMail())) { - this.setMemo(workbook, configurator, o, "邮件地址格式错误."); - validate = false; - continue; - } - } - } - if (validate) { - for (PersonItem o : people) { - for (PersonItem item : people) { - if (o != item) { -// if (StringUtils.equals(o.getName(), item.getName())) { -// this.setMemo(workbook, configurator, o, "姓名冲突."); -// validate = false; -// continue; -// } - if (StringUtils.equals(o.getMobile(), item.getMobile())) { - this.setMemo(workbook, configurator, o, "手机号冲突,本次导入中不唯一."); - validate = false; - continue; - } - if (StringUtils.isNotEmpty(o.getMail()) && StringUtils.equals(o.getMail(), item.getMail())) { - this.setMemo(workbook, configurator, o, "邮件地址冲突,本次导入中不唯一."); - validate = false; - continue; - } - if (StringUtils.isNotEmpty(o.getEmployee()) - && StringUtils.equals(o.getEmployee(), item.getEmployee())) { - this.setMemo(workbook, configurator, o, "员工编号冲突,本次导入中不唯一."); - validate = false; - continue; - } - if (StringUtils.isNotEmpty(o.getUnique()) - && StringUtils.equals(o.getUnique(), item.getUnique())) { - this.setMemo(workbook, configurator, o, "唯一编码冲突,本次导入中不唯一."); - validate = false; - continue; - } - } - } - } - if (validate) { - for (PersonItem o : people) { -// p = emc.flag(o.getName(), Person.class); -// if (null != p) { -// this.setMemo(workbook, configurator, o, -// "姓名: " + o.getName() + " 与已经存在用户: " + p.getName() + " 冲突."); -// validate = false; -// continue; -// } - p = emc.flag(o.getMobile(), Person.class); - if (null != p) { - this.setMemo(workbook, configurator, o, - "手机号: " + o.getMobile() + " 与已经存在用户: " + p.getName() + " 冲突."); - validate = false; - continue; - } - if (StringUtils.isNotEmpty(o.getMail())) { - if (!StringTools.isMail(o.getMail())) { - this.setMemo(workbook, configurator, o, "邮件地址格式错误."); - validate = false; - continue; - } - p = emc.flag(o.getMail(), Person.class); - if (null != p) { - this.setMemo(workbook, configurator, o, - "邮件地址: " + o.getMail() + " 与已经存在用户: " + p.getName() + " 冲突."); - validate = false; - continue; - } - } - if (StringUtils.isNotEmpty(o.getUnique())) { - p = emc.flag(o.getUnique(), Person.class); - if (null != p) { - this.setMemo(workbook, configurator, o, - "唯一编码: " + o.getUnique() + " 与已经存在用户: " + p.getName() + " 冲突."); - validate = false; - continue; - } - } - if (StringUtils.isNotEmpty(o.getEmployee())) { - p = emc.flag(o.getEmployee(), Person.class); - if (null != p) { - this.setMemo(workbook, configurator, o, - "员工编号: " + o.getEmployee() + " 与已经存在用户: " + p.getName() + " 冲突."); - validate = false; - continue; - } - } - this.setMemo(workbook, configurator, o, "校验通过."); - } - } - if (validate) { - for (List list : ListTools.batch(people, 200)) { - emc.beginTransaction(Person.class); - emc.beginTransaction(PersonAttribute.class); - for (PersonItem o : list) { - logger.debug("正在保存用户:{}.", o.getName()); - Person person = new Person(); - o.copyTo(person); - emc.persist(person, CheckPersistType.all); - for (Entry en : o.getAttributes().entrySet()) { - if (StringUtils.isNotEmpty(en.getValue())) { - PersonAttribute personAttribute = new PersonAttribute(); - personAttribute.setName(en.getKey()); - personAttribute.setAttributeList(new ArrayList()); - personAttribute.getAttributeList().add(en.getValue()); - personAttribute.setPerson(person.getId()); - emc.persist(personAttribute); - } - } - this.setMemo(workbook, configurator, o, "已导入."); - } - emc.commit(); - } - } - } - } - - private void setMemo(XSSFWorkbook workbook, PersonSheetConfigurator configurator, PersonItem personItem, - String memo) { - Sheet sheet = workbook.getSheetAt(configurator.getSheetIndex()); - Row row = sheet.getRow(personItem.getRow()); - Cell cell = CellUtil.getCell(row, configurator.getMemoColumn()); - cell.setCellValue(memo); - } - - public static class Wo extends GsonPropertyObject { - - @FieldDescribe("返回的结果标识") - private String flag; - - public String getFlag() { - return flag; - } - - public void setFlag(String flag) { - this.flag = flag; - } - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionTemplate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionTemplate.java deleted file mode 100644 index 5402a8dbd80033d5aa9e6778a12f606160a7ed03..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ActionTemplate.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import java.io.ByteArrayOutputStream; -import java.util.stream.IntStream; - -import org.apache.poi.ss.usermodel.Cell; -import org.apache.poi.ss.usermodel.CellStyle; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.xssf.usermodel.XSSFSheet; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; - -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoFile; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -public class ActionTemplate extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(ActionTemplate.class); - - private static String name = "input_person_template.xlsx"; - - protected ActionResult execute(EffectivePerson effectivePerson) throws Exception { - try (XSSFWorkbook workbook = new XSSFWorkbook(); ByteArrayOutputStream os = new ByteArrayOutputStream()) { - ActionResult result = new ActionResult<>(); - this.template(workbook); - workbook.write(os); - Wo wo = new Wo(os.toByteArray(), this.contentType(true, name), this.contentDisposition(true, name)); - result.setData(wo); - return result; - } - } - - private void template(XSSFWorkbook workbook) throws Exception { - XSSFSheet sheet = workbook.createSheet("人员"); - Row row = sheet.createRow(0); - Cell cell = row.createCell(0); - cell.setCellValue("姓名"); - cell = row.createCell(1); - cell.setCellValue("手机号"); - cell = row.createCell(2); - cell.setCellValue("电子邮件"); - cell = row.createCell(3); - cell.setCellValue("唯一编码"); - cell = row.createCell(4); - cell.setCellValue("员工号"); - cell = row.createCell(5); - cell.setCellValue("性别"); - cell = row.createCell(6); - cell.setCellValue("(地址)"); - CellStyle cellStyle = workbook.createCellStyle(); - cellStyle.setWrapText(true); - IntStream.rangeClosed(0, 6).forEach(i -> { - sheet.setDefaultColumnStyle(i, cellStyle); - }); - } - - public static class Wo extends WoFile { - - public Wo(byte[] bytes, String contentType, String contentDisposition) { - super(bytes, contentType, contentDisposition); - } - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/BaseAction.java deleted file mode 100644 index e7bcf46b00a6a8d8ae9eb26dc7640633b6431328..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/BaseAction.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import java.util.Arrays; -import java.util.List; - -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; - -import net.sf.ehcache.Ehcache; - -abstract class BaseAction extends StandardJaxrsAction { - - protected static List genderTypeFemaleItems = Arrays.asList(new String[] { "f", "女", "female" }); - protected static List genderTypeMaleItems = Arrays.asList(new String[] { "m", "男", "male" }); - - protected Ehcache cache = ApplicationCache.instance().getCache(CacheInputResult.class); - - public static class CacheInputResult { - - private String name; - - private byte[] bytes; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public byte[] getBytes() { - return bytes; - } - - public void setBytes(byte[] bytes) { - this.bytes = bytes; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionMobileColumnEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionMobileColumnEmpty.java deleted file mode 100644 index a2c51548eaae78ceb2b3c30177afa40f46ebbe0f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionMobileColumnEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionMobileColumnEmpty extends PromptException { - - private static final long serialVersionUID = -2139584911736169462L; - - ExceptionMobileColumnEmpty() { - super("手机号列不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionNameColumnEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionNameColumnEmpty.java deleted file mode 100644 index 87ecbd6761e87ff0653f34775602d26da79b8b83..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionNameColumnEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameColumnEmpty extends PromptException { - - private static final long serialVersionUID = -2139584911736169462L; - - ExceptionNameColumnEmpty() { - super("姓名列不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionResultNotFound.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionResultNotFound.java deleted file mode 100644 index ad98c9f7104eb6c33836f7cd4f118d4b47946533..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionResultNotFound.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionResultNotFound extends PromptException { - - private static final long serialVersionUID = -2139584911736169462L; - - ExceptionResultNotFound(String flag) { - super("找不到导入结果:{}.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionSufficientPermission.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionSufficientPermission.java deleted file mode 100644 index 357ba04c55820daefb2c3a8ab316ebd1ddc7fa9b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/ExceptionSufficientPermission.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionSufficientPermission extends PromptException { - - private static final long serialVersionUID = 7237855733312562652L; - - ExceptionSufficientPermission(String name) { - super("person: {} has sufficient permission.", name); - - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/InputPersonAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/InputPersonAction.java deleted file mode 100644 index b832b13a2b962f569838bb29411d9871198d232f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/InputPersonAction.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.glassfish.jersey.media.multipart.FormDataParam; - -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("inputperson") -@JaxrsDescribe("导入人员") -public class InputPersonAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(InputPersonAction.class); - - @JaxrsMethodDescribe(value = "上传Excel导入人员.", action = ActionInput.class) - @POST - @Consumes(MediaType.MULTIPART_FORM_DATA) - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void input(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @FormDataParam(FILE_FIELD) final byte[] bytes, - @JaxrsParameterDescribe("Excel文件") @FormDataParam(FILE_FIELD) final FormDataContentDisposition disposition) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionInput().execute(effectivePerson, bytes, disposition); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取导入人员模版.", action = ActionTemplate.class) - @GET - @Path("template") - @Consumes(MediaType.APPLICATION_JSON) - public void template(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionTemplate().execute(effectivePerson); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取导入人员结果.", action = ActionGetResult.class) - @GET - @Path("result/flag/{flag}") - @Consumes(MediaType.APPLICATION_JSON) - public void getResult(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("导入文件返回的结果标记") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGetResult().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/PersonItem.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/PersonItem.java deleted file mode 100644 index d30b3c5dccc5f07ae85c02eae12f09b7310cba5b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/PersonItem.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import java.util.HashMap; -import java.util.Map; - -import com.x.base.core.entity.type.GenderType; -import com.x.base.core.project.gson.GsonPropertyObject; - -public class PersonItem extends GsonPropertyObject { - - private String name; - private GenderType genderType; - private String mail; - private String unique; - private String employee; - private String mobile; - private String password; - - private Integer row; - - private Map attributes = new HashMap<>(); - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public GenderType getGenderType() { - return genderType; - } - - public void setGenderType(GenderType genderType) { - this.genderType = genderType; - } - - public String getMail() { - return mail; - } - - public void setMail(String mail) { - this.mail = mail; - } - - public String getUnique() { - return unique; - } - - public void setUnique(String unique) { - this.unique = unique; - } - - public String getEmployee() { - return employee; - } - - public void setEmployee(String employee) { - this.employee = employee; - } - - public String getMobile() { - return mobile; - } - - public void setMobile(String mobile) { - this.mobile = mobile; - } - - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public Integer getRow() { - return row; - } - - public void setRow(Integer row) { - this.row = row; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/PersonSheetConfigurator.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/PersonSheetConfigurator.java deleted file mode 100644 index 0a5491024d6fa12252dfad9edf3bf99062e729b9..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/inputperson/PersonSheetConfigurator.java +++ /dev/null @@ -1,149 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.inputperson; - -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import org.apache.commons.lang3.BooleanUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.poi.ss.usermodel.Cell; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.ss.usermodel.Sheet; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; - -import com.x.base.core.project.gson.GsonPropertyObject; - -public class PersonSheetConfigurator extends GsonPropertyObject { - - private static final Pattern attributePattern = Pattern.compile("^\\((.+?)\\)$"); - - private Integer sheetIndex; - private Integer memoColumn; - private Integer firstRow; - private Integer lastRow; - - private Integer nameColumn; - private Integer uniqueColumn; - private Integer employeeColumn; - private Integer mobileColumn; - private Integer mailColumn; - private Integer genderTypeColumn; - - private Map attributes = new HashMap<>(); - - public PersonSheetConfigurator(XSSFWorkbook workbook, Sheet sheet) { - this.sheetIndex = workbook.getSheetIndex(sheet); - Row row = sheet.getRow(sheet.getFirstRowNum()); - this.firstRow = sheet.getFirstRowNum() + 1; - this.lastRow = sheet.getLastRowNum(); - memoColumn = row.getLastCellNum() + 1; - for (int i = row.getFirstCellNum(); i <= row.getLastCellNum(); i++) { - Cell cell = row.getCell(i); - if (null != cell) { - String str = this.getCellStringValue(cell); - if (StringUtils.isNotEmpty(str)) { - if (nameItems.contains(str)) { - this.nameColumn = i; - } else if (uniqueItems.contains(str)) { - this.uniqueColumn = i; - } else if (employeeItems.contains(str)) { - this.employeeColumn = i; - } else if (mobileItems.contains(str)) { - this.mobileColumn = i; - } else if (mailItems.contains(str)) { - this.mailColumn = i; - } else if (genderTypeItems.contains(str)) { - this.genderTypeColumn = i; - } else { - Matcher matcher = attributePattern.matcher(str); - if (matcher.matches()) { - String attribute = matcher.group(1); - this.attributes.put(attribute, new Integer(i)); - } - } - } - } - } - } - - private static List nameItems = Arrays.asList(new String[] { "姓名", "name" }); - private static List uniqueItems = Arrays.asList(new String[] { "唯一编码", "编码", "unique" }); - private static List employeeItems = Arrays.asList(new String[] { "员工号", "员工编号", "employee" }); - private static List mobileItems = Arrays.asList(new String[] { "手机号", "手机", "联系电话", "phone", "mobile" }); - private static List mailItems = Arrays.asList(new String[] { "电子邮件", "邮件", "邮箱", "邮件地址", "mail", "email" }); - private static List genderTypeItems = Arrays.asList(new String[] { "性别", "gender", "genderType" }); - - public String getCellStringValue(Cell cell) { - if (null != cell) { - switch (cell.getCellType()) { - case BLANK: - return ""; - case BOOLEAN: - return BooleanUtils.toString(cell.getBooleanCellValue(), "true", "false", "false"); - case ERROR: - return ""; - case FORMULA: - return ""; - case NUMERIC: - Double d = cell.getNumericCellValue(); - Long l = d.longValue(); - if (l.doubleValue() == d) { - return l.toString(); - } else { - return d.toString(); - } - default: - return cell.getStringCellValue(); - } - } - return ""; - } - - public Integer getMemoColumn() { - return memoColumn; - } - - public Integer getNameColumn() { - return nameColumn; - } - - public Integer getUniqueColumn() { - return uniqueColumn; - } - - public Integer getEmployeeColumn() { - return employeeColumn; - } - - public Integer getMobileColumn() { - return mobileColumn; - } - - public Map getAttributes() { - return attributes; - } - - public Integer getFirstRow() { - return firstRow; - } - - public Integer getLastRow() { - return lastRow; - } - - public Integer getGenderTypeColumn() { - return genderTypeColumn; - } - - public Integer getMailColumn() { - return mailColumn; - } - - public Integer getSheetIndex() { - return sheetIndex; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/ActionLoginRecord.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/ActionLoginRecord.java deleted file mode 100644 index 34887894f9493645e1415a501b58a2f9f411d5c9..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/ActionLoginRecord.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.loginrecord; - -import java.io.ByteArrayOutputStream; -import java.util.Date; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; - -import org.apache.poi.ss.usermodel.Cell; -import org.apache.poi.ss.usermodel.CellStyle; -import org.apache.poi.ss.usermodel.CreationHelper; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.ss.usermodel.Sheet; -import org.apache.poi.ss.usermodel.Workbook; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoFile; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.DateTools; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Person_; - -class ActionLoginRecord extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(ActionLoginRecord.class); - - ActionResult execute(EffectivePerson effectivePerson, Boolean stream) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create(); - Workbook workbook = new XSSFWorkbook(); - ByteArrayOutputStream output = new ByteArrayOutputStream()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Sheet sheet = workbook.createSheet("loginRecord"); - Row row = sheet.createRow(0); - row.createCell(0).setCellValue("name"); - row.createCell(1).setCellValue("lastLoginTime"); - row.createCell(2).setCellValue("lastLoginAddress"); - row.createCell(3).setCellValue("lastLoginClient"); - int line = 0; - Cell cell = null; - CellStyle dateCellStyle = workbook.createCellStyle(); - CreationHelper createHelper = workbook.getCreationHelper(); - dateCellStyle.setDataFormat(createHelper.createDataFormat().getFormat(DateTools.format_yyyyMMdd)); - for (Person o : this.list(business)) { - row = sheet.createRow(++line); - row.createCell(0).setCellValue(o.getName()); - cell = row.createCell(1); - if (null == o.getLastLoginTime()) { - cell.setCellValue(""); - } else { - cell.setCellValue(o.getLastLoginTime()); - cell.setCellStyle(dateCellStyle); - } - row.createCell(2).setCellValue(o.getLastLoginAddress()); - row.createCell(3).setCellValue(o.getLastLoginClient()); - } - String name = "loginRecord_" + DateTools.formatDate(new Date()) + ".xlsx"; - workbook.write(output); - Wo wo = new Wo(output.toByteArray(), this.contentType(stream, name), this.contentDisposition(stream, name)); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoFile { - - public Wo(byte[] bytes, String contentType, String contentDisposition) { - super(bytes, contentType, contentDisposition); - } - - } - - private List list(Business business) throws Exception { - EntityManager em = business.entityManagerContainer().get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Person.class); - cq.select(root.get(Person_.id)); - List ids = em.createQuery(cq).getResultList(); - return business.entityManagerContainer().fetch(ids, Person.class, ListTools.toList(Person.name_FIELDNAME, - Person.lastLoginTime_FIELDNAME, Person.lastLoginAddress_FIELDNAME, Person.lastLoginClient_FIELDNAME)); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/BaseAction.java deleted file mode 100644 index 75cb3e30cdf6eba881e0a9cdee406911bcbee85a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/BaseAction.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.loginrecord; - -import com.x.base.core.project.jaxrs.StandardJaxrsAction; - -abstract class BaseAction extends StandardJaxrsAction { - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/LoginRecordAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/LoginRecordAction.java deleted file mode 100644 index 64188489f1e7958e39a6db68b31ec2af081b110e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/loginrecord/LoginRecordAction.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.loginrecord; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("loginrecord") -@JaxrsDescribe("登录日志") -public class LoginRecordAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(LoginRecordAction.class); - - @JaxrsMethodDescribe(value = "获取用户登录记录的Excel.", action = ActionLoginRecord.class) - @GET - @Path("{stream}") - @Consumes(MediaType.APPLICATION_JSON) - public void loginRecord(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("是否采用流格式直接作为附件下载") @PathParam("stream") Boolean stream) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionLoginRecord().execute(effectivePerson, stream); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionCheckPassword.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionCheckPassword.java deleted file mode 100644 index 797030d5b0347d9b15425f83c73501b1aba0de5a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionCheckPassword.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.config.Config; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.jaxrs.WrapString; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -class ActionCheckPassword extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(ActionCheckPassword.class); - - ActionResult execute(String password) throws Exception { - ActionResult result = new ActionResult<>(); - Wo wo = new Wo(); - if (!password.matches(Config.person().getPasswordRegex())) { - throw new ExceptionInvalidPassword(Config.person().getPasswordRegexHint()); - } - result.setData(wo); - return result; - } - - public static class Wo extends WrapString { - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionCreate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionCreate.java deleted file mode 100644 index 3c7203bf47de1cfbfe6cd5a144aadce27f30da25..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionCreate.java +++ /dev/null @@ -1,175 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.Applications; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.connection.CipherConnectionAction; -import com.x.base.core.project.exception.ExceptionAccessDenied; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; - -class ActionCreate extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(ActionCreate.class); - - ActionResult execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - Person person = new Person(); - Wi.copier.copy(wi, person); - - if ((!business.hasAnyRole(effectivePerson, OrganizationDefinition.OrganizationManager, - OrganizationDefinition.PersonManager, OrganizationDefinition.Manager)) - && (!effectivePerson.isManager()) && (!effectivePerson.isCipher())) { - throw new ExceptionAccessDenied(effectivePerson); - } - - if ((!Config.token().isInitialManager(effectivePerson.getDistinguishedName())) - && (!effectivePerson.isCipher())) { - Person current = business.person().pick(effectivePerson.getDistinguishedName()); - List topUnits = business.unit().pick(current.getTopUnitList()); - person.setTopUnitList(ListTools.extractField(topUnits, Unit.id_FIELDNAME, String.class, true, true)); - } else { - person.setTopUnitList(new ArrayList()); - } - this.checkName(business, person.getName(), person.getId()); - this.checkMobile(business, person.getMobile(), person.getId()); - this.checkEmployee(business, person.getEmployee(), person.getId()); - if (StringUtils.isNotEmpty(person.getUnique())) { - this.checkUnique(business, person.getUnique(), person.getId()); - } - this.checkMail(business, person.getMail(), person.getId()); - if (StringUtils.isNotEmpty(wi.getSuperior())) { - Person superior = business.person().pick(wi.getSuperior()); - if (null == superior) { - throw new ExceptionSuperiorNotExist(wi.getSuperior()); - } - person.setSuperior(superior.getId()); - } - - /** 不设置默认头像,可以通过为空直接显示默认头像 */ - if (StringUtils.isNotEmpty(wi.getPassword())) { - business.person().setPassword(person, wi.getPassword()); - } else { - business.person().setPassword(person, this.initPassword(business, person)); - } - /** 设置默认管理员 */ - this.convertControllerList(effectivePerson, business, person); - emc.beginTransaction(Person.class); - emc.persist(person, CheckPersistType.all); - emc.commit(); - /** 刷新缓存 */ - ApplicationCache.notify(Person.class); - /** 通知x_collect_service_transmit同步数据到collect */ - business.instrument().collect().person(); - - /**创建 组织变更org消息通信 */ - //createMessageCommunicate(person, effectivePerson); - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("add", "person", person, effectivePerson); - - Wo wo = new Wo(); - wo.setId(person.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - - } - - public static class Wi extends Person { - - private static final long serialVersionUID = 1571810726944802231L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Person.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, Person.icon_FIELDNAME, Person.pinyin_FIELDNAME, - Person.pinyinInitial_FIELDNAME, Person.password_FIELDNAME, Person.passwordExpiredTime_FIELDNAME, - Person.changePasswordTime_FIELDNAME, Person.lastLoginTime_FIELDNAME, - Person.lastLoginAddress_FIELDNAME, Person.lastLoginClient_FIELDNAME)); - - } - - private void convertControllerList(EffectivePerson effectivePerson, Business business, Person person) - throws Exception { - List list = new ArrayList<>(); - if (effectivePerson.isManager()) { - list.add(effectivePerson.getDistinguishedName()); - } - if (ListTools.isNotEmpty(person.getControllerList())) { - list.addAll(person.getControllerList()); - } - if (ListTools.isNotEmpty(list)) { - List os = business.person().pick(list); - List ids = ListTools.extractProperty(os, JpaObject.id_FIELDNAME, String.class, true, true); - ids.remove(person.getId()); - person.setControllerList(ids); - } - } - - /**创建 组织变更org消息通信 */ - private boolean createMessageCommunicate(Person person, EffectivePerson effectivePerson) { - try{ - Gson gson = new Gson(); - String strPerson = gson.toJson(person); - OrgMessage orgMessage = new OrgMessage(); - - orgMessage.setOperType("add"); - orgMessage.setOrgType("person"); - orgMessage.setOperUerId(effectivePerson.getDistinguishedName()); - orgMessage.setOperDataId(person.getId()); - orgMessage.setReceiveSystem(""); - orgMessage.setConsumed(false); - orgMessage.setConsumedModule(""); - - OrgBodyMessage orgBodyMessage = new OrgBodyMessage(); - orgBodyMessage.setOriginalData(strPerson); - orgMessage.setBody( gson.toJson(orgBodyMessage)); - - String path ="org/create"; - //String address = "http://127.0.0.1:20020/x_message_assemble_communicate/jaxrs/org/create"; - //ActionResponse resp = CipherConnectionAction.post(false, address, body); - - ActionResponse resp = ThisApplication.context().applications() - .postQuery(x_message_assemble_communicate.class, path, orgMessage); - - String mess = resp.getMessage(); - String data = resp.getData().toString(); - return true; - }catch(Exception e) { - logger.print(e.toString()); - return false; - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionDelete.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionDelete.java deleted file mode 100644 index c5ed90cb73eefb60426187d42c8302178a21e85f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionDelete.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.google.gson.Gson; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.Applications; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.exception.ExceptionAccessDenied; -import com.x.base.core.project.exception.ExceptionEntityNotExist; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; -import com.x.organization.core.entity.PersonAttribute_; -import com.x.organization.core.entity.Person_; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; -import com.x.organization.core.entity.Unit_; - -class ActionDelete extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionDelete.class); - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - if (Config.token().isInitialManager(flag)) { - throw new ExceptionDenyDeleteInitialManager(); - } else { - Business business = new Business(emc); - Person person = business.person().pick(flag); - if (null == person) { - throw new ExceptionEntityNotExist(flag, Person.class); - } - /** 从内存中取到人 */ - person = emc.find(person.getId(), Person.class); - if (!this.editable(business, effectivePerson, person)) { - throw new ExceptionAccessDenied(effectivePerson); - } - List identities = this.listIdentity(business, person); - /** 删除身份组织职务成员,提交后才可以删除身份 */ - emc.beginTransaction(UnitDuty.class); - this.removeMemberOfUnitDuty(business, identities); - emc.commit(); - /** 删除身份 */ - emc.beginTransaction(Identity.class); - for (Identity o : identities) { - emc.remove(o, CheckRemoveType.all); - } - emc.commit(); - /** 删除个人属性 */ - emc.beginTransaction(PersonAttribute.class); - this.removePersonAttribute(business, person); - /** 删除群组成员 */ - emc.beginTransaction(Group.class); - this.removeMemberOfGroup(business, person); - /** 删除角色成员 */ - emc.beginTransaction(Role.class); - this.removeMemberOfRole(business, person); - /** 删除组织的管理个人以及继承的管理个人 */ - emc.beginTransaction(Unit.class); - this.removeMemberOfUnitController(business, person); - /** 删除个人管理者成员 */ - this.removeMemberOfPersonController(business, person); - /** 删除汇报人员为将要删除的人 */ - this.removeMemberOfPersonSuperior(business, person); - emc.beginTransaction(Person.class); - /** 先进行一次提交,通过check */ - emc.commit(); - emc.beginTransaction(Person.class); - emc.remove(person, CheckRemoveType.all); - emc.commit(); - ApplicationCache.notify(Person.class); - /** 通知x_collect_service_transmit同步数据到collect */ - business.instrument().collect().person(); - - /**创建 组织变更org消息通信 */ - //createMessageCommunicate(person, effectivePerson); - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("delete", "person", person, effectivePerson); - - Wo wo = new Wo(); - wo.setId(person.getId()); - result.setData(wo); - } - return result; - } - } - - public static class Wo extends WoId { - - } - - private List listIdentity(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.person), person.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - return os; - } - - private void removeMemberOfUnitDuty(Business business, List identities) throws Exception { - List ids = ListTools.extractProperty(identities, JpaObject.id_FIELDNAME, String.class, true, true); - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = root.get(UnitDuty_.identityList).in(ids); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - for (UnitDuty o : os) { - o.getIdentityList().removeAll(ids); - } - } - - private void removeMemberOfUnitController(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.isMember(person.getId(), root.get(Unit_.controllerList)); - p = cb.or(cb.isMember(person.getId(), root.get(Unit_.inheritedControllerList))); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - for (Unit o : os) { - o.getControllerList().remove(person.getId()); - o.getInheritedControllerList().remove(person.getId()); - } - } - - private void removeMemberOfPersonController(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - Predicate p = cb.isMember(person.getId(), root.get(Person_.controllerList)); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - for (Person o : os) { - o.getControllerList().remove(person.getId()); - } - } - - private void removeMemberOfPersonSuperior(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - Predicate p = cb.equal(root.get(Person_.superior), person.getId()); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - for (Person o : os) { - o.setSuperior(""); - } - } - - private void removePersonAttribute(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(PersonAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(PersonAttribute.class); - Root root = cq.from(PersonAttribute.class); - Predicate p = cb.equal(root.get(PersonAttribute_.person), person.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (PersonAttribute o : os) { - business.entityManagerContainer().remove(o, CheckRemoveType.all); - } - } - - private void removeMemberOfGroup(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = cb.isMember(person.getId(), root.get(Group_.personList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (Group o : os) { - o.getPersonList().remove(person.getId()); - } - } - - private void removeMemberOfRole(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = cb.isMember(person.getId(), root.get(Role_.personList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (Role o : os) { - o.getPersonList().remove(person.getId()); - } - } - - /**创建 组织变更org消息通信 */ - private boolean createMessageCommunicate(Person person, EffectivePerson effectivePerson) { - try{ - Gson gson = new Gson(); - String strPerson = gson.toJson(person); - OrgMessage orgMessage = new OrgMessage(); - - orgMessage.setOperType("delete"); - orgMessage.setOrgType("person"); - orgMessage.setOperUerId(effectivePerson.getDistinguishedName()); - orgMessage.setOperDataId(person.getId()); - orgMessage.setReceiveSystem(""); - orgMessage.setConsumed(false); - orgMessage.setConsumedModule(""); - - OrgBodyMessage orgBodyMessage = new OrgBodyMessage(); - orgBodyMessage.setOriginalData(strPerson); - orgMessage.setBody( gson.toJson(orgBodyMessage)); - - Applications applications = new Applications(); - String path ="org/create"; - //String address = "http://127.0.0.1:20020/x_message_assemble_communicate/jaxrs/org/create"; - //ActionResponse resp = CipherConnectionAction.post(false, address, body); - - ActionResponse resp = ThisApplication.context().applications() - .postQuery(x_message_assemble_communicate.class, path, orgMessage); - - String mess = resp.getMessage(); - String data = resp.getData().toString(); - return true; - }catch(Exception e) { - logger.print(e.toString()); - return false; - } - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionEdit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionEdit.java deleted file mode 100644 index d68c6b6358e2bc3c166de0f902ae22b61344d6be..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionEdit.java +++ /dev/null @@ -1,167 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.Applications; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.exception.ExceptionAccessDenied; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; - -class ActionEdit extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionEdit.class); - - ActionResult execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - Person person = business.person().pick(flag); - if (null == person) { - throw new ExceptionPersonNotExist(flag); - } - if (!this.editable(business, effectivePerson, person)) { - throw new ExceptionAccessDenied(effectivePerson); - } - Wi.copier.copy(wi, person); - - this.checkName(business, person.getName(), person.getId()); - this.checkMobile(business, person.getMobile(), person.getId()); - this.checkEmployee(business, person.getEmployee(), person.getId()); - if (StringUtils.isNotEmpty(person.getUnique())) { - this.checkUnique(business, person.getUnique(), person.getId()); - } - this.checkMail(business, person.getMail(), person.getId()); - if (StringUtils.isNotEmpty(wi.getSuperior())) { - Person superior = business.person().pick(wi.getSuperior()); - if (null == superior) { - throw new ExceptionSuperiorNotExist(wi.getSuperior()); - } - person.setSuperior(superior.getId()); - } - this.convertControllerList(effectivePerson, business, person); - if (ListTools.isNotEmpty(person.getTopUnitList())) { - List topUnits = business.unit().pick(person.getTopUnitList()); - person.setTopUnitList(ListTools.extractField(topUnits, Unit.id_FIELDNAME, String.class, true, true)); - } - emc.beginTransaction(Person.class); - /* - * 从内存中pick出来的无法作为实体保存,不能在前面执行,以为后面的convertControllerList也有一个pick, - * 会导致一当前这个对象再次被detech - */ - Person entityPerson = emc.find(person.getId(), Person.class); - Gson gsontool = new Gson(); - String strOriginalPerson = gsontool.toJson(entityPerson); - person.copyTo(entityPerson); - emc.check(entityPerson, CheckPersistType.all); - emc.commit(); - /** 刷新缓存 */ - ApplicationCache.notify(Person.class); - /** 通知x_collect_service_transmit同步数据到collect */ - business.instrument().collect().person(); - - /**创建 组织变更org消息通信 */ - //createMessageCommunicate(strOriginalPerson,person, effectivePerson); - - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("modfiy", "person",strOriginalPerson, person, effectivePerson); - - Wo wo = new Wo(); - wo.setId(person.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - - } - - public static class Wi extends Person { - - private static final long serialVersionUID = 1571810726944802231L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Person.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, Person.icon_FIELDNAME, Person.pinyin_FIELDNAME, - Person.pinyinInitial_FIELDNAME, Person.password_FIELDNAME, Person.passwordExpiredTime_FIELDNAME, - Person.lastLoginTime_FIELDNAME, Person.lastLoginAddress_FIELDNAME, - Person.lastLoginClient_FIELDNAME, Person.topUnitList_FIELDNAME)); - } - - private void convertControllerList(EffectivePerson effectivePerson, Business business, Person person) - throws Exception { - List list = new ArrayList(); - if (!Config.token().isInitialManager(effectivePerson.getDistinguishedName())) { - list.add(effectivePerson.getDistinguishedName()); - } - if (ListTools.isNotEmpty(person.getControllerList())) { - list.addAll(person.getControllerList()); - } - List os = business.person().pick(list); - List ids = ListTools.extractProperty(os, JpaObject.id_FIELDNAME, String.class, true, true); - ids.remove(person.getId()); - person.setControllerList(ids); - } - - /**创建 组织变更org消息通信 */ - private boolean createMessageCommunicate(String strOriginalPerson,Person person, EffectivePerson effectivePerson) { - try{ - Gson gson = new Gson(); - String strPerson = gson.toJson(person); - OrgMessage orgMessage = new OrgMessage(); - orgMessage.setOperType("modify"); - orgMessage.setOrgType("person"); - orgMessage.setOperUerId(effectivePerson.getDistinguishedName()); - orgMessage.setOperDataId(person.getId()); - orgMessage.setReceiveSystem(""); - orgMessage.setConsumed(false); - orgMessage.setConsumedModule(""); - - OrgBodyMessage orgBodyMessage = new OrgBodyMessage(); - orgBodyMessage.setOriginalData(strOriginalPerson); - orgBodyMessage.setModifyData(strPerson); - - orgMessage.setBody( gson.toJson(orgBodyMessage)); - - String path ="org/create"; - //String address = "http://127.0.0.1:20020/x_message_assemble_communicate/jaxrs/org/create"; - //ActionResponse resp = CipherConnectionAction.post(false, address, body); - - ActionResponse resp = ThisApplication.context().applications() - .postQuery(x_message_assemble_communicate.class, path, orgMessage); - - String mess = resp.getMessage(); - String data = resp.getData().toString(); - return true; - }catch(Exception e) { - logger.print(e.toString()); - return false; - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionGet.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionGet.java deleted file mode 100644 index bbaacc0ad2a25a9ead15c32c6f839a9584378216..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionGet.java +++ /dev/null @@ -1,331 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.collections4.set.ListOrderedSet; -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; -import com.x.organization.core.entity.PersonAttribute_; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -class ActionGet extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - if (Config.token().isInitialManager(flag)) { - /** 如果是xadmin单独处理 */ - Wo wo = new Wo(); - Config.token().initialManagerInstance().copyTo(wo, "password"); - result.setData(wo); - } else { - Person person = business.person().pick(flag); - if (null == person) { - throw new ExceptionPersonNotExist(flag); - } - Wo wo = Wo.copier.copy(person); - this.referencePersonAttribute(business, wo); - this.referenceIdentity(business, wo); - this.referenceRole(business, wo); - this.referenceGroup(business, wo); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - private void referencePersonAttribute(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(PersonAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(PersonAttribute.class); - Root root = cq.from(PersonAttribute.class); - Predicate p = cb.equal(root.get(PersonAttribute_.person), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoPersonAttribute.copier.copy(os); - wos = business.personAttribute().sort(wos); - wo.setWoPersonAttributeList(wos); - } - - private void referenceIdentity(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.person), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoIdentity.copier.copy(os); - wos = business.identity().sort(wos); - wo.setWoIdentityList(wos); - for (WoIdentity o : wo.getWoIdentityList()) { - this.referenceUnit(business, o); - this.referenceUnitDuty(business, o); - } - } - - private void referenceRole(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = cb.isMember(wo.getId(), root.get(Role_.personList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoRole.copier.copy(os); - wos = business.role().sort(wos); - wo.setWoRoleList(wos); - } - - private void referenceGroup(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = cb.isMember(wo.getId(), root.get(Group_.personList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - ListOrderedSet set = new ListOrderedSet<>(); - os.stream().forEach(o -> { - set.add(o); - try { - set.addAll(business.group().listSupNestedObject(o)); - } catch (Exception e) { - e.printStackTrace(); - } - }); - List wos = WoGroup.copier.copy(set.asList()); - wos = business.group().sort(wos); - wo.setWoGroupList(wos); - } - - private void referenceUnit(Business business, WoIdentity woIdentity) throws Exception { - if (StringUtils.isNotEmpty(woIdentity.getUnit())) { - Unit unit = business.unit().pick(woIdentity.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(woIdentity.getUnit()); - } - WoUnit wo = WoUnit.copier.copy(unit); - woIdentity.setWoUnit(wo); - } - } - - private void referenceUnitDuty(Business business, WoIdentity woIdentity) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.isMember(woIdentity.getId(), root.get(UnitDuty_.identityList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoUnitDuty.copier.copy(os); - wos = business.unitDuty().sort(wos); - for (WoUnitDuty woUnitDuty : wos) { - this.referenceUnit(business, woUnitDuty); - } - woIdentity.setWoUnitDutyList(wos); - } - - private void referenceUnit(Business business, WoUnitDuty woUnitDuty) throws Exception { - if (StringUtils.isNotEmpty(woUnitDuty.getUnit())) { - Unit unit = business.unit().pick(woUnitDuty.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(woUnitDuty.getUnit()); - } - WoUnit wo = WoUnit.copier.copy(unit); - woUnitDuty.setWoUnit(wo); - } - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -8456354949288335211L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, null, - person_fieldsInvisible); - - @FieldDescribe("身份对象") - private List woIdentityList; - - @FieldDescribe("角色对象") - private List woRoleList; - - @FieldDescribe("群组对象") - private List woGroupList; - - @FieldDescribe("个人属性对象") - private List woPersonAttributeList; - - public List getWoIdentityList() { - return woIdentityList; - } - - public void setWoIdentityList(List woIdentityList) { - this.woIdentityList = woIdentityList; - } - - public List getWoRoleList() { - return woRoleList; - } - - public void setWoRoleList(List woRoleList) { - this.woRoleList = woRoleList; - } - - public List getWoGroupList() { - return woGroupList; - } - - public void setWoGroupList(List woGroupList) { - this.woGroupList = woGroupList; - } - - public List getWoPersonAttributeList() { - return woPersonAttributeList; - } - - public void setWoPersonAttributeList(List woPersonAttributeList) { - this.woPersonAttributeList = woPersonAttributeList; - } - - } - - public static class WoIdentity extends Identity { - - private static final long serialVersionUID = 6193615461099768815L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, WoIdentity.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - @FieldDescribe("组织对象") - private WoUnit woUnit; - - @FieldDescribe("组织职务对象") - private List woUnitDutyList; - - public WoUnit getWoUnit() { - return woUnit; - } - - public void setWoUnit(WoUnit woUnit) { - this.woUnit = woUnit; - } - - public List getWoUnitDutyList() { - return woUnitDutyList; - } - - public void setWoUnitDutyList(List woUnitDutyList) { - this.woUnitDutyList = woUnitDutyList; - } - - } - - public static class WoGroup extends Group { - - private static final long serialVersionUID = 4503618773692247688L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, WoGroup.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - } - - public static class WoRole extends Role { - - private static final long serialVersionUID = -3903028273062897622L; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, WoRole.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - } - - public static class WoUnit extends Unit { - - private static final long serialVersionUID = 6172047743675016186L; - - private Long subDirectUnitCount; - private Long subDirectIdentityCount; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, WoUnit.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - } - - public static class WoUnitDuty extends UnitDuty { - - private static final long serialVersionUID = 3145496265299807549L; - - @FieldDescribe("组织对象") - private WoUnit woUnit; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, WoUnitDuty.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - public WoUnit getWoUnit() { - return woUnit; - } - - public void setWoUnit(WoUnit woUnit) { - this.woUnit = woUnit; - } - } - - public static class WoPersonAttribute extends PersonAttribute { - - private static final long serialVersionUID = -3155093360276871418L; - - static WrapCopier copier = WrapCopierFactory.wo(PersonAttribute.class, - WoPersonAttribute.class, null, ListTools.toList(JpaObject.FieldsInvisible)); - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionGetIconWithPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionGetIconWithPerson.java deleted file mode 100644 index c4a62ef1c8945a487d4979b476c5d61ac8969bcd..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionGetIconWithPerson.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.Objects; - -import org.apache.commons.codec.binary.Base64; -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.type.GenderType; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoFile; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -class ActionGetIconWithPerson extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - return result; - } - } - - private Wo get(Business business, String flag) throws Exception { - String base64; - if (Config.token().isInitialManager(flag)) { - /* 如果是xadmin单独处理 */ - base64 = com.x.base.core.project.config.Person.ICON_MANAGER; - } else { - Person person = business.person().pick(flag); - if (null == person) { - throw new ExceptionPersonNotExist(flag); - } - base64 = person.getIcon(); - if (StringUtils.isEmpty(base64)) { - if (Objects.equals(GenderType.m, person.getGenderType())) { - base64 = com.x.base.core.project.config.Person.ICON_MALE; - } else if (Objects.equals(GenderType.f, person.getGenderType())) { - base64 = com.x.base.core.project.config.Person.ICON_FEMALE; - } else { - base64 = com.x.base.core.project.config.Person.ICON_UNKOWN; - } - } - } - byte[] bs = Base64.decodeBase64(base64); - Wo wo = new Wo(bs, this.contentType(false, "icon.png"), this.contentDisposition(false, "icon.png")); - return wo; - } - - public static class Wo extends WoFile { - - public Wo(byte[] bytes, String contentType, String contentDisposition) { - super(bytes, contentType, contentDisposition); - } - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListLike.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListLike.java deleted file mode 100644 index 7932c92268ee5e00566a69935bbcc24c847ffad9..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListLike.java +++ /dev/null @@ -1,126 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Person_; - -import net.sf.ehcache.Element; - -class ActionListLike extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), effectivePerson.getDistinguishedName(), - wi.getKey(), StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, effectivePerson, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - private List list(Business business, EffectivePerson effectivePesron, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List personIds = business.expendGroupRoleToPerson(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - Predicate p = cb.like(cb.lower(root.get(Person_.name)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR); - p = cb.or(p, cb.like(cb.lower(root.get(Person_.unique)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Person_.pinyin)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Person_.pinyinInitial)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Person_.mobile)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Person_.distinguishedName)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - if (ListTools.isNotEmpty(personIds)) { - p = cb.and(p, root.get(Person_.id).in(personIds)); - } - p = cb.and(p, business.personPredicateWithTopUnit(effectivePesron)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.person().sort(wos); - return wos; - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, null, - person_fieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListLikePinyin.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListLikePinyin.java deleted file mode 100644 index 6f6ba37dc5bee06e27d7b14fc7dcaf97027792d9..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListLikePinyin.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Person_; - -import net.sf.ehcache.Element; - -class ActionListLikePinyin extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), effectivePerson.getDistinguishedName(), - wi.getKey(), StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, effectivePerson, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - private List list(Business business, EffectivePerson effectivePerson, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List personIds = business.expendGroupRoleToPerson(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - Predicate p = cb.like(root.get(Person_.pinyin), str + "%"); - p = cb.or(p, cb.like(root.get(Person_.pinyinInitial), str + "%")); - if (ListTools.isNotEmpty(personIds)) { - p = cb.and(p, root.get(Person_.id).in(personIds)); - } - p = cb.and(p, business.personPredicateWithTopUnit(effectivePerson)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.person().sort(wos); - return wos; - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, null, - person_fieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListNext.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListNext.java deleted file mode 100644 index 1b1febd99f7a8054618c24b5a06b27839c74694c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListNext.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -class ActionListNext extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), effectivePerson.getDistinguishedName(), - flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Person o = business.person().pick(flag); - if (null == o) { - throw new ExceptionPersonNotExist(flag); - } - id = o.getId(); - } - - result = this.standardListNext(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, DESC, - business.personPredicateWithTopUnit(effectivePerson)); - - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, - JpaObject.singularAttributeField(Person.class, true, true), null); - - private Long rank; - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListPinyinInitial.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListPinyinInitial.java deleted file mode 100644 index f0c3e00e8d175f734cdee79a954fbb9e5e592974..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListPinyinInitial.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Person_; - -import net.sf.ehcache.Element; - -class ActionListPinyinInitial extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), effectivePerson.getDistinguishedName(), - wi.getKey(), StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, effectivePerson, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, null, - person_fieldsInvisible); - - } - - private List list(Business business, EffectivePerson effectivePerson, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List personIds = business.expendGroupRoleToPerson(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Person.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Person.class); - Root root = cq.from(Person.class); - Predicate p = cb.like(root.get(Person_.pinyinInitial), str + "%", StringTools.SQL_ESCAPE_CHAR); - if (ListTools.isNotEmpty(personIds)) { - p = cb.and(p, root.get(Person_.id).in(personIds)); - } - p = cb.and(p, business.personPredicateWithTopUnit(effectivePerson)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.person().sort(wos); - return wos; - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListPrev.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListPrev.java deleted file mode 100644 index e54f37b26d75294cb4260132527cb62536fef034..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListPrev.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.jaxrs.person.ActionListNext.Wo; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -class ActionListPrev extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), effectivePerson.getDistinguishedName(), - flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Person o = business.person().pick(flag); - if (null == o) { - throw new ExceptionPersonNotExist(flag); - } - id = o.getId(); - } - result = this.standardListPrev(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, DESC, - business.personPredicateWithTopUnit(effectivePerson)); - - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -125007357898871894L; - -// static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, null, -// person_fieldsInvisible); - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, - JpaObject.singularAttributeField(Person.class, true, true), null); - - private Long rank; - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListSubDirectWithGroup.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListSubDirectWithGroup.java deleted file mode 100644 index 1b8b70bb8fe0deb6d254ab42b398df4d952bf74d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListSubDirectWithGroup.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.List; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -class ActionListSubDirectWithGroup extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String groupFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), groupFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, groupFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String groupFlag) throws Exception { - Group o = business.group().pick(groupFlag); - if (null == o) { - throw new ExceptionGroupNotExist(groupFlag); - } - List ids = o.getPersonList(); - List os = business.person().pick(ids); - List wos = Wo.copier.copy(os); - wos = business.person().sort(wos); - /** 产生头像 */ - // this.updateIcon(wos); - return wos; - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, null, - person_fieldsInvisible); - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListSubNestedWithGroup.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListSubNestedWithGroup.java deleted file mode 100644 index 2b32645a80e5aa606dbc209d72b9220514db8f51..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListSubNestedWithGroup.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.ArrayList; -import java.util.List; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Person; - -import net.sf.ehcache.Element; - -class ActionListSubNestedWithGroup extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String groupFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), groupFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, groupFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String groupFlag) throws Exception { - Group group = business.group().pick(groupFlag); - if (null == group) { - throw new ExceptionGroupNotExist(groupFlag); - } - List ids = new ArrayList<>(); - ids.addAll(business.group().listSubNested(group.getId())); - /* 将当前群组也加入到需要搜索成员的群组中 */ - ids.add(group.getId()); - ArrayList personIds = new ArrayList<>(); - ArrayList unitIds = new ArrayList<>(); - for (String str : ids) { - Group o = business.group().pick(str); - if (null != o) { - personIds.addAll(o.getPersonList()); - for (String unitId : o.getUnitList()) { - unitIds.add(unitId); - unitIds.addAll(business.unit().listSupNested(unitId)); - } - } - unitIds = ListTools.trim(unitIds, true, true); - if (ListTools.isNotEmpty(unitIds)) { - List identities = business.entityManagerContainer().listIn(Identity.class, - Identity.unit_FIELDNAME, unitIds); - if (ListTools.isNotEmpty(identities)) { - personIds.addAll( - ListTools.extractProperty(identities, Identity.person_FIELDNAME, String.class, true, true)); - } - } - personIds = ListTools.trim(personIds, true, true); - } - List wos = Wo.copier.copy(business.person().pick(personIds)); - wos = business.person().sort(wos); - /** 产生头像 */ - // this.updateIcon(wos); - return wos; - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, null, - person_fieldsInvisible); - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListWithRole.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListWithRole.java deleted file mode 100644 index 816f243ed4b9902a8f1d19ea0b1ef55bf3b25690..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionListWithRole.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.List; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Role; - -import net.sf.ehcache.Element; - -class ActionListWithRole extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String roleFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), roleFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, roleFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - this.hide(effectivePerson, business, result.getData()); - return result; - } - } - - private List list(Business business, String roleFlag) throws Exception { - Role o = business.role().pick(roleFlag); - if (null == o) { - throw new ExceptionRoleNotExist(roleFlag); - } - List ids = o.getPersonList(); - List os = business.person().pick(ids); - List wos = Wo.copier.copy(os); - wos = business.person().sort(wos); - /** 产生头像 */ - // this.updateIcon(wos); - return wos; - } - - public static class Wo extends WoPersonAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, Wo.class, null, - person_fieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionResetPassword.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionResetPassword.java deleted file mode 100644 index 472df7be4e5ff5ebb95a9be69011d144d3d866c4..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionResetPassword.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WrapBoolean; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; - -class ActionResetPassword extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - /** 排除xadmin */ - if (Config.token().isInitialManager(flag)) { - throw new ExceptionDenyResetInitialManagerPassword(); - } else { - Person o = business.person().pick(flag); - if (null == o) { - throw new ExceptionPersonNotExist(flag); - } - o = emc.find(o.getId(), Person.class); - if (!business.editable(effectivePerson, o)) { - throw new ExceptionDenyEditPerson(effectivePerson, flag); - } - business.person().setPassword(o, this.initPassword(business, o)); - emc.beginTransaction(Person.class); - emc.check(o, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Person.class); - Wo wo = new Wo(); - wo.setValue(true); - result.setData(wo); - } - - return result; - } - } - - public static class Wo extends WrapBoolean { - - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionSetIcon.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionSetIcon.java deleted file mode 100644 index 55dc748ea99e89dd94279b2ded0655a1b47b2103..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionSetIcon.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.awt.image.BufferedImage; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; - -import javax.imageio.ImageIO; - -import org.apache.commons.codec.binary.Base64; -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.imgscalr.Scalr; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WrapBoolean; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; - -class ActionSetIcon extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag, byte[] bytes, - FormDataContentDisposition disposition) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Person person = business.person().pick(flag); - if (null == person) { - throw new ExceptionPersonNotExist(flag); - } - if (!business.editable(effectivePerson, person)) { - throw new ExceptionDenyEditPerson(effectivePerson, person.getName()); - } - /** 从内存中pick出来的无法作为实体保存 */ - person = emc.find(person.getId(), Person.class); - try (ByteArrayInputStream bais = new ByteArrayInputStream(bytes); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - ByteArrayOutputStream baos_m = new ByteArrayOutputStream(); - ByteArrayOutputStream baos_l = new ByteArrayOutputStream()) { - BufferedImage image = ImageIO.read(bais); - - BufferedImage scalrImage = Scalr.resize(image, 144, 144); - ImageIO.write(scalrImage, "png", baos); - String icon = Base64.encodeBase64String(baos.toByteArray()); - - BufferedImage scalrImage_m = Scalr.resize(image, 72, 72); - ImageIO.write(scalrImage_m, "png", baos_m); - String icon_m = Base64.encodeBase64String(baos_m.toByteArray()); - - BufferedImage scalrImage_l = Scalr.resize(image, 36, 36); - ImageIO.write(scalrImage_l, "png", baos_l); - String icon_l = Base64.encodeBase64String(baos_l.toByteArray()); - - emc.beginTransaction(Person.class); - person.setIcon(icon); - person.setIconMdpi(icon_m); - person.setIconLdpi(icon_l); - - emc.commit(); - ApplicationCache.notify(Person.class); - Wo wo = new Wo(); - wo.setValue(true); - result.setData(wo); - } - /* 通知x_collect_service_transmit同步数据到collect */ - business.instrument().collect().person(); - return result; - } - } - - public static class Wo extends WrapBoolean { - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionSetPassword.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionSetPassword.java deleted file mode 100644 index 93f7565241b8f38186bc383b48ee116ef5873a61..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ActionSetPassword.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WrapBoolean; -import com.x.base.core.project.jaxrs.WrapString; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; - -class ActionSetPassword extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - /** 排除xadmin */ - if (Config.token().isInitialManager(flag)) { - throw new ExceptionDenyChangeInitialManagerPassword(); - } else { - Person o = business.person().pick(flag); - if (null == o) { - throw new ExceptionPersonNotExist(flag); - } - o = emc.find(o.getId(), Person.class); - if (!business.editable(effectivePerson, o)) { - throw new ExceptionDenyEditPerson(effectivePerson, flag); - } - if (StringUtils.isEmpty(wi.getValue())) { - throw new ExceptionPasswordEmpty(); - } - emc.beginTransaction(Person.class); - business.person().setPassword(o, wi.getValue()); - emc.check(o, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Person.class); - Wo wo = new Wo(); - wo.setValue(true); - result.setData(wo); - } - - return result; - } - } - - public static class Wi extends WrapString { - } - - public static class Wo extends WrapBoolean { - - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/BaseAction.java deleted file mode 100644 index 8884031a919318a38f067c6c9c279162a242e9fb..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/BaseAction.java +++ /dev/null @@ -1,261 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.List; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; -import javax.script.Bindings; -import javax.script.ScriptContext; -import javax.script.SimpleScriptContext; - -import org.apache.commons.lang3.BooleanUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.text.StringEscapeUtils; - -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.base.core.project.script.ScriptFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -abstract class BaseAction extends StandardJaxrsAction { - - protected boolean editable(Business business, EffectivePerson effectivePerson, String personFlag) throws Exception { - if (business.hasAnyRole(effectivePerson, OrganizationDefinition.Manager, - OrganizationDefinition.OrganizationManager)) { - return true; - } - if (StringUtils.isEmpty(personFlag)) { - return false; - } - if (business.hasAnyRole(effectivePerson, OrganizationDefinition.PersonManager)) { - if (business.sameTopUnit(effectivePerson, personFlag)) { - return true; - } - } - return false; - } - - protected boolean editable(Business business, EffectivePerson effectivePerson, Person person) throws Exception { - if (business.hasAnyRole(effectivePerson, OrganizationDefinition.Manager, - OrganizationDefinition.OrganizationManager)) { - return true; - } - if (null == person) { - return false; - } - if (business.hasAnyRole(effectivePerson, OrganizationDefinition.PersonManager)) { - List ids = ListTools.extractProperty( - business.listTopUnitWithPerson(effectivePerson.getDistinguishedName()), Unit.id_FIELDNAME, - String.class, true, true); - return ListTools.containsAny(ids, person.getTopUnitList()); - } - return false; - } - - protected static List person_fieldsInvisible = ListTools.toList(JpaObject.FieldsInvisible, - Person.password_FIELDNAME, Person.icon_FIELDNAME); - - protected void hide(EffectivePerson effectivePerson, Business business, List list) - throws Exception { - if (!effectivePerson.isManager() && (!effectivePerson.isCipher())) { - if (!business.hasAnyRole(effectivePerson, OrganizationDefinition.OrganizationManager, - OrganizationDefinition.Manager)) { - for (WoPersonAbstract o : list) { - if (BooleanUtils.isTrue(o.getHiddenMobile()) && (!StringUtils - .equals(effectivePerson.getDistinguishedName(), o.getDistinguishedName()))) { - o.setMobile(Person.HIDDENMOBILESYMBOL); - } - } - } - } - } - - protected void hide(EffectivePerson effectivePerson, Business business, T t) - throws Exception { - if (!effectivePerson.isManager() && (!effectivePerson.isCipher())) { - if (!business.hasAnyRole(effectivePerson, OrganizationDefinition.OrganizationManager, - OrganizationDefinition.Manager)) { - if (BooleanUtils.isTrue(t.getHiddenMobile()) - && (!StringUtils.equals(effectivePerson.getDistinguishedName(), t.getDistinguishedName()))) { - t.setMobile(Person.HIDDENMOBILESYMBOL); - } - } - } - } - - public static class WoPersonAbstract extends Person { - private static final long serialVersionUID = -8698017750369215370L; - - @FieldDescribe("对个人的操作权限") - private Control control = new Control(); - - public Control getControl() { - return control; - } - - public void setControl(Control control) { - this.control = control; - } - } - - public static class Control extends GsonPropertyObject { - - private Boolean allowEdit = false; - private Boolean allowDelete = false; - - public Boolean getAllowEdit() { - return allowEdit; - } - - public void setAllowEdit(Boolean allowEdit) { - this.allowEdit = allowEdit; - } - - public Boolean getAllowDelete() { - return allowDelete; - } - - public void setAllowDelete(Boolean allowDelete) { - this.allowDelete = allowDelete; - } - - } - - protected void updateControl(EffectivePerson effectivePerson, Business business, - List list) throws Exception { - if (effectivePerson.isManager() - || business.hasAnyRole(effectivePerson, OrganizationDefinition.OrganizationManager)) { - for (T t : list) { - t.getControl().setAllowDelete(true); - t.getControl().setAllowEdit(true); - } - } - } - - protected void updateControl(EffectivePerson effectivePerson, Business business, T t) - throws Exception { - if (effectivePerson.isManager() - || business.hasAnyRole(effectivePerson, OrganizationDefinition.OrganizationManager)) { - t.getControl().setAllowDelete(true); - t.getControl().setAllowEdit(true); - } else { - boolean allowEdit = false; - boolean allowDelete = false; - Person person = business.person().pick(effectivePerson.getDistinguishedName()); - if (null != person && t.getControllerList().contains(person.getId())) { - List identities = this.listIdentity(business, t); - List units = this.listUnit(business, identities); - if (ListTools.isNotEmpty(units)) { - allowEdit = false; - allowDelete = true; - for (Unit o : units) { - if (o.getControllerList().contains(person.getId()) - || o.getInheritedControllerList().contains(person.getId())) { - allowEdit = true; - } else { - allowDelete = false; - } - } - } else { - allowEdit = true; - allowDelete = true; - } - } - t.getControl().setAllowEdit(allowEdit); - t.getControl().setAllowDelete(allowDelete); - } - } - - private List listIdentity(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.person), person.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - return os; - } - - private List listUnit(Business business, List identities) throws Exception { - List ids = ListTools.extractProperty(identities, "unit", String.class, true, true); - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = root.get(Unit_.id).in(ids); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - return os; - } - - protected void checkName(Business business, String name, String excludeId) throws Exception { - if (StringUtils.isEmpty(name) || (!StringTools.isSimply(name)) || Config.token().isInitialManager(name)) { - throw new ExceptionInvalidName(name); - } - } - - protected void checkMobile(Business business, String mobile, String excludeId) throws Exception { - if (!Config.person().isMobile(mobile)) { - throw new ExceptionInvalidMobile(mobile); - } - if (StringUtils.isNotEmpty(business.person().getWithMobile(mobile, excludeId))) { - throw new ExceptionMobileDuplicate(mobile, "手机号"); - } - } - - protected void checkEmployee(Business business, String employee, String excludeId) throws Exception { - if (StringUtils.isNotEmpty(business.person().getWithEmployee(employee, excludeId))) { - throw new ExceptionEmployeeDuplicate(employee, "员工号"); - } - } - - protected void checkUnique(Business business, String unique, String excludeId) throws Exception { - if (StringUtils.isNotEmpty(business.person().getWithUnique(unique, excludeId))) { - throw new ExceptionUniqueDuplicate(unique, "唯一编码"); - } - } - - protected void checkMail(Business business, String mail, String excludeId) throws Exception { - if (StringUtils.isNotEmpty(mail)) { - if (!StringTools.isMail(mail)) { - throw new ExceptionInvalidMail(mail); - } - if (StringUtils.isNotEmpty(business.person().getWithMail(mail, excludeId))) { - throw new ExceptionEmployeeDuplicate(mail, "邮件地址"); - } - } - } - - protected String initPassword(Business business, Person person) throws Exception { - String str = Config.person().getPassword(); - Pattern pattern = Pattern.compile(com.x.base.core.project.config.Person.REGULAREXPRESSION_SCRIPT); - Matcher matcher = pattern.matcher(str); - if (matcher.matches()) { - String eval = ScriptFactory.functionalization(StringEscapeUtils.unescapeJson(matcher.group(1))); - ScriptContext scriptContext = new SimpleScriptContext(); - Bindings bindings = scriptContext.getBindings(ScriptContext.ENGINE_SCOPE); - bindings.put("person", person); - Object o = ScriptFactory.scriptEngine.eval(eval, scriptContext); - return o.toString(); - } else { - return str; - } - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyChangeInitialManagerPassword.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyChangeInitialManagerPassword.java deleted file mode 100644 index 5911a4ff7bd7355bd1f2a42746a12b13d2db7d7f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyChangeInitialManagerPassword.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDenyChangeInitialManagerPassword extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyChangeInitialManagerPassword() { - super("请通过控制台修改初始管理员密码."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyCreatePerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyCreatePerson.java deleted file mode 100644 index f4cbf46654513879ccad322b47e9c3664f71e0a0..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyCreatePerson.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyCreatePerson extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyCreatePerson(EffectivePerson effectivePerson, String name) { - super("{} 不能创建个人:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyDeleteInitialManager.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyDeleteInitialManager.java deleted file mode 100644 index 43d8e97306a4b6e605197750c417fb9cd16a60d6..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyDeleteInitialManager.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDenyDeleteInitialManager extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyDeleteInitialManager() { - super("不能删除初始管理员."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyDeletePerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyDeletePerson.java deleted file mode 100644 index 56be50642a2388647c688f07f348ddce1917b50b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyDeletePerson.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyDeletePerson extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyDeletePerson(EffectivePerson effectivePerson, String name) { - super("{} 不能删除个人:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyEditPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyEditPerson.java deleted file mode 100644 index f1aa13d0be289beb1329bdc338e37c0d210b9b60..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyEditPerson.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyEditPerson extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyEditPerson(EffectivePerson effectivePerson, String name) { - super("{} 不能编辑个人:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyResetInitialManagerPassword.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyResetInitialManagerPassword.java deleted file mode 100644 index 467ea943667b9fe9cee67f25aeeb89d59de3b3b9..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDenyResetInitialManagerPassword.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDenyResetInitialManagerPassword extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyResetInitialManagerPassword() { - super("无法重置初始管理员密码."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDisplayDuplicate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDisplayDuplicate.java deleted file mode 100644 index 8b083d1210359db642ed3d022937510d4b8eff77..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionDisplayDuplicate.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionDisplayDuplicate extends PromptException { - - private static final long serialVersionUID = 4433998001143598936L; - - ExceptionDisplayDuplicate(String display, String fieldName) { - super("显示名错误:" + display + ", " + fieldName + "已有值重复."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionEmployeeDuplicate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionEmployeeDuplicate.java deleted file mode 100644 index cff50d370d218c53737da35d522572ab7d0d448b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionEmployeeDuplicate.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionEmployeeDuplicate extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionEmployeeDuplicate(String name, String fieldName) { - super("用户员工号错误:" + name + ", " + fieldName + "已有值重复."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionGroupNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionGroupNotExist.java deleted file mode 100644 index ff3332afe6ff92df605256dd96daa5a848242677..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionGroupNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionGroupNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionGroupNotExist(String name) { - super("群组: {} 不存在.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidDisplay.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidDisplay.java deleted file mode 100644 index 9092b1b102dce56c48a0628dfd9abbd12f8d9ff8..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidDisplay.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.Objects; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionInvalidDisplay extends PromptException { - - private static final long serialVersionUID = 4622760821556680073L; - - ExceptionInvalidDisplay(String unique) { - super("显示名错误,不能使用特殊字符:" + Objects.toString(unique) + "."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidMail.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidMail.java deleted file mode 100644 index 475d6a7ae41cd2924842db0f282186c22774c3c8..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidMail.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.Objects; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionInvalidMail extends PromptException { - - private static final long serialVersionUID = 4622760821556680073L; - - ExceptionInvalidMail(String mail) { - super("邮件地址错误:不符合格式要求:" + Objects.toString(mail) + "."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidMobile.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidMobile.java deleted file mode 100644 index 750fe13d0a7d9aa7030bc42f17e8ef36b54134fd..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidMobile.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionInvalidMobile extends PromptException { - - private static final long serialVersionUID = 1859164370743532895L; - - ExceptionInvalidMobile(String mobile) { - super("手机号 {} 错误,不能为空,且必须符合指定格式.", mobile); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidName.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidName.java deleted file mode 100644 index d51469e090eb5ce1bada9b06defb25935b2b82e2..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidName.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.Objects; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionInvalidName extends PromptException { - - private static final long serialVersionUID = 1859164370743532895L; - - ExceptionInvalidName(String name) { - super("用户名错误,不能为空,不能使用保留字串,且不能使用特殊字符:" + Objects.toString(name) + "."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidOperation.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidOperation.java deleted file mode 100644 index 698a85776b932c56083089d8dc862c83838d173d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidOperation.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionInvalidOperation extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionInvalidOperation() { - super("无效的操作."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidPassword.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidPassword.java deleted file mode 100644 index f69d978881d9c100faf1720089b4bdb20b0396c8..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidPassword.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionInvalidPassword extends PromptException { - - private static final long serialVersionUID = 1859164370743532895L; - - ExceptionInvalidPassword(String hint) { - super("不符合密码规则:{}.", hint); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidUnique.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidUnique.java deleted file mode 100644 index d47161513d56078667100b84386b7f9bc2463a76..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionInvalidUnique.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.Objects; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionInvalidUnique extends PromptException { - - private static final long serialVersionUID = 4622760821556680073L; - ExceptionInvalidUnique(String unique) { - super("员工唯一标志错误,不能使用特殊字符:" + Objects.toString(unique) + "."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionMailDuplicate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionMailDuplicate.java deleted file mode 100644 index c01c38aa7f86f5932dbdce3ff577cf355bda9822..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionMailDuplicate.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionMailDuplicate extends PromptException { - - private static final long serialVersionUID = 4433998001143598936L; - - ExceptionMailDuplicate(String mail, String fieldName) { - super("邮件地址错误:" + mail + ", " + fieldName + "已有值重复."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionMobileDuplicate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionMobileDuplicate.java deleted file mode 100644 index 2c2105b2712f71fd8de2ec111ab09cc4afe23a2e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionMobileDuplicate.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionMobileDuplicate extends PromptException { - - private static final long serialVersionUID = 4433998001143598936L; - - ExceptionMobileDuplicate(String mobile, String fieldName) { - super("手机号错误:" + mobile + ", " + fieldName + "已有值重复."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionNameDuplicate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionNameDuplicate.java deleted file mode 100644 index cc8b7cf5400f780afba4bb282f03720d00d73926..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionNameDuplicate.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionNameDuplicate extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionNameDuplicate(String name, String fieldName) { - super("用户名错误:" + name + ", " + fieldName + "已有值重复."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionNameEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionNameEmpty.java deleted file mode 100644 index e5939730029afd59f59bdebbcd20526816b5fe1b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionNameEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameEmpty extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionNameEmpty() { - super("个人名称不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionPasswordEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionPasswordEmpty.java deleted file mode 100644 index 0a5dbfe89c3a1b2eff2a668d852894ebe6776b4e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionPasswordEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPasswordEmpty extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionPasswordEmpty() { - super("密码不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionPersonNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionPersonNotExist.java deleted file mode 100644 index 820004a45b12c0638bdfda828f3e04049a04237f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionPersonNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPersonNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionPersonNotExist(String name) { - super("用户: {} 不存在.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionRoleNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionRoleNotExist.java deleted file mode 100644 index 01a6b10640d06ec4482ce38e7761b445b0ae8bcc..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionRoleNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionRoleNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionRoleNotExist(String name) { - super("角色: {} 不存在.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionSuperiorNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionSuperiorNotExist.java deleted file mode 100644 index 6d4e8d69f26defd5ae346b058e9e80e84aab5127..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionSuperiorNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionSuperiorNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionSuperiorNotExist(String superior) { - super("指定的上级住主管: {} 不存在.", superior); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionUniqueDuplicate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionUniqueDuplicate.java deleted file mode 100644 index a6cd467d92b50f8be90c6efc6da2b614c407470b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionUniqueDuplicate.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - - class ExceptionUniqueDuplicate extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionUniqueDuplicate(String name, String fieldName) { - super("用户唯一编码错误:" + name + ", " + fieldName + "已有值重复."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionUnitNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionUnitNotExist.java deleted file mode 100644 index bee257aec6d06000b8d995daa007d1ef30074277..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/ExceptionUnitNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionUnitNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionUnitNotExist(String flag) { - super("组织:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/PersonAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/PersonAction.java deleted file mode 100644 index 3d44bfd9b3e10e0572c9b566cdbc38254df447dc..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/person/PersonAction.java +++ /dev/null @@ -1,350 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.person; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; - -import org.glassfish.jersey.media.multipart.FormDataContentDisposition; -import org.glassfish.jersey.media.multipart.FormDataParam; - -import com.google.gson.JsonElement; -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("person") -@JaxrsDescribe("个人操作") -public class PersonAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(PersonAction.class); - - @JaxrsMethodDescribe(value = "获取个人,附带身份,身份所在的组织,个人所在群组,个人拥有角色.", action = ActionGet.class) - @GET - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("人员标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGet().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "创建个人.", action = ActionCreate.class) - @POST - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void create(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionCreate().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新个人.", action = ActionEdit.class) - @PUT - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void edit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("人员标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionEdit().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除个人.", action = ActionDelete.class) - @DELETE - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void delete(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("人员标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDelete().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示个人,下一页.", action = ActionListNext.class) - @GET - @Path("list/{flag}/next/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listNext(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("人员标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListNext().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示个人,上一页.", action = ActionListPrev.class) - @GET - @Path("list/{flag}/prev/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPrev(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("人员标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPrev().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的群组,列示直接个人成员.", action = ActionListSubDirectWithGroup.class) - @GET - @Path("list/group/{groupFlag}/sub/direct") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSubDirectWithGroup(@Suspended final AsyncResponse asyncResponse, - @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("groupFlag") String groupFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSubDirectWithGroup().execute(effectivePerson, groupFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根根据给定的群组,列示嵌套的个人成员.", action = ActionListSubNestedWithGroup.class) - @GET - @Path("list/group/{groupFlag}/sub/nested") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSubNestedWithGroup(@Suspended final AsyncResponse asyncResponse, - @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("groupFlag") String groupFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSubNestedWithGroup().execute(effectivePerson, groupFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根根据给定的角色,列示个人成员.", action = ActionListWithRole.class) - @GET - @Path("list/role/{roleFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithRole(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("角色标识") @PathParam("roleFlag") String roleFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithRole().execute(effectivePerson, roleFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取拼音首字母开始的个人.", action = ActionListPinyinInitial.class) - @PUT - @Path("list/pinyininitial") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPinyinInitial(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPinyinInitial().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据名称进行模糊查询.", action = ActionListLike.class) - @PUT - @Path("list/like") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLike(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLike().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据拼音或者首字母进行模糊查询.", action = ActionListLikePinyin.class) - @PUT - @Path("list/like/pinyin") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLikePinyin(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLikePinyin().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新指定个人的密码.", action = ActionSetPassword.class) - @PUT - @Path("{flag}/set/password") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void setPassword(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionSetPassword().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "重置个人的密码.", action = ActionResetPassword.class) - @GET - @Path("{flag}/reset/password") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void resetPassword(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionResetPassword().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "校验password密码等级.", action = ActionCheckPassword.class) - @GET - @Path("check/password/{password}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void checkPassword(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("校验密码") @PathParam("password") String password) { - ActionResult result = new ActionResult<>(); - try { - result = new ActionCheckPassword().execute(password); - } catch (Throwable th) { - th.printStackTrace(); - result.error(th); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取个人头像.", action = ActionGetIconWithPerson.class) - @GET - @Path("{flag}/icon") - @Consumes(MediaType.APPLICATION_JSON) - public void getIconWithPerson(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGetIconWithPerson().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "设置个人的头像.", action = ActionSetIcon.class) - @PUT - @Path("{flag}/icon") - @Consumes(MediaType.MULTIPART_FORM_DATA) - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void setIcon(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("flag") String flag, - @FormDataParam(FILE_FIELD) final byte[] bytes, - @JaxrsParameterDescribe("头像文件") @FormDataParam(FILE_FIELD) final FormDataContentDisposition disposition) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionSetIcon().execute(effectivePerson, flag, bytes, disposition); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionCreate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionCreate.java deleted file mode 100644 index 8804eb069634cdced4c9daaf2970d48b116044b5..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionCreate.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; - -class ActionCreate extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Person person = business.person().pick(wi.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(wi.getPerson()); - } - if (!business.editable(effectivePerson, person)) { - throw new ExceptionDenyEditPerson(effectivePerson, person.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - PersonAttribute o = Wi.copier.copy(wi); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.uniqueDuplicateWhenNotEmpty(business, o)) { - throw new ExceptionDuplicateUnique(o.getName(), o.getUnique()); - } - o.setPerson(person.getId()); - if (this.duplicateOnPerson(business, person, wi.getName(), o)) { - throw new ExceptionNameExistWithPerson(person, wi.getName()); - } - emc.beginTransaction(PersonAttribute.class); - emc.persist(o, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(PersonAttribute.class); - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - return result; - } - - } - - public static class Wo extends WoId { - - } - - public static class Wi extends PersonAttribute { - - private static final long serialVersionUID = 370024636157241213L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, PersonAttribute.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial")); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionDelete.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionDelete.java deleted file mode 100644 index 83440dd0601163e258a8d77a831103823af3b1ac..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionDelete.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; - -class ActionDelete extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String id) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - PersonAttribute o = business.personAttribute().pick(id); - if (null == o) { - throw new ExceptionPersonAttributeNotExist(id); - } - Person person = business.person().pick(o.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(o.getPerson()); - } - if (!business.editable(effectivePerson, person)) { - throw new ExceptionDenyEditPerson(effectivePerson, person.getName()); - } - emc.beginTransaction(PersonAttribute.class); - /** 重新取出对象 */ - o = emc.find(o.getId(), PersonAttribute.class); - emc.remove(o, CheckRemoveType.all); - emc.commit(); - ApplicationCache.notify(PersonAttribute.class); - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionEdit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionEdit.java deleted file mode 100644 index 02bb716d16c3dd6ca66c8daf45724991375c068f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionEdit.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; - -class ActionEdit extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - PersonAttribute o = business.personAttribute().pick(id); - if (null == o) { - throw new ExceptionPersonAttributeNotExist(id); - } - Person person = business.person().pick(o.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(o.getPerson()); - } - if (!business.editable(effectivePerson, person)) { - throw new ExceptionDenyEditPerson(effectivePerson, person.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - if (this.duplicateOnPerson(business, person, wi.getName(), o)) { - throw new ExceptionNameExistWithPerson(person, wi.getName()); - } - /** 由于需要修改再次取出 */ - emc.beginTransaction(PersonAttribute.class); - o = emc.find(o.getId(), PersonAttribute.class); - Wi.copier.copy(wi, o); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.uniqueDuplicateWhenNotEmpty(business, o)) { - throw new ExceptionDuplicateUnique(o.getName(), o.getUnique()); - } - o.setPerson(person.getId()); - emc.check(o, CheckPersistType.all); - emc.commit(); - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - ApplicationCache.notify(PersonAttribute.class); - return result; - } - } - - public static class Wo extends WoId { - - } - - public static class Wi extends PersonAttribute { - - private static final long serialVersionUID = 370024636157241213L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, PersonAttribute.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial")); - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionGet.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionGet.java deleted file mode 100644 index 903e5c346cbd060ee996e8ba0b412802f0188234..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionGet.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; - -import net.sf.ehcache.Element; - -class ActionGet extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - return result; - } - } - - private Wo get(Business business, String flag) throws Exception { - PersonAttribute o = business.personAttribute().pick(flag); - if (null == o) { - throw new ExceptionPersonAttributeNotExist(flag); - } - Wo wo = Wo.copier.copy(o); - this.referencePerson(business, wo); - return wo; - } - - private void referencePerson(Business business, Wo wo) throws Exception { - Person o = business.person().pick(wo.getPerson()); - if (null == o) { - throw new ExceptionPersonNotExist(wo.getPerson()); - } - WoPerson woPerson = WoPerson.copier.copy(o); - wo.setWoPerson(woPerson); - } - - public static class Wo extends PersonAttribute { - - private static final long serialVersionUID = -8456354949288335211L; - - @FieldDescribe("个人对象") - private WoPerson woPerson; - - static WrapCopier copier = WrapCopierFactory.wo(PersonAttribute.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public WoPerson getWoPerson() { - return woPerson; - } - - public void setWoPerson(WoPerson woPerson) { - this.woPerson = woPerson; - } - - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = -8456354949288335211L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(JpaObject.FieldsInvisible, "password", "icon")); - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListNext.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListNext.java deleted file mode 100644 index 3e1dfaf8309ad1163996b8c8493deec4fc687633..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListNext.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.PersonAttribute; - -import net.sf.ehcache.Element; - -class ActionListNext extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - PersonAttribute o = business.personAttribute().pick(flag); - if (null == o) { - throw new ExceptionPersonAttributeNotExist(flag); - } - id = o.getId(); - } - result = this.standardListNext(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends PersonAttribute { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(PersonAttribute.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListPrev.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListPrev.java deleted file mode 100644 index 1c93fe5fb672e80b69079f93cea5679c92c686d7..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListPrev.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.PersonAttribute; - -import net.sf.ehcache.Element; - -class ActionListPrev extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - PersonAttribute o = business.personAttribute().pick(flag); - if (null == o) { - throw new ExceptionPersonAttributeNotExist(flag); - } - id = o.getId(); - } - result = this.standardListPrev(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends PersonAttribute { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(PersonAttribute.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListWithPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListWithPerson.java deleted file mode 100644 index c182ab9b1885effc454404f4eac713ccb548fac2..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ActionListWithPerson.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; -import com.x.organization.core.entity.PersonAttribute_; - -import net.sf.ehcache.Element; - -class ActionListWithPerson extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String personFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), personFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, personFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - private List list(Business business, String personFlag) throws Exception { - Person person = business.person().pick(personFlag); - if (null == person) { - throw new ExceptionPersonNotExist(personFlag); - } - EntityManager em = business.entityManagerContainer().get(PersonAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(PersonAttribute.class); - Root root = cq.from(PersonAttribute.class); - Predicate p = cb.equal(root.get(PersonAttribute_.person), person.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = Wo.copier.copy(os); - wos = wos.stream().sorted(Comparator.comparing(Wo::getName)).collect(Collectors.toList()); - return wos; - } - - public static class Wo extends PersonAttribute { - - private static final long serialVersionUID = 7447640450234665006L; - - static WrapCopier copier = WrapCopierFactory.wo(PersonAttribute.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/BaseAction.java deleted file mode 100644 index 3533da6a5e3f1fb9263f6d7a32a1fb83cfaf7104..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/BaseAction.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.PersonAttribute; -import com.x.organization.core.entity.PersonAttribute_; - -class BaseAction extends StandardJaxrsAction { - - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - protected boolean uniqueDuplicateWhenNotEmpty(Business business, PersonAttribute personAttribute) throws Exception { - if (StringUtils.isNotEmpty(personAttribute.getUnique())) { - if (business.entityManagerContainer().duplicateWithFlags(personAttribute.getId(), PersonAttribute.class, - personAttribute.getUnique())) { - return true; - } - } - return false; - } - - protected boolean duplicateOnPerson(Business business, Person person, String name, PersonAttribute exclude) - throws Exception { - EntityManager em = business.entityManagerContainer().get(PersonAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(PersonAttribute.class); - Predicate p = cb.equal(root.get(PersonAttribute_.person), person.getId()); - p = cb.and(p, cb.equal(root.get(PersonAttribute_.name), name)); - p = cb.and(p, cb.notEqual(root.get(PersonAttribute_.id), exclude.getId())); - long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - if (count > 0) { - return true; - } else { - return false; - } - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDenyEditPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDenyEditPerson.java deleted file mode 100644 index e967b4620fb00df71035f221b3358091e617bd61..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDenyEditPerson.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyEditPerson extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyEditPerson(EffectivePerson effectivePerson, String name) { - super("{} 不能编辑个人:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDuplicateUnique.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDuplicateUnique.java deleted file mode 100644 index 11268b728fc2b2ed433df2320382f7e680c62053..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDuplicateUnique.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateUnique extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateUnique(String name, String unique) { - super("个人属性 {} 的唯一标识:{},不能和已有的标识冲突.", name, unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDuplicateWithName.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDuplicateWithName.java deleted file mode 100644 index dd5aa30a815cdab6fe3fb293a1c01133bedc9ade..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionDuplicateWithName.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateWithName extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateWithName(String name) { - super("个人属性名称 : {} 与现有的标识冲突.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionNameEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionNameEmpty.java deleted file mode 100644 index 6c7bca27ef2da91f2429e240d495bff7f5726884..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionNameEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameEmpty extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionNameEmpty() { - super("个人属性名称不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionNameExistWithPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionNameExistWithPerson.java deleted file mode 100644 index ed1c77519db464934fa371479764fef6425bdeea..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionNameExistWithPerson.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.project.exception.PromptException; -import com.x.organization.core.entity.Person; - -class ExceptionNameExistWithPerson extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionNameExistWithPerson(Person person, String unique) { - super("{} 已有名为: {} 的属性.", person.getName(), unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionPersonAttributeNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionPersonAttributeNotExist.java deleted file mode 100644 index 583e860fe814a24cadd02e4de1035c7646caf939..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionPersonAttributeNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPersonAttributeNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionPersonAttributeNotExist(String name) { - super("个人属性: {} 不存在.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionPersonNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionPersonNotExist.java deleted file mode 100644 index 0479e85a5e474e3361ee960e8a6b06d40fd68be0..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/ExceptionPersonNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPersonNotExist extends PromptException { - - private static final long serialVersionUID = -3439770681867963457L; - - ExceptionPersonNotExist(String name) { - super("个人: {} 不存在.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/PersonAttributeAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/PersonAttributeAction.java deleted file mode 100644 index b91795ffd9a47a8ae4019ad10f57a98cabf8c90c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/personattribute/PersonAttributeAction.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.personattribute; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.google.gson.JsonElement; -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("personattribute") -@JaxrsDescribe("个人属性操作") -public class PersonAttributeAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(PersonAttributeAction.class); - - @JaxrsMethodDescribe(value = "获取个人属性.附带个人", action = ActionGet.class) - @GET - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人属性标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGet().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "创建个人属性.", action = ActionCreate.class) - @POST - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void create(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionCreate().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新个人属性.", action = ActionEdit.class) - @PUT - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void edit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人属性标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionEdit().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除个人属性.", action = ActionDelete.class) - @DELETE - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void delete(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人属性标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDelete().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示个人属性,下一页.", action = ActionListNext.class) - @GET - @Path("list/{flag}/next/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listNext(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人属性标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListNext().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示个人属性,上一页.", action = ActionListPrev.class) - @GET - @Path("list/{flag}/prev/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void standardListPrev(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人属性标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPrev().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示个人的个人属性.", action = ActionListWithPerson.class) - @GET - @Path("list/person/{personFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithPerson(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("personFlag") String personFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithPerson().execute(effectivePerson, personFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionCreate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionCreate.java deleted file mode 100644 index bbc4ce2704d5e6b854622b3c2fc329c27b7c0eaa..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionCreate.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Role; - -class ActionCreate extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionCreate.class); - ActionResult execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - Role role = new Role(); - if (!business.editable(effectivePerson, role)) { - throw new ExceptionDenyCreateRole(effectivePerson, role.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - Wi.copier.copy(wi, role); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.uniqueDuplicateWhenNotEmpty(business, role)) { - throw new ExceptionDuplicateUnique(role.getName(), role.getUnique()); - } - role.setPersonList( - ListTools.extractProperty(business.person().pick(ListTools.trim(role.getPersonList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - role.setGroupList( - ListTools.extractProperty(business.group().pick(ListTools.trim(role.getGroupList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - emc.beginTransaction(Role.class); - emc.persist(role, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Role.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("add", "role", role, effectivePerson); - - Wo wo = new Wo(); - wo.setId(role.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - - public static class Wi extends Role { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Role.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial")); - - } - - - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionDelete.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionDelete.java deleted file mode 100644 index 512d184e36a2ac656a21528a3f33d97f9837666a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionDelete.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.google.gson.Gson; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.Applications; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Role; - -class ActionDelete extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionDelete.class); - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Role role = business.role().pick(flag); - if (null == role) { - throw new ExceptionRoleNotExist(flag); - } - if (!business.editable(effectivePerson, role)) { - throw new ExceptionDenyDeleteRole(effectivePerson, flag); - } - if (OrganizationDefinition.DEFAULTROLES.contains(role.getName())) { - throw new ExceptionDenyDeleteDefaultRole(role.getName()); - - } - - emc.beginTransaction(Role.class); - role = emc.find(role.getId(), Role.class); - emc.remove(role, CheckRemoveType.all); - emc.commit(); - ApplicationCache.notify(Role.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("delete", "role", role, effectivePerson); - - Wo wo = new Wo(); - wo.setId(role.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionEdit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionEdit.java deleted file mode 100644 index 5a11455f348f792a2f76c5f6eca2458dce517c6b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionEdit.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Role; - -class ActionEdit extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionEdit.class); - ActionResult execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - Role role = business.role().pick(flag); - if (null == role) { - throw new ExceptionRoleNotExist(flag); - } - if (!business.editable(effectivePerson, role)) { - throw new ExceptionDenyEditRole(effectivePerson, role.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - /** 重新取出 */ - role = emc.find(role.getId(), Role.class); - - Gson gsontool = new Gson(); - String strRole = gsontool.toJson(role); - - Wi.copier.copy(wi, role); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.uniqueDuplicateWhenNotEmpty(business, role)) { - throw new ExceptionDuplicateUnique(role.getName(), role.getUnique()); - } - role.setPersonList( - ListTools.extractProperty(business.person().pick(ListTools.trim(role.getPersonList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - role.setGroupList( - ListTools.extractProperty(business.group().pick(ListTools.trim(role.getGroupList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - emc.beginTransaction(Role.class); - emc.check(role, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Role.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("modfiy", "role",strRole, role, effectivePerson); - - Wo wo = new Wo(); - wo.setId(role.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - - public static class Wi extends Role { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Role.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial")); - - } - - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionGet.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionGet.java deleted file mode 100644 index 80bb57561dfaa3fca33a508bad7066c06e82896c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionGet.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Role; - -import net.sf.ehcache.Element; - -class ActionGet extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - private Wo get(Business business, String flag) throws Exception { - Role o = business.role().pick(flag); - if (null == o) { - throw new ExceptionRoleNotExist(flag); - } - Wo wo = Wo.copier.copy(o); - this.referenceGroup(business, wo); - this.referencePerson(business, wo); - return wo; - } - - private void referenceGroup(Business business, Wo wo) throws Exception { - List os = business.group().pick(wo.getGroupList()); - List wos = WoGroup.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(WoGroup::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing(Comparator.comparing(WoGroup::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList()); - wo.setWoGroupList(wos); - } - - private void referencePerson(Business business, Wo wo) throws Exception { - List os = business.person().pick(wo.getPersonList()); - List wos = WoPerson.copier.copy(os); - wos = wos.stream() - .sorted(Comparator.comparing(WoPerson::getOrderNumber, Comparator.nullsLast(Integer::compareTo)) - .thenComparing( - Comparator.comparing(WoPerson::getName, Comparator.nullsLast(String::compareTo)))) - .collect(Collectors.toList()); - wo.setWoPersonList(wos); - } - - public static class Wo extends WoRoleAbstract { - - private static final long serialVersionUID = -127291000673692614L; - - private List woGroupList; - - private List woPersonList; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public List getWoGroupList() { - return woGroupList; - } - - public void setWoGroupList(List woGroupList) { - this.woGroupList = woGroupList; - } - - public List getWoPersonList() { - return woPersonList; - } - - public void setWoPersonList(List woPersonList) { - this.woPersonList = woPersonList; - } - - } - - public static class WoGroup extends Group { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Group.class, WoGroup.class, null, - ListTools.toList(JpaObject.FieldsInvisible, "password", "icon")); - - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(JpaObject.FieldsInvisible, "password")); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListLike.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListLike.java deleted file mode 100644 index 6039b4f59cab64b036a32158364b28975417a2a9..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListLike.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; - -import net.sf.ehcache.Element; - -class ActionListLike extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, wi); - result.setData(wos); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - public static class Wo extends WoRoleAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List roleIds = business.expendGroupRoleToRole(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = cb.like(cb.lower(root.get(Role_.name)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR); - p = cb.or(p, cb.like(cb.lower(root.get(Role_.pinyin)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Role_.pinyinInitial)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Role_.distinguishedName)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - if (ListTools.isNotEmpty(roleIds)) { - p = cb.and(p, root.get(Role_.id).in(roleIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.role().sort(wos); - return wos; - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListLikePinyin.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListLikePinyin.java deleted file mode 100644 index 53e1875c1a4aad9445ec9548c736fd1f8ac85261..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListLikePinyin.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; - -import net.sf.ehcache.Element; - -class ActionListLikePinyin extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - public static class Wo extends WoRoleAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List roleIds = business.expendGroupRoleToRole(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = cb.like(root.get(Role_.pinyin), str + "%"); - p = cb.or(p, cb.like(root.get(Role_.pinyinInitial), str + "%")); - if (ListTools.isNotEmpty(roleIds)) { - p = cb.and(p, root.get(Role_.id).in(roleIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.role().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListNext.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListNext.java deleted file mode 100644 index e1845e94dc9b87a0d6111f0e4384e60dd2c29a53..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListNext.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Role; - -import net.sf.ehcache.Element; - -class ActionListNext extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Role o = business.role().pick(flag); - if (null == o) { - throw new ExceptionRoleNotExist(flag); - } - id = o.getId(); - } - result = this.standardListNext(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, - null, null, null, null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends WoRoleAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListPinyinInitial.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListPinyinInitial.java deleted file mode 100644 index 0f2784082024d95ac42ac40982cd25792a7613a6..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListPinyinInitial.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; - -import net.sf.ehcache.Element; - -class ActionListPinyinInitial extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), - StringUtils.join(wi.getGroupList(), ","), StringUtils.join(wi.getRoleList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索群组范围,为空则不限定") - private List groupList = new ArrayList<>(); - @FieldDescribe("搜索角色范围,为空则不限定") - private List roleList = new ArrayList<>(); - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getRoleList() { - return roleList; - } - - public void setRoleList(List roleList) { - this.roleList = roleList; - } - - } - - public static class Wo extends WoRoleAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List roleIds = business.expendGroupRoleToRole(wi.getGroupList(), wi.getRoleList()); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = cb.like(root.get(Role_.pinyinInitial), str + "%", StringTools.SQL_ESCAPE_CHAR); - if (ListTools.isNotEmpty(roleIds)) { - p = cb.and(p, root.get(Role_.id).in(roleIds)); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - wos = business.role().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListPrev.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListPrev.java deleted file mode 100644 index b1491a82657262fb130cd2b77da0124fcf984f81..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListPrev.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Role; - -import net.sf.ehcache.Element; - -class ActionListPrev extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Role o = business.role().pick(flag); - if (null == o) { - throw new ExceptionRoleNotExist(flag); - } - id = o.getId(); - } - result = this.standardListPrev(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends WoRoleAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListWithGroup.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListWithGroup.java deleted file mode 100644 index 54aecac2c8df888baa09796f89dc97a86f59b526..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListWithGroup.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; - -import net.sf.ehcache.Element; - -class ActionListWithGroup extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String groupFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), groupFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, groupFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoRoleAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, String groupFlag) throws Exception { - /** 检查Group是否存在 */ - Group group = business.group().pick(groupFlag); - if (null == group) { - throw new ExceptionGroupNotExist(groupFlag); - } - List groups = new ArrayList<>(); - groups.addAll(business.group().listSupNested(group.getId())); - /* 将自己加入到查询中 */ - groups.add(group.getId()); - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = root.get(Role_.groupList).in(groups); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - List wos = Wo.copier.copy(os); - wos = business.role().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListWithPerson.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListWithPerson.java deleted file mode 100644 index d0366b74daca21e7d778b04f4bf5b20d75582934..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ActionListWithPerson.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Role; -import com.x.organization.core.entity.Role_; - -import net.sf.ehcache.Element; - -class ActionListWithPerson extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String personFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), personFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, personFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoRoleAbstract { - - private static final long serialVersionUID = -125007357898871894L; - - static WrapCopier copier = WrapCopierFactory.wo(Role.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, String personFlag) throws Exception { - Person person = business.person().pick(personFlag); - if (null == person) { - throw new ExceptionPersonNotExist(personFlag); - } - List groups = business.group().listSupNestedWithPerson(person.getId()); - List os = new ArrayList<>(); - os.addAll(this.listWithGroups(business, groups)); - os.addAll(this.listWithPerson(business, person)); - os = os.stream().distinct().collect(Collectors.toList()); - List wos = Wo.copier.copy(os); - wos = business.role().sort(wos); - return wos; - } - - private List listWithGroups(Business business, List groups) throws Exception { - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = root.get(Role_.groupList).in(groups); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - return os; - } - - private List listWithPerson(Business business, Person person) throws Exception { - EntityManager em = business.entityManagerContainer().get(Role.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Role.class); - Root root = cq.from(Role.class); - Predicate p = cb.isMember(person.getId(), root.get(Role_.personList)); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - return os; - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/BaseAction.java deleted file mode 100644 index 2d342228761e02ac3f39d2c716fded83298e60af..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/BaseAction.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Role; - -abstract class BaseAction extends StandardJaxrsAction { - - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - protected boolean uniqueDuplicateWhenNotEmpty(Business business, Role role) throws Exception { - if (StringUtils.isNotEmpty(role.getUnique())) { - if (business.entityManagerContainer().duplicateWithFlags(role.getId(), Role.class, role.getUnique())) { - return true; - } - } - return false; - } - - public static class WoRoleAbstract extends Role { - - private static final long serialVersionUID = 8148720363115902733L; - @FieldDescribe("对角色的操作权限") - private Control control = new Control(); - - public Control getControl() { - return control; - } - - public void setControl(Control control) { - this.control = control; - } - } - - public static class Control extends GsonPropertyObject { - - private Boolean allowEdit = false; - private Boolean allowDelete = false; - - public Boolean getAllowEdit() { - return allowEdit; - } - - public void setAllowEdit(Boolean allowEdit) { - this.allowEdit = allowEdit; - } - - public Boolean getAllowDelete() { - return allowDelete; - } - - public void setAllowDelete(Boolean allowDelete) { - this.allowDelete = allowDelete; - } - - } - - protected void updateControl(EffectivePerson effectivePerson, Business business, - List list) throws Exception { - if (effectivePerson.isManager() || business.hasAnyRole(effectivePerson, - OrganizationDefinition.OrganizationManager, OrganizationDefinition.RoleManager)) { - for (T t : list) { - t.getControl().setAllowDelete(true); - t.getControl().setAllowEdit(true); - } - } else { - for (T t : list) { - t.getControl().setAllowDelete(false); - t.getControl().setAllowEdit(false); - } - } - } - - protected void updateControl(EffectivePerson effectivePerson, Business business, T t) - throws Exception { - if (effectivePerson.isManager() || business.hasAnyRole(effectivePerson, - OrganizationDefinition.OrganizationManager, OrganizationDefinition.RoleManager)) { - t.getControl().setAllowDelete(true); - t.getControl().setAllowEdit(true); - } else { - t.getControl().setAllowDelete(false); - t.getControl().setAllowEdit(false); - } - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyCreateRole.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyCreateRole.java deleted file mode 100644 index d958aa8b1750ea6caee5fb8f8a179401661db80b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyCreateRole.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyCreateRole extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyCreateRole(EffectivePerson effectivePerson, String name) { - super("{} 不能创建角色:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyDeleteDefaultRole.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyDeleteDefaultRole.java deleted file mode 100644 index 060fdf6f71f0648e718f538d22a8f497449510cf..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyDeleteDefaultRole.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyDeleteDefaultRole extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyDeleteDefaultRole(String name) { - super("不能删除系统默认角色:{}.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyDeleteRole.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyDeleteRole.java deleted file mode 100644 index dee01758bea9f113800a3d1264cdb50bb762829d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyDeleteRole.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyDeleteRole extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyDeleteRole(EffectivePerson effectivePerson, String name) { - super("{} 不能删除角色:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyEditRole.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyEditRole.java deleted file mode 100644 index e2a04e3ad33b21ebcc94f02a5839d46c4b5b409b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDenyEditRole.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyEditRole extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyEditRole(EffectivePerson effectivePerson, String name) { - super("{} 不能编辑角色:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDuplicateUnique.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDuplicateUnique.java deleted file mode 100644 index 30981652b4c05e4c1e6c106f660bb80f34109e81..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionDuplicateUnique.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateUnique extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateUnique(String name, String unique) { - super("角色 {} 的唯一标识:{},不能和已有的标识冲突.", name, unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionGroupNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionGroupNotExist.java deleted file mode 100644 index b88ccadcd32e5fcd6beeafaded8ab9354059adf2..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionGroupNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionGroupNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionGroupNotExist(String flag) { - super("群组:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionNameEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionNameEmpty.java deleted file mode 100644 index a046eb1eb36189f9de431d7cfc09f7d07801157f..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionNameEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameEmpty extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionNameEmpty() { - super("角色名称不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionPersonNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionPersonNotExist.java deleted file mode 100644 index cbf9166c2451c8d64bf944a3e14626690fdafd7b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionPersonNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPersonNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionPersonNotExist(String flag) { - super("人员:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionRoleNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionRoleNotExist.java deleted file mode 100644 index b4b8bdc107e96eca71acb09186cbedebf8bc83bc..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/ExceptionRoleNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionRoleNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionRoleNotExist(String flag) { - super("角色:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/RoleAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/RoleAction.java deleted file mode 100644 index e66cc5f5d17bd08d27612cde25ad562928fb0e2e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/role/RoleAction.java +++ /dev/null @@ -1,235 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.role; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.google.gson.JsonElement; -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("role") -@JaxrsDescribe("角色操作") -public class RoleAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(RoleAction.class); - - @JaxrsMethodDescribe(value = "获取角色.", action = ActionGet.class) - @GET - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("角色标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGet().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "创建角色.", action = ActionCreate.class) - @POST - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void create(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionCreate().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新角色.", action = ActionEdit.class) - @PUT - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void edit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("角色标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionEdit().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除角色对象.", action = ActionDelete.class) - @DELETE - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void delete(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("角色标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDelete().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示角色对象,下一页.", action = ActionListNext.class) - @GET - @Path("list/{flag}/next/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listNext(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("角色标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListNext().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示角色对象,上一页.", action = ActionListPrev.class) - @GET - @Path("list/{flag}/prev/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPrev(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("角色标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPrev().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的人员的的角色.", action = ActionListWithPerson.class) - @GET - @Path("list/person/{personFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithPerson(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("个人标识") @PathParam("personFlag") String personFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithPerson().execute(effectivePerson, personFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的Group ID,获取其拥有的角色对象.", action = ActionListWithGroup.class) - @GET - @Path("list/group/{groupFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithGroup(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("群组标识") @PathParam("groupFlag") String groupFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithGroup().execute(effectivePerson, groupFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取拼音首字母开始的Person.", action = ActionListPinyinInitial.class) - @PUT - @Path("list/pinyininitial") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPinyinInitial(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPinyinInitial().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据名称进行模糊查询.", action = ActionListLike.class) - @PUT - @Path("list/like") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLike(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLike().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据拼音或者首字母进行模糊查询.", action = ActionListLikePinyin.class) - @PUT - @Path("list/like/pinyin") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLikePinyin(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLikePinyin().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionCreate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionCreate.java deleted file mode 100644 index ac1edf5d6b9dff647e07e681068c0526b544369b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionCreate.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Unit; - -import org.apache.commons.lang3.StringUtils; - -class ActionCreate extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionCreate.class); - - ActionResult execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Unit unit = Wi.copier.copy(wi); - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - if (StringUtils.isNotEmpty(wi.getSuperior())) { - /** 创建次级组织 */ - Unit superior = business.unit().pick(wi.getSuperior()); - if (null == superior) { - throw new ExceptionSuperiorNotExist(wi.getName(), wi.getSuperior()); - } - if (!business.editable(effectivePerson, superior)) { - throw new ExceptionDenyCreateUnit(effectivePerson, superior.getName()); - } - unit.setSuperior(superior.getId()); - } else { - /** 创建顶层组织 */ - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyCreateTopUnit(effectivePerson, unit.getName()); - } - } - unit.setControllerList(ListTools.extractProperty( - business.person().pick(ListTools.trim(unit.getControllerList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.duplicateUniqueWhenNotEmpty(business, unit)) { - throw new ExceptionDuplicateUnique(unit.getName(), unit.getUnique()); - } - if (this.checkNameInvalid(business,unit)){ - throw new ExceptionNameInvalid(unit.getName()); - } - /** 判断同一级别下name不重复 */ - if (this.duplicateName(business, unit)) { - throw new ExceptionDuplicateName(unit.getName()); - } - emc.beginTransaction(Unit.class); - business.unit().adjustInherit(unit); - emc.persist(unit,CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Unit.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("add", "unit", unit, effectivePerson); - - Wo wo = new Wo(); - wo.setId(unit.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - - public static class Wi extends Unit { - - private static final long serialVersionUID = -6314932919066148113L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Unit.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, Unit.superior_FIELDNAME, Unit.pinyin_FIELDNAME, - Unit.pinyinInitial_FIELDNAME, Unit.level_FIELDNAME, Unit.levelName_FIELDNAME, - Unit.inheritedControllerList_FIELDNAME)); - } - - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionDelete.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionDelete.java deleted file mode 100644 index 418b33b981ac174999585b0f26f544e3fe3cf96b..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionDelete.java +++ /dev/null @@ -1,185 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.google.gson.Gson; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.Applications; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.ThisApplication; -import com.x.organization.assemble.control.message.OrgBodyMessage; -import com.x.organization.assemble.control.message.OrgMessage; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Group; -import com.x.organization.core.entity.Group_; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; -import com.x.organization.core.entity.UnitAttribute_; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -class ActionDelete extends BaseAction { - private static Logger logger = LoggerFactory.getLogger(ActionDelete.class); - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyDeleteUnit(effectivePerson, unit.getName()); - } - List list = new ArrayList<>(); - list.add(unit); - /** 查找子组织 */ - list.addAll(business.unit().listSubNestedObject(unit)); - list = list.stream().sorted(Comparator.comparing(Unit::getLevel).reversed()).collect(Collectors.toList()); - for (Unit o : list) { - this.remove(business, o); - } - - ApplicationCache.notify(Unit.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - - for (Unit o : list) { - orgMessageFactory.createMessageCommunicate("delete", "unit", o, effectivePerson); - } - Wo wo = new Wo(); - wo.setId(unit.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - - private void remove(Business business, Unit o) throws Exception { - /** 前面是pick出来的,真正删除需要重新取出 */ - Unit unit = business.entityManagerContainer().find(o.getId(), Unit.class); - if (null != unit) { - /** 删除组织属性 */ - business.entityManagerContainer().beginTransaction(UnitAttribute.class); - this.removeUnitAttribute(business, unit); - business.entityManagerContainer().commit(); - /** 删除组织职务 */ - business.entityManagerContainer().beginTransaction(UnitDuty.class); - this.removeUnitDuty(business, unit); - /** 先提交,否则删除身份无法通过校验 */ - business.entityManagerContainer().commit(); - /** 先获取身份 */ - List identities = this.listIdentity(business, unit); - /** 获取身份的ID */ - List identityIds = ListTools.extractProperty(identities, JpaObject.id_FIELDNAME, String.class, true, - true); - /** 删除在其他组织属性中可能的值 */ - business.entityManagerContainer().beginTransaction(UnitDuty.class); - this.removeMemberOfUnitDuty(business, identityIds); - business.entityManagerContainer().commit(); - /** 删除在群组中可能的值 */ - business.entityManagerContainer().beginTransaction(Group.class); - this.removeMemberOfGroup(business, unit); - business.entityManagerContainer().commit(); - /** 删除身份 */ - business.entityManagerContainer().beginTransaction(Identity.class); - for (Identity identity : identities) { - business.entityManagerContainer().remove(identity, CheckRemoveType.all); - } - /** 先提交,否则删除组织无法通过校验 */ - business.entityManagerContainer().commit(); - /** 最后删除组织 */ - business.entityManagerContainer().beginTransaction(Unit.class); - business.entityManagerContainer().remove(unit, CheckRemoveType.all); - business.entityManagerContainer().commit(); - } - } - - private void removeUnitAttribute(Business business, Unit unit) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitAttribute.class); - Root root = cq.from(UnitAttribute.class); - Predicate p = cb.equal(root.get(UnitAttribute_.unit), unit.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (UnitAttribute o : os) { - business.entityManagerContainer().remove(o, CheckRemoveType.all); - } - } - - private void removeUnitDuty(Business business, Unit unit) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.unit), unit.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (UnitDuty o : os) { - business.entityManagerContainer().remove(o, CheckRemoveType.all); - } - } - - private List listIdentity(Business business, Unit unit) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), unit.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - return os; - } - - private void removeMemberOfUnitDuty(Business business, List identityIds) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = root.get(UnitDuty_.identityList).in(identityIds); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (UnitDuty o : os) { - o.getIdentityList().removeAll(identityIds); - } - } - - private void removeMemberOfGroup(Business business, Unit unit) throws Exception { - EntityManager em = business.entityManagerContainer().get(Group.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Group.class); - Root root = cq.from(Group.class); - Predicate p = cb.isMember(unit.getId(), root.get(Group_.unitList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - for (Group o : os) { - o.getUnitList().remove(unit.getId()); - } - } - - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionEdit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionEdit.java deleted file mode 100644 index 3179af2b090887313e538dd07c15dbc342bdc8fe..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionEdit.java +++ /dev/null @@ -1,206 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import org.apache.commons.lang3.StringUtils; - -class ActionEdit extends BaseAction { - - @SuppressWarnings("unused") - private static Logger logger = LoggerFactory.getLogger(ActionEdit.class); - - ActionResult execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyEditUnit(effectivePerson, flag); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - - /** pick出来的对象需要重新取出 */ - emc.beginTransaction(Unit.class); - unit = emc.find(unit.getId(), Unit.class); - - Gson gsontool = new Gson(); - String strOriginalUnit = gsontool.toJson(unit); - - unit.setControllerList(ListTools.extractProperty(business.person().pick(ListTools.trim(unit.getControllerList(), true, true)), - JpaObject.id_FIELDNAME, String.class, true, true)); - Wi.copier.copy(wi, unit); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (this.duplicateUniqueWhenNotEmpty(business, unit)) { - throw new ExceptionDuplicateUnique(unit.getName(), unit.getUnique()); - } - if (this.checkNameInvalid(business,unit)){ - throw new ExceptionNameInvalid(unit.getName()); - } - /** 判断同一级别下name不重复 */ - if (this.duplicateName(business, unit)) { - throw new ExceptionDuplicateName(unit.getName()); - } - business.unit().adjustInherit(unit); - emc.check(unit, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Unit.class); - - this.updateIdentityUnitNameAndUnitLevelName(effectivePerson, flag, jsonElement); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("modfiy", "unit",strOriginalUnit, unit, effectivePerson); - - Wo wo = new Wo(); - wo.setId(unit.getId()); - result.setData(wo); - return result; - - } - - } - - public static class Wo extends WoId { - } - - public static class Wi extends Unit { - - private static final long serialVersionUID = -7527954993386512109L; - - // static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Unit.class, null, - // ListTools.toList(JpaObject.FieldsUnmodify, Unit.superior_FIELDNAME, Unit.pinyin_FIELDNAME, - // Unit.pinyinInitial_FIELDNAME, Unit.level_FIELDNAME, Unit.levelName_FIELDNAME, - // Unit.inheritedControllerList_FIELDNAME)); - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, Unit.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, Unit.pinyin_FIELDNAME, Unit.pinyinInitial_FIELDNAME, Unit.level_FIELDNAME, - Unit.levelName_FIELDNAME, Unit.inheritedControllerList_FIELDNAME)); - } - - //根据组织标志列出身份列表 - private List listIdentityByUnitFlag(Business business, Unit unit) throws Exception { - //Unit unit = business.unit().pick(unitFlag); - if (null == unit.getId() || StringUtils.isEmpty(unit.getId()) || null == unit) { - throw new ExceptionUnitNotExist(unit.getId()); - } - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), unit.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - return os; - } - - //列出所有递归下级组织(包含当前组织) - private List listUnit(Business business, String flag) throws Exception { - //Unit unit = business.unit().pick(flag); - - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.id), flag); - List units = em.createQuery(cq.select(root).where(p)).getResultList(); - - Unit unit; - if (units.size() != 1) { - unit = null; - throw new ExceptionUnitNotExistOrNotUniqueUnitId(flag); - } else { - unit = units.get(0); - } - - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - - //所有下级组织 - List os = business.unit().listSubNestedObject(unit); - - //把当前组织加入到os - List _currentUnitSingleArray = new ArrayList(); - _currentUnitSingleArray.add(unit); - os = ListTools.add(_currentUnitSingleArray, true, true, os); - return os; - } - - void updateIdentityUnitNameAndUnitLevelName(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception { - ApplicationCache.notify(Unit.class); - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyEditUnit(effectivePerson, flag); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - /* - * 同时更新unit下的所有身份的UnitLevelName,UnitName - * */ - List unitList = this.listUnit(business, flag); - - for (Unit u : unitList) { - List identityList = this.listIdentityByUnitFlag(business, u); - if (ListTools.isNotEmpty(identityList)) { - String _unitName = u.getName(); - String _unitLevelName = u.getLevelName(); - - for (Identity i : identityList) { - Identity _identity = emc.find(i.getId(), Identity.class); - _identity.setUnitName(_unitName); - _identity.setUnitLevelName(_unitLevelName); - emc.beginTransaction(Identity.class); - emc.check(_identity, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(Identity.class); - } - } - - } - - } - } - - - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGet.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGet.java deleted file mode 100644 index 680f8a37629e36377336311d7ad98e4f99570616..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGet.java +++ /dev/null @@ -1,297 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; -import com.x.organization.core.entity.UnitAttribute_; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionGet extends BaseAction { - - /** 获取一个组织的信息,要列示其直接下级组织和直接下级身份,同时为了显示的需要,要把下级组织的下级组织数量也带上,不然前端就不知道是否能再逐级展开 */ - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(effectivePerson, business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接上级组织对象") - private Wo woSupDirectUnit; - - @FieldDescribe("直接下级身份对象") - private List woSubDirectIdentityList; - - @FieldDescribe("组织属性对象") - private List woUnitAttributeList; - - @FieldDescribe("组织职务对象") - private List woUnitDutyList; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public List getWoSubDirectIdentityList() { - return woSubDirectIdentityList; - } - - public void setWoSubDirectIdentityList(List woSubDirectIdentityList) { - this.woSubDirectIdentityList = woSubDirectIdentityList; - } - - public Wo getWoSupDirectUnit() { - return woSupDirectUnit; - } - - public void setWoSupDirectUnit(Wo woSupDirectUnit) { - this.woSupDirectUnit = woSupDirectUnit; - } - - public List getWoUnitAttributeList() { - return woUnitAttributeList; - } - - public void setWoUnitAttributeList(List woUnitAttributeList) { - this.woUnitAttributeList = woUnitAttributeList; - } - - public List getWoUnitDutyList() { - return woUnitDutyList; - } - - public void setWoUnitDutyList(List woUnitDutyList) { - this.woUnitDutyList = woUnitDutyList; - } - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - public static class WoIdentity extends Identity { - - private static final long serialVersionUID = 7096544058621159846L; - - private WoPerson woPerson; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, WoIdentity.class, null, - JpaObject.FieldsInvisible); - - public WoPerson getWoPerson() { - return woPerson; - } - - public void setWoPerson(WoPerson woPerson) { - this.woPerson = woPerson; - } - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = 7096544058621159846L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(JpaObject.FieldsInvisible, "password", "icon")); - } - - public static class WoUnitAttribute extends UnitAttribute { - - private static final long serialVersionUID = -2515911253898058718L; - - static WrapCopier copier = WrapCopierFactory.wo(UnitAttribute.class, - WoUnitAttribute.class, null, JpaObject.FieldsInvisible); - } - - public static class WoUnitDuty extends UnitDuty { - - private static final long serialVersionUID = 7096544058621159846L; - - @FieldDescribe("身份对象") - private List woIdentityList; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, WoUnitDuty.class, null, - JpaObject.FieldsInvisible); - - public List getWoIdentityList() { - return woIdentityList; - } - - public void setWoIdentityList(List woIdentityList) { - this.woIdentityList = woIdentityList; - } - } - - private Wo get(EffectivePerson effectivePerson, Business business, String flag) throws Exception { - Unit o = business.unit().pick(flag); - if (null == o) { - throw new ExceptionUnitNotExist(flag); - } - Wo wo = Wo.copier.copy(o); - this.referenceUnitAttribute(business, wo); - this.referenceUnitDuty(business, wo); - this.referenceSubDirectIdentity(business, wo); - this.referenceSupDirectUnit(business, wo); - wo.setSubDirectIdentityCount(this.countSubDirectIdentity(business, wo)); - wo.setSubDirectUnitCount(this.countSubDirectUnit(business, wo)); - return wo; - } - - private void referenceSupDirectUnit(Business business, Wo wo) throws Exception { - if (StringUtils.isNotEmpty(wo.getSuperior())) { - Unit o = business.unit().pick(wo.getSuperior()); - if (null == o) { - throw new ExceptionSuperiorNotExist(wo.getName(), wo.getSuperior()); - } - Wo woSuperior = Wo.copier.copy(o); - wo.setWoSupDirectUnit(woSuperior); - } - } - - private void referenceSubDirectIdentity(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoIdentity.copier.copy(os); - for (WoIdentity woIdentity : wos) { - this.referencePerson(business, woIdentity); - } - wos = business.identity().sort(wos); - wo.setWoSubDirectIdentityList(wos); - } - - private void referenceUnitAttribute(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitAttribute.class); - Root root = cq.from(UnitAttribute.class); - Predicate p = cb.equal(root.get(UnitAttribute_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoUnitAttribute.copier.copy(os); - wos = business.unitAttribute().sort(wos); - wo.setWoUnitAttributeList(wos); - } - - private void referenceUnitDuty(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoUnitDuty.copier.copy(os); - for (WoUnitDuty woUnitDuty : wos) { - this.referenceIdentity(business, woUnitDuty); - } - wos = business.unitDuty().sort(wos); - wo.setWoUnitDutyList(wos); - } - - private void referenceIdentity(Business business, WoUnitDuty woUnitDuty) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = root.get(Identity_.id).in(woUnitDuty.getIdentityList()); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - List wos = WoIdentity.copier.copy(os); - for (WoIdentity woIdentity : wos) { - this.referencePerson(business, woIdentity); - } - wos = business.identity().sort(wos); - woUnitDuty.setWoIdentityList(wos); - } - - private void referencePerson(Business business, WoIdentity woIdentity) throws Exception { - Person person = business.person().pick(woIdentity.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(woIdentity.getPerson()); - } - WoPerson woPerson = WoPerson.copier.copy(person); - woIdentity.setWoPerson(woPerson); - } - - private Long countSubDirectUnit(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.superior), wo.getId()); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count; - } - - private Long countSubDirectIdentity(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), wo.getId()); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count; - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetSupDirect.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetSupDirect.java deleted file mode 100644 index 6a7fcd20896af2a5bfa07f251081ed92255c82f0..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetSupDirect.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionGetSupDirect extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private Wo get(Business business, String flag) throws Exception { - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - Unit sup = business.unit().getSupDirectObject(unit); - Wo wo = Wo.copier.copy(sup); - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - return wo; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetWithIdentityWithLevel.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetWithIdentityWithLevel.java deleted file mode 100644 index e162a8ba38b61e02661265464b8519667b65f476..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetWithIdentityWithLevel.java +++ /dev/null @@ -1,316 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; -import com.x.organization.core.entity.UnitAttribute_; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionGetWithIdentityWithLevel extends BaseAction { - - /*** 查找指定身份所在的递归群组,并返回指定level的那个群组 */ - ActionResult execute(EffectivePerson effectivePerson, String identityFlag, Integer level) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), identityFlag, level); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(effectivePerson, business, identityFlag, level); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - // @FieldDescribe("直接下级组织对象") - // private List woSubDirectUnitList; - - @FieldDescribe("直接上级组织对象") - private Wo woSupDirectUnit; - - @FieldDescribe("直接下级身份对象") - private List woSubDirectIdentityList; - - @FieldDescribe("组织属性对象") - private List woUnitAttributeList; - - @FieldDescribe("组织职务对象") - private List woUnitDutyList; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public List getWoSubDirectIdentityList() { - return woSubDirectIdentityList; - } - - public void setWoSubDirectIdentityList(List woSubDirectIdentityList) { - this.woSubDirectIdentityList = woSubDirectIdentityList; - } - - public Wo getWoSupDirectUnit() { - return woSupDirectUnit; - } - - public void setWoSupDirectUnit(Wo woSupDirectUnit) { - this.woSupDirectUnit = woSupDirectUnit; - } - - public List getWoUnitAttributeList() { - return woUnitAttributeList; - } - - public void setWoUnitAttributeList(List woUnitAttributeList) { - this.woUnitAttributeList = woUnitAttributeList; - } - - public List getWoUnitDutyList() { - return woUnitDutyList; - } - - public void setWoUnitDutyList(List woUnitDutyList) { - this.woUnitDutyList = woUnitDutyList; - } - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private Wo get(EffectivePerson effectivePerson, Business business, String flag, Integer level) throws Exception { - Wo wo = new Wo(); - Identity identity = business.identity().pick(flag); - if (null == identity) { - throw new ExceptionIdentityNotExist(flag); - } - Unit unit = business.unit().pick(identity.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(identity.getUnit()); - } - List unitIds = business.unit().listSupNested(unit.getId()); - /** 直接所在组织也加入到搜索范围 */ - unitIds.add(unit.getId()); - List units = business.entityManagerContainer().list(Unit.class, unitIds); - units = business.unit().sort(units); - for (Unit o : units) { - if (o.getLevel() == level) { - wo = Wo.copier.copy(o); - this.referenceUnitAttribute(business, wo); - this.referenceUnitDuty(business, wo); - this.referenceSubDirectIdentity(business, wo); - // this.referenceSubDirectUnit(business, wo); - this.referenceSupDirectUnit(business, wo); - wo.setSubDirectIdentityCount(this.countSubDirectIdentity(business, wo)); - wo.setSubDirectUnitCount(this.countSubDirectUnit(business, wo)); - return wo; - } - } - return wo; - } - - private void referenceSupDirectUnit(Business business, Wo wo) throws Exception { - if (StringUtils.isNotEmpty(wo.getSuperior())) { - Unit o = business.unit().pick(wo.getSuperior()); - if (null == o) { - throw new ExceptionSuperiorNotExist(wo.getName(), wo.getSuperior()); - } - Wo woSuperior = Wo.copier.copy(o); - wo.setWoSupDirectUnit(woSuperior); - } - } - - private void referenceSubDirectIdentity(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoIdentity.copier.copy(os); - for (WoIdentity woIdentity : wos) { - this.referencePerson(business, woIdentity); - } - wos = business.identity().sort(wos); - wo.setWoSubDirectIdentityList(wos); - } - - private void referenceUnitAttribute(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitAttribute.class); - Root root = cq.from(UnitAttribute.class); - Predicate p = cb.equal(root.get(UnitAttribute_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoUnitAttribute.copier.copy(os); - wos = business.unitAttribute().sort(wos); - wo.setWoUnitAttributeList(wos); - } - - private void referenceUnitDuty(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoUnitDuty.copier.copy(os); - for (WoUnitDuty woUnitDuty : wos) { - this.referenceIdentity(business, woUnitDuty); - } - wos = business.unitDuty().sort(wos); - wo.setWoUnitDutyList(wos); - } - - private void referenceIdentity(Business business, WoUnitDuty woUnitDuty) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = root.get(Identity_.id).in(woUnitDuty.getIdentityList()); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - List wos = WoIdentity.copier.copy(os); - for (WoIdentity woIdentity : wos) { - this.referencePerson(business, woIdentity); - } - wos = business.identity().sort(wos); - woUnitDuty.setWoIdentityList(wos); - } - - private void referencePerson(Business business, WoIdentity woIdentity) throws Exception { - Person person = business.person().pick(woIdentity.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(woIdentity.getPerson()); - } - WoPerson woPerson = WoPerson.copier.copy(person); - woIdentity.setWoPerson(woPerson); - } - - private Long countSubDirectUnit(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.superior), wo.getId()); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count; - } - - private Long countSubDirectIdentity(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), wo.getId()); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count; - } - - public static class WoIdentity extends Identity { - - private static final long serialVersionUID = 7096544058621159846L; - - private WoPerson woPerson; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, WoIdentity.class, null, - JpaObject.FieldsInvisible); - - public WoPerson getWoPerson() { - return woPerson; - } - - public void setWoPerson(WoPerson woPerson) { - this.woPerson = woPerson; - } - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = 7096544058621159846L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(JpaObject.FieldsInvisible, "password", "icon")); - } - - public static class WoUnitAttribute extends UnitAttribute { - - private static final long serialVersionUID = -2515911253898058718L; - - static WrapCopier copier = WrapCopierFactory.wo(UnitAttribute.class, - WoUnitAttribute.class, null, JpaObject.FieldsInvisible); - } - - public static class WoUnitDuty extends UnitDuty { - - private static final long serialVersionUID = 7096544058621159846L; - - @FieldDescribe("身份对象") - private List woIdentityList; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, WoUnitDuty.class, null, - JpaObject.FieldsInvisible); - - public List getWoIdentityList() { - return woIdentityList; - } - - public void setWoIdentityList(List woIdentityList) { - this.woIdentityList = woIdentityList; - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetWithIdentityWithType.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetWithIdentityWithType.java deleted file mode 100644 index 03149d347330f5a8e5c8c98513f4b7521cf18e34..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionGetWithIdentityWithType.java +++ /dev/null @@ -1,319 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.Collections; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; -import com.x.organization.core.entity.UnitAttribute_; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionGetWithIdentityWithType extends BaseAction { - - /*** 查找指定身份所在的递归群组,并返回指定type的那个群组 */ - ActionResult execute(EffectivePerson effectivePerson, String identityFlag, String type) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), identityFlag, type); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(effectivePerson, business, identityFlag, type); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - // @FieldDescribe("直接下级组织对象") - // private List woSubDirectUnitList; - - @FieldDescribe("直接上级组织对象") - private Wo woSupDirectUnit; - - @FieldDescribe("直接下级身份对象") - private List woSubDirectIdentityList; - - @FieldDescribe("组织属性对象") - private List woUnitAttributeList; - - @FieldDescribe("组织职务对象") - private List woUnitDutyList; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public List getWoSubDirectIdentityList() { - return woSubDirectIdentityList; - } - - public void setWoSubDirectIdentityList(List woSubDirectIdentityList) { - this.woSubDirectIdentityList = woSubDirectIdentityList; - } - - public Wo getWoSupDirectUnit() { - return woSupDirectUnit; - } - - public void setWoSupDirectUnit(Wo woSupDirectUnit) { - this.woSupDirectUnit = woSupDirectUnit; - } - - public List getWoUnitAttributeList() { - return woUnitAttributeList; - } - - public void setWoUnitAttributeList(List woUnitAttributeList) { - this.woUnitAttributeList = woUnitAttributeList; - } - - public List getWoUnitDutyList() { - return woUnitDutyList; - } - - public void setWoUnitDutyList(List woUnitDutyList) { - this.woUnitDutyList = woUnitDutyList; - } - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private Wo get(EffectivePerson effectivePerson, Business business, String identityFlag, String type) - throws Exception { - Wo wo = new Wo(); - Identity identity = business.identity().pick(identityFlag); - if (null == identity) { - throw new ExceptionIdentityNotExist(identityFlag); - } - Unit unit = business.unit().pick(identity.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(identity.getUnit()); - } - List unitIds = business.unit().listSupNested(unit.getId()); - /** 直接所在组织也加入到搜索范围 */ - unitIds.add(unit.getId()); - List units = business.entityManagerContainer().list(Unit.class, unitIds); - units = business.unit().sort(units); - Collections.reverse(units); - for (Unit o : units) { - if (o.getTypeList().contains(type)) { - wo = Wo.copier.copy(o); - this.referenceUnitAttribute(business, wo); - this.referenceUnitDuty(business, wo); - this.referenceSubDirectIdentity(business, wo); - // this.referenceSubDirectUnit(business, wo); - this.referenceSupDirectUnit(business, wo); - wo.setSubDirectIdentityCount(this.countSubDirectIdentity(business, wo)); - wo.setSubDirectUnitCount(this.countSubDirectUnit(business, wo)); - return wo; - } - } - return wo; - } - - private void referenceSupDirectUnit(Business business, Wo wo) throws Exception { - if (StringUtils.isNotEmpty(wo.getSuperior())) { - Unit o = business.unit().pick(wo.getSuperior()); - if (null == o) { - throw new ExceptionSuperiorNotExist(wo.getName(), wo.getSuperior()); - } - Wo woSuperior = Wo.copier.copy(o); - wo.setWoSupDirectUnit(woSuperior); - } - } - - private void referenceSubDirectIdentity(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoIdentity.copier.copy(os); - for (WoIdentity woIdentity : wos) { - this.referencePerson(business, woIdentity); - } - wos = business.identity().sort(wos); - wo.setWoSubDirectIdentityList(wos); - } - - private void referenceUnitAttribute(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitAttribute.class); - Root root = cq.from(UnitAttribute.class); - Predicate p = cb.equal(root.get(UnitAttribute_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoUnitAttribute.copier.copy(os); - wos = business.unitAttribute().sort(wos); - wo.setWoUnitAttributeList(wos); - } - - private void referenceUnitDuty(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.unit), wo.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = WoUnitDuty.copier.copy(os); - for (WoUnitDuty woUnitDuty : wos) { - this.referenceIdentity(business, woUnitDuty); - } - wos = business.unitDuty().sort(wos); - wo.setWoUnitDutyList(wos); - } - - private void referenceIdentity(Business business, WoUnitDuty woUnitDuty) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = root.get(Identity_.id).in(woUnitDuty.getIdentityList()); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - List wos = WoIdentity.copier.copy(os); - for (WoIdentity woIdentity : wos) { - this.referencePerson(business, woIdentity); - } - wos = business.identity().sort(wos); - woUnitDuty.setWoIdentityList(wos); - } - - private void referencePerson(Business business, WoIdentity woIdentity) throws Exception { - Person person = business.person().pick(woIdentity.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(woIdentity.getPerson()); - } - WoPerson woPerson = WoPerson.copier.copy(person); - woIdentity.setWoPerson(woPerson); - } - - private Long countSubDirectUnit(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.superior), wo.getId()); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count; - } - - private Long countSubDirectIdentity(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Identity.class); - Predicate p = cb.equal(root.get(Identity_.unit), wo.getId()); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count; - } - - public static class WoIdentity extends Identity { - - private static final long serialVersionUID = 7096544058621159846L; - - private WoPerson woPerson; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, WoIdentity.class, null, - JpaObject.FieldsInvisible); - - public WoPerson getWoPerson() { - return woPerson; - } - - public void setWoPerson(WoPerson woPerson) { - this.woPerson = woPerson; - } - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = 7096544058621159846L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(JpaObject.FieldsInvisible, "password", "icon")); - } - - public static class WoUnitAttribute extends UnitAttribute { - - private static final long serialVersionUID = -2515911253898058718L; - - static WrapCopier copier = WrapCopierFactory.wo(UnitAttribute.class, - WoUnitAttribute.class, null, JpaObject.FieldsInvisible); - } - - public static class WoUnitDuty extends UnitDuty { - - private static final long serialVersionUID = 7096544058621159846L; - - @FieldDescribe("身份对象") - private List woIdentityList; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, WoUnitDuty.class, null, - JpaObject.FieldsInvisible); - - public List getWoIdentityList() { - return woIdentityList; - } - - public void setWoIdentityList(List woIdentityList) { - this.woIdentityList = woIdentityList; - } - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionList.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionList.java deleted file mode 100644 index fb589cfd11ed4875acced94fa6020c188e9c9920..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionList.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionList extends BaseAction { - - /* 批量获取组织信息 */ - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), gson.toJson(jsonElement)); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - List wos = this.list(business, wi.getUnitList()); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("组织标识") - private List unitList = new ArrayList<>(); - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(Business business, List list) throws Exception { - List wos = new ArrayList<>(); - if (ListTools.isNotEmpty(list)) { - wos = Wo.copier.copy(business.unit().pick(list)); - for (Wo wo : wos) { - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount(business.entityManagerContainer().countEqual(Identity.class, - Identity.unit_FIELDNAME, wo.getId())); - } - wos = business.unit().sort(wos); - } - return wos; - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListLike.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListLike.java deleted file mode 100644 index 4681abdab3454da3bd071db2ea837569e09c3e8c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListLike.java +++ /dev/null @@ -1,173 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionListLike extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), wi.getType(), - StringUtils.join(wi.getUnitList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(effectivePerson, business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索组织范围,为空则不限定") - private List unitList = new ArrayList<>(); - @FieldDescribe("组织类型") - private String type; - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("递归上级组织对象") - private List woSupNestedUnitList; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public List getWoSupNestedUnitList() { - return woSupNestedUnitList; - } - - public void setWoSupNestedUnitList(List woSupNestedUnitList) { - this.woSupNestedUnitList = woSupNestedUnitList; - } - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List unitIds = business.expendUnitToUnit(ListTools.trim(wi.getUnitList(), true, true)); - /** 去掉指定范围本身,仅包含下级 */ - unitIds.removeAll(ListTools.extractProperty(business.unit().pick(wi.getUnitList()), JpaObject.id_FIELDNAME, - String.class, true, true)); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.like(cb.lower(root.get(Unit_.name)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR); - p = cb.or(p, cb.like(cb.lower(root.get(Unit_.unique)), "%" + str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Unit_.pinyin)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Unit_.pinyinInitial)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - p = cb.or(p, cb.like(cb.lower(root.get(Unit_.distinguishedName)), str + "%", StringTools.SQL_ESCAPE_CHAR)); - - if (ListTools.isNotEmpty(unitIds)) { - p = cb.and(p, root.get(Unit_.id).in(unitIds)); - } - if (StringUtils.isNotEmpty(wi.getType())) { - p = cb.and(p, cb.isMember(wi.getType(), root.get(Unit_.typeList))); - } - cq.select(root).where(p); - List os = em.createQuery(cq).getResultList(); - wos = Wo.copier.copy(os); - for (Wo wo : wos) { - wo.setWoSupNestedUnitList(Wo.copier.copy(business.unit().listSupNestedObject(wo))); - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - } - wos = business.unit().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListLikePinyin.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListLikePinyin.java deleted file mode 100644 index 38fe16d9333ee099bd21b27412ef07f596b64592..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListLikePinyin.java +++ /dev/null @@ -1,168 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionListLikePinyin extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), wi.getType(), - StringUtils.join(wi.getUnitList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(effectivePerson, business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索组织范围,为空则不限定") - private List unitList = new ArrayList<>(); - @FieldDescribe("组织类型") - private String type; - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("递归上级组织对象") - private List woSupNestedUnitList; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public List getWoSupNestedUnitList() { - return woSupNestedUnitList; - } - - public void setWoSupNestedUnitList(List woSupNestedUnitList) { - this.woSupNestedUnitList = woSupNestedUnitList; - } - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List unitIds = business.expendUnitToUnit(ListTools.trim(wi.getUnitList(), true, true)); - /** 去掉指定范围本身,仅包含下级 */ - unitIds.removeAll(ListTools.extractProperty(business.unit().pick(wi.getUnitList()), JpaObject.id_FIELDNAME, - String.class, true, true)); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.like(root.get(Unit_.pinyin), str + "%"); - p = cb.or(p, cb.like(root.get(Unit_.pinyinInitial), str + "%")); - if (ListTools.isNotEmpty(unitIds)) { - p = cb.and(p, root.get(Unit_.id).in(unitIds)); - } - if (StringUtils.isNotEmpty(wi.getType())) { - p = cb.and(p, cb.isMember(wi.getType(), root.get(Unit_.typeList))); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - for (Wo wo : wos) { - wo.setWoSupNestedUnitList(Wo.copier.copy(business.unit().listSupNestedObject(wo))); - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - } - wos = business.unit().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListNext.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListNext.java deleted file mode 100644 index 7d168d949d99940d70431ab9926bba6920f79ab6..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListNext.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionListNext extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - id = unit.getId(); - } - result = this.standardListNext(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListPinyinInitial.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListPinyinInitial.java deleted file mode 100644 index 5b2ba97237d1efb43df1c7f59d254cf0f39292bd..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListPinyinInitial.java +++ /dev/null @@ -1,167 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.base.core.project.tools.StringTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionListPinyinInitial extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getKey(), wi.getType(), - StringUtils.join(wi.getUnitList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(effectivePerson, business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索关键字") - private String key; - @FieldDescribe("搜索组织范围,为空则不限定") - private List unitList = new ArrayList<>(); - @FieldDescribe("组织类型") - private String type; - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("递归上级组织对象") - private List woSupNestedUnitList; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public List getWoSupNestedUnitList() { - return woSupNestedUnitList; - } - - public void setWoSupNestedUnitList(List woSupNestedUnitList) { - this.woSupNestedUnitList = woSupNestedUnitList; - } - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isEmpty(wi.getKey())) { - return wos; - } - List unitIds = business.expendUnitToUnit(wi.getUnitList()); - /** 去掉指定范围本身,仅包含下级 */ - unitIds.removeAll(ListTools.extractProperty(business.unit().pick(wi.getUnitList()), JpaObject.id_FIELDNAME, - String.class, true, true)); - String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey())); - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.like(root.get(Unit_.pinyinInitial), str + "%", StringTools.SQL_ESCAPE_CHAR); - if (ListTools.isNotEmpty(unitIds)) { - p = cb.and(p, root.get(Unit_.id).in(unitIds)); - } - if (StringUtils.isNotEmpty(wi.getType())) { - p = cb.and(p, cb.isMember(wi.getType(), root.get(Unit_.typeList))); - } - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - wos = Wo.copier.copy(os); - for (Wo wo : wos) { - wo.setWoSupNestedUnitList(Wo.copier.copy(business.unit().listSupNestedObject(wo))); - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - } - wos = business.unit().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListPrev.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListPrev.java deleted file mode 100644 index 2e7fd3da9edd1e0bc49ed74448bb879c0ce52d63..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListPrev.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionListPrev extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - id = unit.getId(); - } - result = this.standardListPrev(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubDirect.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubDirect.java deleted file mode 100644 index 73efcb5a3a2aa7feb6dd57e4f68541379b447ce4..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubDirect.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionListSubDirect extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, flag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(Business business, String flag) throws Exception { - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - List os = business.unit().listSubDirectObject(unit); - List wos = Wo.copier.copy(os); - for (Wo wo : wos) { - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - } - wos = business.unit().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubDirectWithType.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubDirectWithType.java deleted file mode 100644 index 3517cbd2e2701857fc6840a800ce0b6ce4ad3f48..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubDirectWithType.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; -import java.util.stream.Collectors; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionListSubDirectWithType extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, String type) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, type); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, flag, type); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(Business business, String flag, String type) throws Exception { - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - List os = business.unit().listSubDirectObject(unit); - List wos = Wo.copier.copy(os); - if (StringUtils.isNotEmpty(type)) { - wos = wos.stream().filter(o -> { - return o.getTypeList().contains(type); - }).collect(Collectors.toList()); - } - for (Wo wo : wos) { - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - } - wos = business.unit().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubNested.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubNested.java deleted file mode 100644 index e2c0de6a1792dccf5f55ebb522d35077d3188dbd..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSubNested.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionListSubNested extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, flag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(Business business, String flag) throws Exception { - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - List os = business.unit().listSubNestedObject(unit); - List wos = Wo.copier.copy(os); - wos = business.unit().sort(wos); - for (Wo wo : wos) { - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - } - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSupNested.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSupNested.java deleted file mode 100644 index 37e2ee56c6d805026dba1568588a89107798b316..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSupNested.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionListSupNested extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, flag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(Business business, String flag) throws Exception { - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - List os = business.unit().listSupNestedObject(unit); - List wos = Wo.copier.copy(os); - wos = business.unit().sort(wos); - for (Wo wo : wos) { - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - } - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSupNestedWithType.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSupNestedWithType.java deleted file mode 100644 index f61aa131bb773b41454fb4def0628582a176cfcf..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListSupNestedWithType.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; -import java.util.stream.Collectors; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; - -import net.sf.ehcache.Element; - -class ActionListSupNestedWithType extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, String type) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, type); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, flag, type); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接下级身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(Business business, String flag, String type) throws Exception { - Unit unit = business.unit().pick(flag); - if (null == unit) { - throw new ExceptionUnitNotExist(flag); - } - List os = business.unit().listSupNestedObject(unit); - List wos = Wo.copier.copy(os); - if (StringUtils.isNotEmpty(type)) { - wos = wos.stream().filter(o -> { - return o.getTypeList().contains(type); - }).collect(Collectors.toList()); - } - for (Wo wo : wos) { - wo.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, wo.getId())); - wo.setSubDirectIdentityCount( - business.entityManagerContainer().countEqual(Identity.class, Identity.unit_FIELDNAME, wo.getId())); - } - wos = business.unit().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListTop.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListTop.java deleted file mode 100644 index 6d8d9a44663630b0f1b0009c75a7e95419255daa..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListTop.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionListTop extends BaseAction { - /** 用于显示顶层组织,输出下级组织和组织成员数量 */ - ActionResult> execute(EffectivePerson effectivePerson) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass()); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接成员身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(Business business) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.level), 1); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = Wo.copier.copy(os); - wos.stream().forEach(o -> { - try { - o.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, o.getId())); - o.setSubDirectIdentityCount(business.entityManagerContainer().countEqual(Identity.class, - Identity.unit_FIELDNAME, o.getId())); - } catch (Exception e) { - e.printStackTrace(); - } - }); - wos = business.unit().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListTopWithType.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListTopWithType.java deleted file mode 100644 index 30d2560c0ebd5c0163671b172dbf0638311e1abf..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListTopWithType.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionListTopWithType extends BaseAction { - - /** 用于显示顶层组织,输出下级组织和组织成员数量 */ - ActionResult> execute(EffectivePerson effectivePerson, String type) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), type); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, type); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接下级组织数量") - private Long subDirectUnitCount = 0L; - - @FieldDescribe("直接成员身份数量") - private Long subDirectIdentityCount = 0L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getSubDirectUnitCount() { - return subDirectUnitCount; - } - - public void setSubDirectUnitCount(Long subDirectUnitCount) { - this.subDirectUnitCount = subDirectUnitCount; - } - - public Long getSubDirectIdentityCount() { - return subDirectIdentityCount; - } - - public void setSubDirectIdentityCount(Long subDirectIdentityCount) { - this.subDirectIdentityCount = subDirectIdentityCount; - } - - } - - private List list(Business business, String type) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.level), 1); - p = cb.and(p, cb.isMember(type, root.get(Unit_.typeList))); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = Wo.copier.copy(os); - wos.stream().forEach(o -> { - try { - o.setSubDirectUnitCount( - business.entityManagerContainer().countEqual(Unit.class, Unit.superior_FIELDNAME, o.getId())); - o.setSubDirectIdentityCount(business.entityManagerContainer().countEqual(Identity.class, - Identity.unit_FIELDNAME, o.getId())); - } catch (Exception e) { - e.printStackTrace(); - } - }); - wos = business.unit().sort(wos); - return wos; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListType.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListType.java deleted file mode 100644 index 9887d8041b2e4df09aed423f0dc0faf75a4a4f8c..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListType.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WrapStringList; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionListType extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass()); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.list(effectivePerson, business); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - return result; - } - } - - public static class Wo extends WrapStringList { - - } - - private Wo list(EffectivePerson effectivePerson, Business business) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Unit.class); - Root root = cq.from(Unit.class); - Predicate p = cb.isNotEmpty(root.get(Unit_.typeList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List list = new ArrayList<>(); - for (Unit o : os) { - if (ListTools.isNotEmpty(o.getTypeList())) { - list.addAll(o.getTypeList()); - } - } - list = list.stream().filter(o -> !StringUtils.isEmpty(o)).distinct().sorted().collect(Collectors.toList()); - Wo wo = new Wo(); - wo.getValueList().addAll(list); - return wo; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListWithUnitWithType.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListWithUnitWithType.java deleted file mode 100644 index 1f10cf52321b0f476d68058ee10cee65314a8cf1..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ActionListWithUnitWithType.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -import net.sf.ehcache.Element; - -class ActionListWithUnitWithType extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), wi.getType(), - StringUtils.join(wi.getUnitList(), ",")); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(effectivePerson, business, wi); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - this.updateControl(effectivePerson, business, result.getData()); - return result; - } - } - - public static class Wi extends GsonPropertyObject { - - @FieldDescribe("搜索组织范围,为空则不限定") - private List unitList = new ArrayList<>(); - @FieldDescribe("组织的type属性值,匹配多值中的某一个,不能为空") - private String type; - - public List getUnitList() { - return unitList; - } - - public void setUnitList(List unitList) { - this.unitList = unitList; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - } - - public static class WoIdentity extends Identity { - - private static final long serialVersionUID = 7096544058621159846L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, WoIdentity.class, null, - JpaObject.FieldsInvisible); - } - - public static class Wo extends WoAbstractUnit { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("直接下级组织组织对象") - private List woSubDirectUnitList = new ArrayList<>(); - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public List getWoSubDirectUnitList() { - return woSubDirectUnitList; - } - - public void setWoSubDirectUnitList(List woSubDirectUnitList) { - this.woSubDirectUnitList = woSubDirectUnitList; - } - - } - - private List list(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - if (StringUtils.isNotEmpty(wi.getType())) { - if (ListTools.isEmpty(wi.getUnitList())) { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Unit.class); - Predicate p = cb.isMember(wi.getType(), root.get(Unit_.typeList)); - List os = em.createQuery(cq.select(root.get(Unit_.id)).where(p).distinct(true)).getResultList(); - List referenceUnitIds = new ArrayList<>(os); - for (String str : os) { - referenceUnitIds.addAll(business.unit().listSupNested(str)); - } - referenceUnitIds = ListTools.trim(referenceUnitIds, true, true); - List list = Wo.copier.copy(business.entityManagerContainer().list(Unit.class, referenceUnitIds)); - list = business.unit().sort(list); - this.format(list); - for (Wo wo : list) { - if (wo.getLevel() == 1) { - wos.add(wo); - } - } - } else { - return this.listWithUnitWithType(effectivePerson, business, wi); - } - } - return wos; - } - - private List listWithUnitWithType(EffectivePerson effectivePerson, Business business, Wi wi) throws Exception { - List wos = new ArrayList<>(); - List unitIds = new ArrayList<>(); - for (Unit o : business.unit().pick(wi.getUnitList())) { - if (null != o) { - unitIds.add(o.getId()); - } - } - if (ListTools.isEmpty(unitIds)) { - return wos; - } - List expendUnitIds = business.expendUnitToUnit(unitIds); - /** 搜索范围不包含自己 */ - expendUnitIds.removeAll(unitIds); - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Unit.class); - Predicate p = cb.isMember(wi.getType(), root.get(Unit_.typeList)); - p = cb.and(p, root.get(Unit_.id).in(expendUnitIds)); - List os = em.createQuery(cq.select(root.get(Unit_.id)).where(p).distinct(true)).getResultList(); - List referenceUnitIds = new ArrayList(os); - for (String str : os) { - referenceUnitIds.addAll(business.unit().listSupNested(str)); - } - referenceUnitIds = ListTools.trim(referenceUnitIds, true, true); - List list = Wo.copier.copy(business.entityManagerContainer().list(Unit.class, referenceUnitIds)); - list = business.unit().sort(list); - this.format(list); - for (Wo wo : list) { - if (unitIds.contains(wo.getId())) { - wos.add(wo); - } - } - return wos; - } - - private void format(List list) { - for (Wo wo : list) { - if (wo.getLevel() != 1) { - Wo o = this.find(list, wo.getSuperior()); - if (null != o) { - o.getWoSubDirectUnitList().add(wo); - } - } - } - } - - private Wo find(List list, String id) { - for (Wo o : list) { - if (StringUtils.equalsIgnoreCase(id, o.getId())) { - return o; - } - } - return null; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/BaseAction.java deleted file mode 100644 index f34c0fbd0a45e62a142421c1045f1e8461ac683e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/BaseAction.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; -import java.util.Objects; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.Unit_; - -abstract class BaseAction extends StandardJaxrsAction { - - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - protected boolean duplicateUniqueWhenNotEmpty(Business business, Unit unit) throws Exception { - if (StringUtils.isNotEmpty(unit.getUnique())) { - if (business.entityManagerContainer().duplicateWithFlags(unit.getId(), Unit.class, unit.getUnique())) { - return true; - } - } - return false; - } - - /** 同一上级unit下没有重名的 */ - protected boolean duplicateName(Business business, Unit unit) throws Exception { - EntityManager em = business.entityManagerContainer().get(Unit.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(Unit.class); - Predicate p = cb.equal(root.get(Unit_.name), unit.getName()); - p = cb.and(p, cb.equal(root.get(Unit_.superior), Objects.toString(unit.getSuperior(), ""))); - p = cb.and(p, cb.notEqual(root.get(Unit_.id), unit.getId())); - Long count = em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult(); - return count > 0; - } - - protected boolean checkNameInvalid(Business business, Unit unit) throws Exception { - if (StringUtils.containsAny(unit.getName(), new String[] { "\\","/"})) { - return true; - } - return false; - - } - - public static class Control extends GsonPropertyObject { - - private Boolean allowEdit = false; - private Boolean allowDelete = false; - - public Boolean getAllowEdit() { - return allowEdit; - } - - public void setAllowEdit(Boolean allowEdit) { - this.allowEdit = allowEdit; - } - - public Boolean getAllowDelete() { - return allowDelete; - } - - public void setAllowDelete(Boolean allowDelete) { - this.allowDelete = allowDelete; - } - - } - - public static abstract class WoAbstractUnit extends Unit { - - private static final long serialVersionUID = -3622801980504937581L; - - @FieldDescribe("当前用户是否可以操作组织") - private Control control = new Control(); - - public Control getControl() { - return control; - } - - public void setControl(Control control) { - this.control = control; - } - - } - - protected void updateControl(EffectivePerson effectivePerson, Business business, - List wos) throws Exception { - if (effectivePerson.isManager() || business.hasAnyRole(effectivePerson, OrganizationDefinition.Manager, - OrganizationDefinition.UnitManager, OrganizationDefinition.OrganizationManager)) { - wos.forEach(o -> { - o.getControl().setAllowDelete(true); - o.getControl().setAllowEdit(true); - }); - } else { - for (T o : wos) { - Boolean allow = business.editable(effectivePerson, o); - o.getControl().setAllowDelete(allow); - o.getControl().setAllowEdit(allow); - } - } - } - - protected void updateControl(EffectivePerson effectivePerson, Business business, T t) - throws Exception { - Boolean allow = business.editable(effectivePerson, t); - t.getControl().setAllowDelete(allow); - t.getControl().setAllowEdit(allow); - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyCreateTopUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyCreateTopUnit.java deleted file mode 100644 index cd95149dc605242c6b70b17fc44eedabefd148a1..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyCreateTopUnit.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyCreateTopUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyCreateTopUnit(EffectivePerson effectivePerson, String name) { - super("{} 不能创建顶层组织:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyCreateUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyCreateUnit.java deleted file mode 100644 index 9a055c93c7430be873941b4362841f034299a638..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyCreateUnit.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyCreateUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyCreateUnit(EffectivePerson effectivePerson, String name) { - super("{} 不能创建组织:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyDeleteUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyDeleteUnit.java deleted file mode 100644 index 1726c26ea14f0bdb74e51dc0f98d3979b8b7757e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyDeleteUnit.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyDeleteUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyDeleteUnit(EffectivePerson effectivePerson, String name) { - super("{} 不能删除组织:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyEditUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyEditUnit.java deleted file mode 100644 index 35cb0649934846ef5cad8be6e8c5114c965c68d0..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDenyEditUnit.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyEditUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyEditUnit(EffectivePerson effectivePerson, String name) { - super("{} 不能编辑组织:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateName.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateName.java deleted file mode 100644 index 666d9e51abb7e86de4d7d5f9e6f453b5a1df65fc..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateName.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateName extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateName(String name) { - super("组织 {} 在同一层级下必须唯一.", name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateUnique.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateUnique.java deleted file mode 100644 index dfd3861c50d830d04143544c4e5b5f2b130aa7a3..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateUnique.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateUnique extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateUnique(String name, String unique) { - super("组织 {} 的唯一标识:{},不能和已有的标识冲突.", name, unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateWithFlag.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateWithFlag.java deleted file mode 100644 index 4d6bc6b9520818744fd2818d529785574c2d15b3..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionDuplicateWithFlag.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateWithFlag extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateWithFlag(String name, String unique) { - super("组织的名称:{},唯一标识:{},不能和已有的标识冲突.", name, unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionIdentityNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionIdentityNotExist.java deleted file mode 100644 index 65ba133638c2ff3b1d0f1536362961940cf29701..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionIdentityNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionIdentityNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionIdentityNotExist(String flag) { - super("身份:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionNameEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionNameEmpty.java deleted file mode 100644 index d89e6e4958ee930dc495fcec887f855e269c6104..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionNameEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameEmpty extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionNameEmpty() { - super("组织名称不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionPersonNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionPersonNotExist.java deleted file mode 100644 index a2fa24d153e2d11a4cb6e508eab24213337228bb..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionPersonNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPersonNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionPersonNotExist(String flag) { - super("人员:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionSuperiorNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionSuperiorNotExist.java deleted file mode 100644 index b499aeba409707218d3eb2317bfb0d09e742dae4..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionSuperiorNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionSuperiorNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionSuperiorNotExist(String flag, String superiorFlag) { - super("组织:{}, 的上级组织: {}, 不存在.", flag, superiorFlag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionUnitNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionUnitNotExist.java deleted file mode 100644 index b0cb4acc82282c42887554075a5ad631f0820e08..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionUnitNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionUnitNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionUnitNotExist(String flag) { - super("组织:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionUnitNotExistOrNotUniqueUnitId.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionUnitNotExistOrNotUniqueUnitId.java deleted file mode 100644 index eb19e92e4150446ee052ed7138e2a70bd963598e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/ExceptionUnitNotExistOrNotUniqueUnitId.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionUnitNotExistOrNotUniqueUnitId extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionUnitNotExistOrNotUniqueUnitId(String flag) { - super("组织:{}, 不存在,或者组织uuid不唯一.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/UnitAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/UnitAction.java deleted file mode 100644 index e1e85516876de7ddcea187f80efb187008f7377a..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unit/UnitAction.java +++ /dev/null @@ -1,429 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unit; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.google.gson.JsonElement; -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("unit") -@JaxrsDescribe("组织操作") -public class UnitAction extends StandardJaxrsAction { - - private static Logger logger = LoggerFactory.getLogger(UnitAction.class); - - @JaxrsMethodDescribe(value = "获取组织.", action = ActionGet.class) - @GET - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGet().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "批量获取组织.", action = ActionList.class) - @POST - @Path("list") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void list(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionList().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据身份获取递归上级组织中等级为指定登记的组织.", action = ActionGetWithIdentityWithLevel.class) - @GET - @Path("identity/{identityFlag}/level/{level}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void getWithIdentityWithLevel(@Suspended final AsyncResponse asyncResponse, - @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("identityFlag") String identityFlag, - @JaxrsParameterDescribe("组织等级") @PathParam("level") Integer level) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGetWithIdentityWithLevel().execute(effectivePerson, identityFlag, level); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据身份获取递归上级组织中type为指定type的组织.", action = ActionGetWithIdentityWithType.class) - @GET - @Path("identity/{identityFlag}/type/{type}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void getWithIdentityWithType(@Suspended final AsyncResponse asyncResponse, - @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("identityFlag") String identityFlag, - @JaxrsParameterDescribe("组织类型") @PathParam("type") String type) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGetWithIdentityWithType().execute(effectivePerson, identityFlag, type); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "创建组织.", action = ActionCreate.class) - @POST - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void create(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionCreate().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新组织.", action = ActionEdit.class) - @PUT - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void edit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionEdit().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除组织.", action = ActionDelete.class) - @DELETE - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void delete(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDelete().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "通过type属性值搜索组织.", action = ActionListWithUnitWithType.class) - @PUT - @Path("list/unit/type") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithUnitWithType(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithUnitWithType().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示组织,下一页.", action = ActionListNext.class) - @GET - @Path("list/{flag}/next/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void listNext(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListNext().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示组织对象,上一页.", action = ActionListPrev.class) - @GET - @Path("list/{flag}/prev/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void listPrev(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPrev().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "直接下级组织.", action = ActionListSubDirect.class) - @GET - @Path("list/{flag}/sub/direct") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSubDirect(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSubDirect().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找直接下级组织中符合type值的对象.", action = ActionListSubDirectWithType.class) - @GET - @Path("list/{flag}/sub/direct/type/{type}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSubDirectWithType(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("组织的type属性值,匹配多值中的某一个") @PathParam("type") String type) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSubDirectWithType().execute(effectivePerson, flag, type); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "递归下级组织.", action = ActionListSubNested.class) - @GET - @Path("list/{flag}/sub/nested") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSubNested(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSubNested().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示顶层组织.", action = ActionListTop.class) - @GET - @Path("list/top") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void listTop(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListTop().execute(effectivePerson); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "通过type属性值搜索顶层组织.", action = ActionListTopWithType.class) - @GET - @Path("list/top/type/{type}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listTopWithType(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织的type属性值,匹配多值中的某一个") @PathParam("type") String type) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListTopWithType().execute(effectivePerson, type); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示所有的组织属性.", action = ActionListType.class) - @GET - @Path("list/type") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - public void listType(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListType().execute(effectivePerson); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取拼音首字母开始的组织.", action = ActionListPinyinInitial.class) - @PUT - @Path("list/pinyininitial") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPinyinInitial(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPinyinInitial().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据名称进行模糊查询.", action = ActionListLike.class) - @PUT - @Path("list/like") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLike(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLike().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据拼音或者首字母进行模糊查询.", action = ActionListLikePinyin.class) - @PUT - @Path("list/like/pinyin") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listLikePinyin(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListLikePinyin().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "直接上级组织.", action = ActionGetSupDirect.class) - @GET - @Path("{flag}/sup/direct") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void getSupDirect(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGetSupDirect().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "递归上级组织.", action = ActionListSupNested.class) - @GET - @Path("list/{flag}/sup/nested") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSupNested(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSupNested().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "查找递归上级组织中符合type值的对象.", action = ActionListSupNestedWithType.class) - @GET - @Path("list/{flag}/sup/nested/type/{type}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listSupNestedWithType(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("组织的type属性值,匹配多值中的某一个") @PathParam("type") String type) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListSupNestedWithType().execute(effectivePerson, flag, type); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionCreate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionCreate.java deleted file mode 100644 index 8f6a610062f134b5f90d868b8cbff841ba78f9b4..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionCreate.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; - -class ActionCreate extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Unit unit = business.unit().pick(wi.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(wi.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyEditUnit(effectivePerson, unit.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - UnitAttribute o = new UnitAttribute(); - Wi.copier.copy(wi, o); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (uniqueDuplicateWhenNotEmpty(business, o)) { - throw new ExceptionDuplicateUnique(o.getName(), o.getUnique()); - } - o.setUnit(unit.getId()); - if (duplicateOnUnit(business, unit, o.getName(), o)) { - throw new ExceptionDuplicateOnUnit(o.getName(), unit.getName()); - } - emc.beginTransaction(UnitAttribute.class); - emc.persist(o, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(UnitAttribute.class); - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - - public static class Wi extends UnitAttribute { - - private static final long serialVersionUID = -7527954993386512109L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, UnitAttribute.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial")); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionDelete.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionDelete.java deleted file mode 100644 index 7e769f4fc9daccb300769c46b616a2271331c3a3..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionDelete.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; - -class ActionDelete extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String id) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - UnitAttribute o = emc.find(id, UnitAttribute.class); - if (null == o) { - throw new ExceptionUnitAttributeNotExist(id); - } - Unit unit = business.unit().pick(o.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(o.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyEditUnit(effectivePerson, unit.getName()); - } - emc.beginTransaction(UnitAttribute.class); - o = emc.find(o.getId(), UnitAttribute.class); - emc.remove(o, CheckRemoveType.all); - emc.commit(); - ApplicationCache.notify(UnitAttribute.class); - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionEdit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionEdit.java deleted file mode 100644 index ff54cae344f24c6379bf3c4c3c089e3e038dc5a3..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionEdit.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; - -class ActionEdit extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - UnitAttribute o = business.unitAttribute().pick(id); - if (null == o) { - throw new ExceptionUnitAttributeNotExist(id); - } - Unit unit = business.unit().pick(o.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(o.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyEditUnit(effectivePerson, unit.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (uniqueDuplicateWhenNotEmpty(business, o)) { - throw new ExceptionDuplicateUnique(o.getName(), o.getUnique()); - } - if (this.duplicateOnUnit(business, unit, wi.getName(), o)) { - throw new ExceptionDuplicateOnUnit(wi.getName(), unit.getName()); - } - /** pick 出来的需要重新find */ - o = emc.find(o.getId(), UnitAttribute.class); - Wi.copier.copy(wi, o); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (uniqueDuplicateWhenNotEmpty(business, o)) { - throw new ExceptionDuplicateUnique(o.getName(), o.getUnique()); - } - o.setUnit(unit.getId()); - emc.beginTransaction(UnitAttribute.class); - emc.check(o, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(UnitAttribute.class); - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - - public static class Wi extends UnitAttribute { - - private static final long serialVersionUID = -7527954993386512109L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, UnitAttribute.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial", "unit")); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionGet.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionGet.java deleted file mode 100644 index 6795d769728a31b79e0b485e04ac8d1a1b2cfe59..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionGet.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; - -import net.sf.ehcache.Element; - -class ActionGet extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - return result; - } - } - - private Wo get(Business business, String flag) throws Exception { - UnitAttribute o = business.unitAttribute().pick(flag); - if (null == o) { - throw new ExceptionUnitAttributeNotExist(flag); - } - Wo wo = Wo.copier.copy(o); - this.referenceUnit(business, wo); - return wo; - } - - private void referenceUnit(Business business, Wo wo) throws Exception { - Unit o = business.unit().pick(wo.getUnit()); - if (null == o) { - throw new ExceptionUnitNotExist(wo.getUnit()); - } - WoUnit woUnit = WoUnit.copier.copy(o); - wo.setWoUnit(woUnit); - } - - public static class WoUnit extends Unit { - - private static final long serialVersionUID = -7721760092867057759L; - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, WoUnit.class, null, - JpaObject.FieldsInvisible); - - } - - public static class Wo extends UnitAttribute { - - private static final long serialVersionUID = -127291000673692614L; - - @FieldDescribe("组织对象") - private WoUnit woUnit; - - static WrapCopier copier = WrapCopierFactory.wo(UnitAttribute.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public WoUnit getWoUnit() { - return woUnit; - } - - public void setWoUnit(WoUnit woUnit) { - this.woUnit = woUnit; - } - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListNext.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListNext.java deleted file mode 100644 index 320fb6c9ec48317c195ec4f85e093b63fc56fd09..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListNext.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.UnitAttribute; - -import net.sf.ehcache.Element; - -class ActionListNext extends BaseAction { - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - UnitAttribute o = business.unitAttribute().pick(flag); - if (null == o) { - throw new ExceptionUnitAttributeNotExist(flag); - } - id = o.getId(); - } - result = this.standardListNext(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends UnitAttribute { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(UnitAttribute.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListPrev.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListPrev.java deleted file mode 100644 index 3ff7a7c4c14367f1e3ea07ff941b782fa27a08c2..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListPrev.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.UnitAttribute; - -import net.sf.ehcache.Element; - -class ActionListPrev extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - UnitAttribute o = business.unitAttribute().pick(flag); - if (null == o) { - throw new ExceptionUnitAttributeNotExist(flag); - } - id = o.getId(); - } - result = this.standardListPrev(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends UnitAttribute { - - private static final long serialVersionUID = -125007357898871894L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(UnitAttribute.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListWithUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListWithUnit.java deleted file mode 100644 index 44d47169ff8cf1175d0520816d93a544205690e0..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ActionListWithUnit.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; -import com.x.organization.core.entity.UnitAttribute_; - -import net.sf.ehcache.Element; - -class ActionListWithUnit extends BaseAction { - - @SuppressWarnings("unchecked") - ActionResult> execute(EffectivePerson effectivePerson, String unitFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult> result = new ActionResult<>(); - Business business = new Business(emc); - Unit unit = business.unit().pick(unitFlag); - if (null == unit) { - throw new ExceptionUnitNotExist(unitFlag); - } - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), unitFlag); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - result.setData((List) element.getObjectValue()); - } else { - List os = this.list(business, unit); - List wos = Wo.copier.copy(os); - wos = business.unitAttribute().sort(wos); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wo extends UnitAttribute { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(UnitAttribute.class, Wo.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, Unit unit) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitAttribute.class); - Root root = cq.from(UnitAttribute.class); - Predicate p = cb.equal(root.get(UnitAttribute_.unit), unit.getId()); - return em.createQuery(cq.select(root).where(p)).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/BaseAction.java deleted file mode 100644 index 86e1928c13a96b2b19072c390594a1395b3f75ad..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/BaseAction.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitAttribute; -import com.x.organization.core.entity.UnitAttribute_; - -abstract class BaseAction extends StandardJaxrsAction { - - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - protected boolean uniqueDuplicateWhenNotEmpty(Business business, UnitAttribute unitAttribute) throws Exception { - if (StringUtils.isNotEmpty(unitAttribute.getUnique())) { - if (business.entityManagerContainer().duplicateWithFlags(unitAttribute.getId(), UnitAttribute.class, - unitAttribute.getUnique())) { - return true; - } - } - return false; - } - - /** 在同一个unit下名称不能重复 */ - protected boolean duplicateOnUnit(Business business, Unit unit, String name, UnitAttribute exclude) - throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitAttribute.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(UnitAttribute.class); - Predicate p = cb.equal(root.get(UnitAttribute_.name), name); - p = cb.and(p, cb.equal(root.get(UnitAttribute_.unit), unit.getId())); - p = cb.and(p, cb.notEqual(root.get(UnitAttribute_.id), exclude.getId())); - return em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult() > 0; - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDenyEditUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDenyEditUnit.java deleted file mode 100644 index 15b4364ca53f98cae0e79a83afa655bf928f66ba..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDenyEditUnit.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyEditUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyEditUnit(EffectivePerson effectivePerson, String name) { - super("{} 不能编辑组织:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDuplicateOnUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDuplicateOnUnit.java deleted file mode 100644 index 981d956a82c8c5fc8d0804ac0eebd1b463a508bb..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDuplicateOnUnit.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateOnUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateOnUnit(String name, String unitName) { - super("组织属性名称 {} 在同一个组织 {} 中必须唯一.", name, unitName); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDuplicateUnique.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDuplicateUnique.java deleted file mode 100644 index 19e4929f3bb230b9c02ce03fff2f8a71f33b76fb..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionDuplicateUnique.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateUnique extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateUnique(String name, String unique) { - super("组织属性 {} 的唯一标识:{},不能和已有的标识冲突.", name, unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionNameEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionNameEmpty.java deleted file mode 100644 index 17a6faf1d4feeef75cc25b1cee38775d35991a8d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionNameEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameEmpty extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionNameEmpty() { - super("组织属性名称不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionUnitAttributeNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionUnitAttributeNotExist.java deleted file mode 100644 index 3c95933cbf4f20065a47849c8dfed02781a26826..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionUnitAttributeNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionUnitAttributeNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionUnitAttributeNotExist(String flag) { - super("组织属性:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionUnitNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionUnitNotExist.java deleted file mode 100644 index 84ea359835dd3ecb7a902289d415230fc4f14be1..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/ExceptionUnitNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionUnitNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionUnitNotExist(String flag) { - super("组织:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/UnitAttributeAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/UnitAttributeAction.java deleted file mode 100644 index 5487c29dcd982395afd08d1f906a64195631db05..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitattribute/UnitAttributeAction.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitattribute; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.google.gson.JsonElement; -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("unitattribute") -@JaxrsDescribe("组织属性操作") -public class UnitAttributeAction extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(UnitAttributeAction.class); - - @JaxrsMethodDescribe(value = "获取组织属性对象.", action = ActionGet.class) - @GET - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织属性标识") @PathParam("flag") String id) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGet().execute(effectivePerson, id); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "创建组织属性.", action = ActionCreate.class) - @POST - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void create(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionCreate().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新组织属性.", action = ActionEdit.class) - @PUT - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void edit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织属性标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionEdit().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除组织属性.", action = ActionDelete.class) - @DELETE - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void delete(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织属性标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDelete().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示组织属性,下一页.", action = ActionListNext.class) - @GET - @Path("list/{flag}/next/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listNext(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织属性标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListNext().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示组织属性,上一页.", action = ActionListPrev.class) - @GET - @Path("list/{flag}/prev/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPrev(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织属性标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPrev().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的组织,列示其所有的组织属性对象.", action = ActionListWithUnit.class) - @GET - @Path("list/unit/{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithUnit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织属性标识") @PathParam("flag") String flag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithUnit().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionCreate.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionCreate.java deleted file mode 100644 index 9036856a0dc1c2a5e0fcf17dcbf1a3a0dd601dea..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionCreate.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; - -class ActionCreate extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - Unit unit = business.unit().pick(wi.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(wi.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyEditUnit(effectivePerson, unit.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - UnitDuty o = new UnitDuty(); - Wi.copier.copy(wi, o); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (uniqueDuplicateWhenNotEmpty(business, o)) { - throw new ExceptionDuplicateUnique(o.getName(), o.getUnique()); - } - o.setUnit(unit.getId()); - if (duplicateOnUnit(business, unit, o.getName(), o)) { - throw new ExceptionDuplicateOnUnit(o.getName(), unit.getName()); - } - o.setIdentityList(ListTools.extractProperty(business.identity().pick(o.getIdentityList()), - JpaObject.id_FIELDNAME, String.class, true, true)); - emc.beginTransaction(UnitDuty.class); - emc.persist(o, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(UnitDuty.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("add", "duty", o, effectivePerson); - - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - - } - - public static class Wi extends UnitDuty { - - private static final long serialVersionUID = -7527954993386512109L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, UnitDuty.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial")); - - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDelete.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDelete.java deleted file mode 100644 index b52e6b4f3b475bd29ceec5339ad4be1e6429b7bc..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDelete.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; - -class ActionDelete extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String id) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Business business = new Business(emc); - UnitDuty o = business.unitDuty().pick(id); - if (null == o) { - throw new ExceptionUnitDutyNotExist(id); - } - Unit unit = business.unit().pick(o.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(o.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyEditUnit(effectivePerson, unit.getName()); - } - /** pick出来的需要重新取出 */ - emc.beginTransaction(UnitDuty.class); - o = emc.find(o.getId(), UnitDuty.class); - emc.remove(o, CheckRemoveType.all); - emc.commit(); - ApplicationCache.notify(UnitDuty.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("add", "duty", o, effectivePerson); - - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDistinctName.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDistinctName.java deleted file mode 100644 index e8669cba2e3a184c9ee4033cab950c64f62eb9c5..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDistinctName.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -class ActionDistinctName extends BaseAction { - - ActionResult execute() throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass()); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.list(business); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - return result; - } - } - - public static class Wo extends GsonPropertyObject { - - /** 组织职务名称 */ - private List nameList = new ArrayList<>(); - - public List getNameList() { - return nameList; - } - - public void setNameList(List nameList) { - this.nameList = nameList; - } - } - - private Wo list(Business business) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(UnitDuty.class); - cq.select(root.get(UnitDuty_.name)).distinct(true); - List list = em.createQuery(cq).getResultList(); - list = list.stream().filter(o -> { - return StringUtils.isNotEmpty(o); - }).sorted().collect(Collectors.toList()); - Wo wo = new Wo(); - wo.setNameList(list); - return wo; - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDistinctNameLike.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDistinctNameLike.java deleted file mode 100644 index cc06b192aa35876ef9b4df6d7d51d70a08325add..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionDistinctNameLike.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.ArrayList; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -class ActionDistinctNameLike extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String key) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), key); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.list(business, key); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - return result; - } - } - - public static class Wo extends GsonPropertyObject { - - /** 组织职务名称 */ - private List nameList = new ArrayList<>(); - - public List getNameList() { - return nameList; - } - - public void setNameList(List nameList) { - this.nameList = nameList; - } - } - - private Wo list(Business business, String key) throws Exception { - String str = key.replaceAll("_", "\\\\_"); - str = str.replaceAll("%", "\\\\%"); - str = str.toLowerCase(); - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.like(root.get(UnitDuty_.name), "%" + key + "%", '\\'); - p = cb.or(p, cb.like(root.get(UnitDuty_.pinyin), key + "%", '\\')); - p = cb.or(p, cb.like(root.get(UnitDuty_.pinyinInitial), key + "%", '\\')); - cq.select(root.get(UnitDuty_.name)).distinct(true).where(p); - List list = em.createQuery(cq).getResultList(); - list = list.stream().filter(o -> { - return StringUtils.isNotEmpty(o); - }).sorted().collect(Collectors.toList()); - Wo wo = new Wo(); - wo.setNameList(list); - return wo; - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionEdit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionEdit.java deleted file mode 100644 index c997bb5eaa6d2459c8b03aec6c4e6c774b2ba227..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionEdit.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.jaxrs.WoId; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.assemble.control.message.OrgMessageFactory; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; - -class ActionEdit extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - ActionResult result = new ActionResult<>(); - Wi wi = this.convertToWrapIn(jsonElement, Wi.class); - Business business = new Business(emc); - UnitDuty o = business.unitDuty().pick(id); - if (null == o) { - throw new ExceptionUnitDutyNotExist(id); - } - Unit unit = business.unit().pick(o.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(o.getUnit()); - } - if (!business.editable(effectivePerson, unit)) { - throw new ExceptionDenyEditUnit(effectivePerson, unit.getName()); - } - if (StringUtils.isEmpty(wi.getName())) { - throw new ExceptionNameEmpty(); - } - if (this.duplicateOnUnit(business, unit, wi.getName(), o)) { - throw new ExceptionDuplicateOnUnit(wi.getName(), unit.getName()); - } - /** pick出来的需要重新find */ - o = emc.find(o.getId(), UnitDuty.class); - - Gson gsontool = new Gson(); - String strDuty = gsontool.toJson(o); - - emc.beginTransaction(UnitDuty.class); - Wi.copier.copy(wi, o); - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - if (uniqueDuplicateWhenNotEmpty(business, o)) { - throw new ExceptionDuplicateUnique(o.getName(), o.getUnique()); - } - o.setUnit(unit.getId()); - o.setIdentityList(ListTools.extractProperty(business.identity().pick(o.getIdentityList()), JpaObject.id_FIELDNAME, - String.class, true, true)); - emc.check(o, CheckPersistType.all); - emc.commit(); - ApplicationCache.notify(UnitDuty.class); - - /**创建 组织变更org消息通信 */ - OrgMessageFactory orgMessageFactory = new OrgMessageFactory(); - orgMessageFactory.createMessageCommunicate("modfiy", "duty",strDuty, o, effectivePerson); - - Wo wo = new Wo(); - wo.setId(o.getId()); - result.setData(wo); - return result; - } - } - - public static class Wo extends WoId { - } - - public static class Wi extends UnitDuty { - - private static final long serialVersionUID = -7527954993386512109L; - - static WrapCopier copier = WrapCopierFactory.wi(Wi.class, UnitDuty.class, null, - ListTools.toList(JpaObject.FieldsUnmodify, "pinyin", "pinyinInitial", "unit")); - - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionGet.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionGet.java deleted file mode 100644 index 2c170ff28faa82207cb93e25263aebc394f0a275..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionGet.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Identity_; -import com.x.organization.core.entity.Person; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; - -import net.sf.ehcache.Element; - -class ActionGet extends BaseAction { - - ActionResult execute(EffectivePerson effectivePerson, String flag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((Wo) element.getObjectValue()); - } else { - Wo wo = this.get(business, flag); - business.cache().put(new Element(cacheKey, wo)); - result.setData(wo); - } - return result; - } - } - - private Wo get(Business business, String flag) throws Exception { - UnitDuty o = business.unitDuty().pick(flag); - if (null == o) { - throw new ExceptionUnitDutyNotExist(flag); - } - Wo wo = Wo.copier.copy(o); - this.referenceUnit(business, wo); - this.referenceIdentity(business, wo); - return wo; - } - - private void referenceUnit(Business business, Wo wo) throws Exception { - Unit o = business.unit().pick(wo.getUnit()); - if (null == o) { - throw new ExceptionUnitNotExist(wo.getUnit()); - } - WoUnit woUnit = WoUnit.copier.copy(o); - wo.setWoUnit(woUnit); - } - - private void referenceIdentity(Business business, Wo wo) throws Exception { - EntityManager em = business.entityManagerContainer().get(Identity.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Identity.class); - Root root = cq.from(Identity.class); - Predicate p = root.get(Identity_.id).in(wo.getIdentityList()); - List os = em.createQuery(cq.select(root).where(p).distinct(true)).getResultList(); - List wos = WoIdentity.copier.copy(os); - for (WoIdentity woIdentity : wos) { - this.referencePerson(business, woIdentity); - } - wos = business.identity().sort(wos); - wo.setWoIdentityList(wos); - } - - private void referencePerson(Business business, WoIdentity woIdentity) throws Exception { - Person person = business.person().pick(woIdentity.getPerson()); - if (null == person) { - throw new ExceptionPersonNotExist(woIdentity.getPerson()); - } - WoPerson woPerson = WoPerson.copier.copy(person); - woIdentity.setWoPerson(woPerson); - } - - public static class WoUnit extends Unit { - - private static final long serialVersionUID = -7721760092867057759L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, WoUnit.class, null, - JpaObject.FieldsInvisible); - - } - - public static class Wo extends UnitDuty { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, Wo.class, null, - JpaObject.FieldsInvisible); - - @FieldDescribe("组织对象") - private WoUnit woUnit; - - @FieldDescribe("身份对象") - private List woIdentityList; - - public WoUnit getWoUnit() { - return woUnit; - } - - public void setWoUnit(WoUnit woUnit) { - this.woUnit = woUnit; - } - - public List getWoIdentityList() { - return woIdentityList; - } - - public void setWoIdentityList(List woIdentityList) { - this.woIdentityList = woIdentityList; - } - - } - - public static class WoIdentity extends Identity { - - private static final long serialVersionUID = 7096544058621159846L; - - private WoPerson woPerson; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, WoIdentity.class, null, - JpaObject.FieldsInvisible); - - public WoPerson getWoPerson() { - return woPerson; - } - - public void setWoPerson(WoPerson woPerson) { - this.woPerson = woPerson; - } - } - - public static class WoPerson extends Person { - - private static final long serialVersionUID = 7096544058621159846L; - - static WrapCopier copier = WrapCopierFactory.wo(Person.class, WoPerson.class, null, - ListTools.toList(JpaObject.FieldsInvisible, "password", "icon")); - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListNext.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListNext.java deleted file mode 100644 index 37d65619c2db5aac3bdd1fd55c0a3e326ba4f9cf..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListNext.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.UnitDuty; - -import net.sf.ehcache.Element; - -class ActionListNext extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - UnitDuty o = business.unitDuty().pick(flag); - if (null == o) { - throw new ExceptionUnitDutyNotExist(flag); - } - id = o.getId(); - } - result = this.standardListNext(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends UnitDuty { - - private static final long serialVersionUID = -127291000673692614L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListPrev.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListPrev.java deleted file mode 100644 index 6fe67f0e1d88a230815747c4353aa6bf2457508d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListPrev.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.List; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.gson.GsonPropertyObject; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.UnitDuty; - -import net.sf.ehcache.Element; - -class ActionListPrev extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String flag, Integer count) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), flag, count); - Element element = business.cache().get(cacheKey); - if (null != element && null != element.getObjectValue()) { - Co co = (Co) element.getObjectValue(); - result.setData(co.getWos()); - result.setCount(co.getCount()); - } else { - - String id = EMPTY_SYMBOL; - /** 如果不是空位标志位 */ - if (!StringUtils.equals(EMPTY_SYMBOL, flag)) { - UnitDuty o = business.unitDuty().pick(flag); - if (null == o) { - throw new ExceptionUnitDutyNotExist(flag); - } - id = o.getId(); - } - result = this.standardListPrev(Wo.copier, id, count, JpaObject.sequence_FIELDNAME, null, null, null, null, null, null, - null, null, true, DESC); - Co co = new Co(result.getData(), result.getCount()); - business.cache().put(new Element(cacheKey, co)); - } - return result; - } - } - - public static class Co extends GsonPropertyObject { - - public Co(List wos, Long count) { - this.wos = wos; - this.count = count; - } - - List wos; - Long count; - - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public List getWos() { - return wos; - } - - public void setWos(List wos) { - this.wos = wos; - } - } - - public static class Wo extends UnitDuty { - - private static final long serialVersionUID = -127291000673692614L; - - @FieldDescribe("排序号") - private Long rank; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public Long getRank() { - return rank; - } - - public void setRank(Long rank) { - this.rank = rank; - } - - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithIdentity.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithIdentity.java deleted file mode 100644 index baeb5cb82e764e596e5b9e1fa0328809fe4ea7f5..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithIdentity.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -class ActionListWithIdentity extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String identityFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), identityFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, identityFlag); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wo extends UnitDuty { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, Wo.class, null, - JpaObject.FieldsInvisible); - - @FieldDescribe("组织对象") - private WoUnit woUnit; - - public WoUnit getWoUnit() { - return woUnit; - } - - public void setWoUnit(WoUnit woUnit) { - this.woUnit = woUnit; - } - - } - - public static class WoUnit extends Unit { - - private static final long serialVersionUID = 2465212973550376118L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, WoUnit.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - } - - private List list(Business business, String identityFlag) throws Exception { - Identity identity = business.identity().pick(identityFlag); - if (null == identity) { - throw new ExceptionIdentityNotExist(identityFlag); - } - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.isMember(identity.getId(), root.get(UnitDuty_.identityList)); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = Wo.copier.copy(os); - for (Wo wo : wos) { - this.referenceUnit(business, wo); - } - wos = business.unitDuty().sort(wos); - return wos; - } - - private void referenceUnit(Business business, Wo wo) throws Exception { - if (StringUtils.isNotEmpty(wo.getUnit())) { - Unit unit = business.unit().pick(wo.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(wo.getUnit()); - } - WoUnit woUnit = WoUnit.copier.copy(unit); - wo.setWoUnit(woUnit); - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithName.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithName.java deleted file mode 100644 index 792c0e239fa69f84e758fae5cdac1905da3f2b7d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithName.java +++ /dev/null @@ -1,137 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -class ActionListWithName extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String name) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), name); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - List wos = this.list(business, name); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wo extends UnitDuty { - - private static final long serialVersionUID = -127291000673692614L; - - @FieldDescribe("组织对象") - private WoUnit woUnit; - - @FieldDescribe("身份对象") - private List woIdentityList = new ArrayList<>(); - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, Wo.class, null, - JpaObject.FieldsInvisible); - - public WoUnit getWoUnit() { - return woUnit; - } - - public void setWoUnit(WoUnit woUnit) { - this.woUnit = woUnit; - } - - public List getWoIdentityList() { - return woIdentityList; - } - - public void setWoIdentityList(List woIdentityList) { - this.woIdentityList = woIdentityList; - } - - } - - public static class WoUnit extends Unit { - - private static final long serialVersionUID = 2465212973550376118L; - - static WrapCopier copier = WrapCopierFactory.wo(Unit.class, WoUnit.class, null, - ListTools.toList(JpaObject.FieldsInvisible)); - - } - - public static class WoIdentity extends Identity { - - private static final long serialVersionUID = 7096544058621159846L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, WoIdentity.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, String name) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.name), name); - cq.select(root).where(p); - List os = em.createQuery(cq).getResultList(); - List wos = Wo.copier.copy(os); - for (Wo wo : wos) { - this.referenceUnit(business, wo); - this.referenceIdentity(business, wo); - } - wos = business.unitDuty().sort(wos); - return wos; - } - - private void referenceUnit(Business business, Wo wo) throws Exception { - if (StringUtils.isNotEmpty(wo.getUnit())) { - Unit unit = business.unit().pick(wo.getUnit()); - if (null == unit) { - throw new ExceptionUnitNotExist(wo.getUnit()); - } - WoUnit woUnit = WoUnit.copier.copy(unit); - wo.setWoUnit(woUnit); - } - } - - private void referenceIdentity(Business business, Wo wo) throws Exception { - if (ListTools.isNotEmpty(wo.getIdentityList())) { - List os = business.identity().pick(wo.getIdentityList()); - List wos = WoIdentity.copier.copy(os); - wos = business.identity().sort(wos); - wo.setWoIdentityList(wos); - } - } - -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithUnit.java deleted file mode 100644 index e7f8025e858860ff2165568510e3a8b970c2142e..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ActionListWithUnit.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.ArrayList; -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.bean.WrapCopier; -import com.x.base.core.project.bean.WrapCopierFactory; -import com.x.base.core.project.cache.ApplicationCache; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.tools.ListTools; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Identity; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -import net.sf.ehcache.Element; - -class ActionListWithUnit extends BaseAction { - - ActionResult> execute(EffectivePerson effectivePerson, String unitFlag) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - ActionResult> result = new ActionResult<>(); - String cacheKey = ApplicationCache.concreteCacheKey(this.getClass(), unitFlag); - Element element = business.cache().get(cacheKey); - if (null != element && (null != element.getObjectValue())) { - result.setData((List) element.getObjectValue()); - } else { - Unit unit = business.unit().pick(unitFlag); - if (null == unit) { - throw new ExceptionUnitNotExist(unitFlag); - } - List wos = this.list(business, unit); - business.cache().put(new Element(cacheKey, wos)); - result.setData(wos); - } - return result; - } - } - - public static class Wo extends UnitDuty { - - private static final long serialVersionUID = -127291000673692614L; - - static WrapCopier copier = WrapCopierFactory.wo(UnitDuty.class, Wo.class, null, - JpaObject.FieldsInvisible); - - @FieldDescribe("身份对象") - private List woIdentityList = new ArrayList<>(); - - public List getWoIdentityList() { - return woIdentityList; - } - - public void setWoIdentityList(List woIdentityList) { - this.woIdentityList = woIdentityList; - } - - } - - public static class WoIdentity extends Identity { - - private static final long serialVersionUID = 7096544058621159846L; - - static WrapCopier copier = WrapCopierFactory.wo(Identity.class, WoIdentity.class, null, - JpaObject.FieldsInvisible); - - } - - private List list(Business business, Unit unit) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(UnitDuty.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.unit), unit.getId()); - List os = em.createQuery(cq.select(root).where(p)).getResultList(); - List wos = Wo.copier.copy(os); - for (Wo wo : wos) { - this.referenceIdentity(business, wo); - } - wos = business.unitDuty().sort(wos); - return wos; - } - - private void referenceIdentity(Business business, Wo wo) throws Exception { - if (ListTools.isNotEmpty(wo.getIdentityList())) { - List os = business.identity().pick(wo.getIdentityList()); - List wos = WoIdentity.copier.copy(os); - wos = business.identity().sort(wos); - wo.setWoIdentityList(wos); - } - } - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/BaseAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/BaseAction.java deleted file mode 100644 index b79aab237f3672b78232ba1e6328105a6d3b229d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/BaseAction.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.project.jaxrs.StandardJaxrsAction; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Unit; -import com.x.organization.core.entity.UnitDuty; -import com.x.organization.core.entity.UnitDuty_; - -abstract class BaseAction extends StandardJaxrsAction { - - /** 如果唯一标识不为空,要检查唯一标识是否唯一 */ - protected boolean uniqueDuplicateWhenNotEmpty(Business business, UnitDuty unitDuty) throws Exception { - if (StringUtils.isNotEmpty(unitDuty.getUnique())) { - if (business.entityManagerContainer().duplicateWithFlags(unitDuty.getId(), UnitDuty.class, - unitDuty.getUnique())) { - return true; - } - } - return false; - } - - /** 在同一个unit下名称不能重复 */ - protected boolean duplicateOnUnit(Business business, Unit unit, String name, UnitDuty exclude) throws Exception { - EntityManager em = business.entityManagerContainer().get(UnitDuty.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Long.class); - Root root = cq.from(UnitDuty.class); - Predicate p = cb.equal(root.get(UnitDuty_.name), name); - p = cb.and(p, cb.equal(root.get(UnitDuty_.unit), unit.getId())); - p = cb.and(p, cb.notEqual(root.get(UnitDuty_.id), exclude.getId())); - return em.createQuery(cq.select(cb.count(root)).where(p)).getSingleResult() > 0; - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDenyEditUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDenyEditUnit.java deleted file mode 100644 index 91248ef241f76840a40646617541d73db4f5ec03..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDenyEditUnit.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.project.exception.PromptException; -import com.x.base.core.project.http.EffectivePerson; - -class ExceptionDenyEditUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDenyEditUnit(EffectivePerson effectivePerson, String name) { - super("{} 不能编辑组织:{}, 权限不足.", effectivePerson.getDistinguishedName(), name); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDuplicateOnUnit.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDuplicateOnUnit.java deleted file mode 100644 index 6589d308551ba4a31ccbe85ea542b90bf739cbe5..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDuplicateOnUnit.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateOnUnit extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateOnUnit(String name, String unitName) { - super("组织职务名称 {} 在同一个组织 {} 中必须唯一.", name, unitName); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDuplicateUnique.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDuplicateUnique.java deleted file mode 100644 index ae46fcd8d144db8e7d3b235d5ea97e12dd4fe275..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionDuplicateUnique.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDuplicateUnique extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionDuplicateUnique(String name, String unique) { - super("组织职务 {} 的唯一标识:{},不能和已有的标识冲突.", name, unique); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionIdentityNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionIdentityNotExist.java deleted file mode 100644 index 177ee2c37565d43f7104d9149159a8b6c89d6b24..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionIdentityNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionIdentityNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionIdentityNotExist(String flag) { - super("身份:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionNameEmpty.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionNameEmpty.java deleted file mode 100644 index 33db732139de93910bd659a5ffc38533233d41c4..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionNameEmpty.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionNameEmpty extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionNameEmpty() { - super("组织职务名称不能为空."); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionPersonNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionPersonNotExist.java deleted file mode 100644 index d3ea9e21b65041e39383c65ee4b49b764c819578..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionPersonNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionPersonNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionPersonNotExist(String flag) { - super("人员:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionUnitDutyNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionUnitDutyNotExist.java deleted file mode 100644 index e0c43b2388628e550ceb846680a7962a2d384780..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionUnitDutyNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionUnitDutyNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionUnitDutyNotExist(String flag) { - super("组织职务:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionUnitNotExist.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionUnitNotExist.java deleted file mode 100644 index e3a084b6922323a66370e98bcc554d57d6f5fad5..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/ExceptionUnitNotExist.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionUnitNotExist extends PromptException { - - private static final long serialVersionUID = 4132300948670472899L; - - ExceptionUnitNotExist(String flag) { - super("组织:{}, 不存在.", flag); - } -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/UnitDutyAction.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/UnitDutyAction.java deleted file mode 100644 index 2fca73cd344b7ab8c78995934707093574e44e7d..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/jaxrs/unitduty/UnitDutyAction.java +++ /dev/null @@ -1,233 +0,0 @@ -package com.x.organization.assemble.control.jaxrs.unitduty; - -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; - -import com.google.gson.JsonElement; -import com.x.base.core.project.annotation.JaxrsDescribe; -import com.x.base.core.project.annotation.JaxrsMethodDescribe; -import com.x.base.core.project.annotation.JaxrsParameterDescribe; -import com.x.base.core.project.http.ActionResult; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.http.HttpMediaType; -import com.x.base.core.project.jaxrs.ResponseFactory; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; - -@Path("unitduty") -@JaxrsDescribe("组织职务操作") -public class UnitDutyAction extends BaseAction { - - private static Logger logger = LoggerFactory.getLogger(UnitDutyAction.class); - - @JaxrsMethodDescribe(value = "获取组织职务.", action = ActionGet.class) - @GET - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void get(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织职务标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionGet().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "创建组织职务.", action = ActionCreate.class) - @POST - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void create(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionCreate().execute(effectivePerson, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "更新组织职务.", action = ActionEdit.class) - @PUT - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void edit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织职务标识") @PathParam("flag") String flag, JsonElement jsonElement) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionEdit().execute(effectivePerson, flag, jsonElement); - } catch (Exception e) { - logger.error(e, effectivePerson, request, jsonElement); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "删除组织职务.", action = ActionDelete.class) - @DELETE - @Path("{flag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void delete(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织职务标识") @PathParam("flag") String flag) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDelete().execute(effectivePerson, flag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示组织职务.下一页", action = ActionListNext.class) - @GET - @Path("list/{flag}/next/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listNext(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织职务标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListNext().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "列示组织职务,上一页.", action = ActionListPrev.class) - @GET - @Path("list/{flag}/prev/{count}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listPrev(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织职务标识") @PathParam("flag") String flag, - @JaxrsParameterDescribe("数量") @PathParam("count") Integer count) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListPrev().execute(effectivePerson, flag, count); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的组织,获取组织职务.", action = ActionListWithUnit.class) - @GET - @Path("list/unit/{unitFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithUnit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织标识") @PathParam("unitFlag") String unitFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithUnit().execute(effectivePerson, unitFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "根据给定的身份,获取所拥有的组织职务.", action = ActionListWithIdentity.class) - @GET - @Path("list/identity/{identityFlag}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithIdentity(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("身份标识") @PathParam("identityFlag") String identityFlag) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithIdentity().execute(effectivePerson, identityFlag); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "获取去重的组织职务名称.", action = ActionDistinctName.class) - @GET - @Path("distinct/name") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void distinctName(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDistinctName().execute(); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "给定组织职务名称,列示组织职务.", action = ActionListWithName.class) - @GET - @Path("list/name/{name}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void listWithName(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("组织名称") @PathParam("name") String name) { - ActionResult> result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionListWithName().execute(effectivePerson, name); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } - - @JaxrsMethodDescribe(value = "模糊匹配组织职务的名称,匹配名称,拼音和首字母.", action = ActionDistinctNameLike.class) - @GET - @Path("distinct/name/like/{key}") - @Produces(HttpMediaType.APPLICATION_JSON_UTF_8) - @Consumes(MediaType.APPLICATION_JSON) - public void distinctNameLike(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request, - @JaxrsParameterDescribe("关键字,拼音或首字母") @PathParam("key") String key) { - ActionResult result = new ActionResult<>(); - EffectivePerson effectivePerson = this.effectivePerson(request); - try { - result = new ActionDistinctNameLike().execute(effectivePerson, key); - } catch (Exception e) { - logger.error(e, effectivePerson, request, null); - result.error(e); - } - asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result)); - } -} \ No newline at end of file diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgBodyMessage.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgBodyMessage.java deleted file mode 100644 index d4bd3d14fd25d67912bff57f4bc7aa5dc78c7c60..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgBodyMessage.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.x.organization.assemble.control.message; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.organization.assemble.control.Business; -import com.x.organization.core.entity.Person; - -public class OrgBodyMessage { - - public String originalData; - public String modifyData; - - - public String getOriginalData() { - return originalData; - } - - public void setOriginalData(String originalData) { - this.originalData = originalData; - } - - public String getModifyData() { - return modifyData; - } - - public void setModifyData(String modifyData) { - this.modifyData = modifyData; - } - - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgMessage.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgMessage.java deleted file mode 100644 index f4e56916820a83f2f4d2a0e1410f12b8297628e2..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgMessage.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.x.organization.assemble.control.message; - -public class OrgMessage { - - public String operType; - public String orgType; - public String operUerId; - public String operDataId; - public String receiveSystem; - public boolean consumed; - public String consumedModule; - public String body; - - public String getOperType() { - return operType; - } - public void setOperType(String operType) { - this.operType = operType; - } - public String getOrgType() { - return orgType; - } - public void setOrgType(String orgType) { - this.orgType = orgType; - } - public String getOperUerId() { - return operUerId; - } - public void setOperUerId(String operUerId) { - this.operUerId = operUerId; - } - public String getOperDataId() { - return operDataId; - } - public void setOperDataId(String operDataId) { - this.operDataId = operDataId; - } - public String getReceiveSystem() { - return receiveSystem; - } - public void setReceiveSystem(String receiveSystem) { - this.receiveSystem = receiveSystem; - } - public boolean getConsumed() { - return consumed; - } - public void setConsumed(boolean consumed) { - this.consumed = consumed; - } - public String getConsumedModule() { - return consumedModule; - } - public void setConsumedModule(String consumedModule) { - this.consumedModule = consumedModule; - } - public String getBody() { - return body; - } - public void setBody(String body) { - this.body = body; - } - - -} diff --git a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgMessageFactory.java b/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgMessageFactory.java deleted file mode 100644 index c22966abf84b5509fbbaf9c3607aa8a18d8180d5..0000000000000000000000000000000000000000 --- a/o2server/x_organization_assemble_control/src/main/webapp/describe/sources/com/x/organization/assemble/control/message/OrgMessageFactory.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.x.organization.assemble.control.message; - -import com.google.gson.Gson; -import com.x.base.core.entity.SliceJpaObject; -import com.x.base.core.project.x_message_assemble_communicate; -import com.x.base.core.project.connection.ActionResponse; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.organization.assemble.control.ThisApplication; - -/**创建 组织变更org消息通信 */ -public class OrgMessageFactory { - - private static Logger logger = LoggerFactory.getLogger(OrgMessageFactory.class); - - public boolean createMessageCommunicate(String strOperType, String strOrgType, T t, EffectivePerson effectivePerson) { - try{ - Gson gson = new Gson(); - String strT = gson.toJson(t); - OrgMessage orgMessage = new OrgMessage(); - - orgMessage.setOperType(strOperType); - orgMessage.setOrgType(strOrgType); - orgMessage.setOperUerId(effectivePerson.getDistinguishedName()); - orgMessage.setOperDataId(t.getId()); - orgMessage.setReceiveSystem(""); - orgMessage.setConsumed(false); - orgMessage.setConsumedModule(""); - - OrgBodyMessage orgBodyMessage = new OrgBodyMessage(); - orgBodyMessage.setOriginalData(strT); - orgMessage.setBody( gson.toJson(orgBodyMessage)); - - String path ="org/create"; - ActionResponse resp = ThisApplication.context().applications() - .postQuery(x_message_assemble_communicate.class, path, orgMessage); - - String mess = resp.getMessage(); - String data = resp.getData().toString(); - return true; - }catch(Exception e) { - logger.print(e.toString()); - return false; - } - } - - /**创建 组织变更org消息通信 */ - public boolean createMessageCommunicate(String strOperType, String strOrgType,String strOriginaGroup,T t, EffectivePerson effectivePerson) { - try{ - Gson gson = new Gson(); - String strT = gson.toJson(t); - OrgMessage orgMessage = new OrgMessage(); - orgMessage.setOperType(strOperType); - orgMessage.setOrgType(strOrgType); - orgMessage.setOperUerId(effectivePerson.getDistinguishedName()); - orgMessage.setOperDataId(t.getId()); - orgMessage.setReceiveSystem(""); - orgMessage.setConsumed(false); - orgMessage.setConsumedModule(""); - - OrgBodyMessage orgBodyMessage = new OrgBodyMessage(); - orgBodyMessage.setOriginalData(strOriginaGroup); - orgBodyMessage.setModifyData(strT); - - orgMessage.setBody( gson.toJson(orgBodyMessage)); - - String path ="org/create"; - ActionResponse resp = ThisApplication.context().applications() - .postQuery(x_message_assemble_communicate.class, path, orgMessage); - - String mess = resp.getMessage(); - String data = resp.getData().toString(); - return true; - }catch(Exception e) { - logger.print(e.toString()); - return false; - } - } - -} diff --git a/o2server/x_organization_assemble_express/pom.xml b/o2server/x_organization_assemble_express/pom.xml index 84ae283c0fe6d89fca109473919116565ab229a2..d7d58b08d64bb261ad21abcb465e3e42301f42c8 100644 --- a/o2server/x_organization_assemble_express/pom.xml +++ b/o2server/x_organization_assemble_express/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_organization_assemble_express war diff --git a/o2server/x_organization_assemble_personal/pom.xml b/o2server/x_organization_assemble_personal/pom.xml index d50c6eb8ca293aa8b62320d2b33454ec7ea00ce4..194bb1d67582d6b39a2c9e723027330ba1ae4434 100644 --- a/o2server/x_organization_assemble_personal/pom.xml +++ b/o2server/x_organization_assemble_personal/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_organization_assemble_personal war diff --git a/o2server/x_organization_core_entity/pom.xml b/o2server/x_organization_core_entity/pom.xml index 690408d4271e677a79800f335ebd536b6876abcf..e74cebb6f4d3b97179a6351a345f1e83e4ab2594 100644 --- a/o2server/x_organization_core_entity/pom.xml +++ b/o2server/x_organization_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_organization_core_entity jar diff --git a/o2server/x_organization_core_express/pom.xml b/o2server/x_organization_core_express/pom.xml index 4e70e9f4abc36826ac9263f6b505cd0938d4f3c6..693d6625d2d678aabeba3976433a44d48aa624c6 100644 --- a/o2server/x_organization_core_express/pom.xml +++ b/o2server/x_organization_core_express/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_organization_core_express jar diff --git a/o2server/x_portal_assemble_designer/pom.xml b/o2server/x_portal_assemble_designer/pom.xml index 8d29d7a9fb8932f98154912e62e96f86adbd924b..446093700106e77a54373b820033a3fa382e0da2 100644 --- a/o2server/x_portal_assemble_designer/pom.xml +++ b/o2server/x_portal_assemble_designer/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_portal_assemble_designer war diff --git a/o2server/x_portal_assemble_surface/pom.xml b/o2server/x_portal_assemble_surface/pom.xml index 0da367f9564bbecf7b04c99e195382151aae2c12..2b030f45c8f26a0edeb882449adca0782e1276d1 100644 --- a/o2server/x_portal_assemble_surface/pom.xml +++ b/o2server/x_portal_assemble_surface/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_portal_assemble_surface war diff --git a/o2server/x_portal_core_entity/pom.xml b/o2server/x_portal_core_entity/pom.xml index 837ef7d65aede8db9a424196e3d33d3ccbbc6000..ff6719b560151a674516c6bb1303e3423a4a44e5 100644 --- a/o2server/x_portal_core_entity/pom.xml +++ b/o2server/x_portal_core_entity/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_portal_core_entity jar diff --git a/o2server/x_processplatform_assemble_bam/pom.xml b/o2server/x_processplatform_assemble_bam/pom.xml index 922c795daa145192e38acce14f88f0bf01292f0e..f5cc0b63d155f1935c0e99ab6a8e85be0ec9b5ef 100644 --- a/o2server/x_processplatform_assemble_bam/pom.xml +++ b/o2server/x_processplatform_assemble_bam/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_processplatform_assemble_bam war diff --git a/o2server/x_processplatform_assemble_designer/pom.xml b/o2server/x_processplatform_assemble_designer/pom.xml index 5a3f40c35ae0255d0205fa2dc987558d0d6c5ccf..1c412815f578358b01cf61ed1a4bd0f6a2b605e0 100644 --- a/o2server/x_processplatform_assemble_designer/pom.xml +++ b/o2server/x_processplatform_assemble_designer/pom.xml @@ -7,7 +7,7 @@ o2oa o2server - 4.0.5 + ${global.version} x_processplatform_assemble_designer war diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/describe.json b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/describe.json deleted file mode 100644 index 3a04265a5246ccc2560784c4454a09b71600dd22..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/describe.json +++ /dev/null @@ -1,9001 +0,0 @@ -{ - "jaxrs": [ - { - "name": "ApplicationAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ApplicationAction", - "description": "应用", - "methods": [ - { - "name": "delete", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionDelete", - "description": "删除应用,将同时删除所有相关内容.", - "type": "DELETE", - "path": "jaxrs/application/{id}/{onlyRemoveNotCompleted}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "应用标识" - }, - { - "name": "onlyRemoveNotCompleted", - "type": "boolean", - "description": "是否仅删除在流转中的Work" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionEdit", - "description": "更新应用.", - "type": "PUT", - "path": "jaxrs/application/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户.", - "isBaseType": true - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门.", - "isBaseType": true - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionGet", - "description": "获取单个应用信息.", - "type": "GET", - "path": "jaxrs/application/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门." - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。" - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。" - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "list", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionList", - "description": "列示所有应用", - "type": "GET", - "path": "jaxrs/application/list", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类." - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调" - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。" - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。" - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSummary", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionListSummary", - "description": "列示所有应用,同时附带流程简要信息和表单简要信息.返回值按名称进行排序", - "type": "GET", - "path": "jaxrs/application/list/summary", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "processList", - "type": "List\u003cWoProcess\u003e", - "isCollection": true, - "description": "流程对象" - }, - { - "name": "formList", - "type": "List\u003cWoForm\u003e", - "isCollection": true, - "description": "表单对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门." - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。" - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。" - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listSummaryWithApplicationCategory", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionListSummaryWithApplicationCategory", - "description": "根据应用分类获取应用的简要信息,不包含流程表单,应用分类不为null.", - "type": "GET", - "path": "jaxrs/application/list/summary/applicationcategory/{applicationCategory}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationCategory", - "type": "String", - "description": "应用分类" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "processList", - "type": "List\u003cWoProcess\u003e", - "isCollection": true, - "description": "流程对象" - }, - { - "name": "formList", - "type": "List\u003cWoForm\u003e", - "isCollection": true, - "description": "表单对象" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门." - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。" - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。" - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithApplicationCategory", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionListWithApplicationCategory", - "description": "根据应用分类获取应用,应用分类不为null.", - "type": "GET", - "path": "jaxrs/application/list/applicationcategory/{applicationCategory}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationCategory", - "type": "String", - "description": "应用分类" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门." - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。" - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。" - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "post", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionCreate", - "description": "创建应用.", - "type": "POST", - "path": "jaxrs/application", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户.", - "isBaseType": true - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门.", - "isBaseType": true - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "setIcon", - "className": "com.x.processplatform.assemble.designer.jaxrs.application.ActionSetIcon", - "description": "更新应用图标.", - "type": "PUT", - "path": "jaxrs/application/{id}/icon", - "contentType": "multipart/form-data", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": true, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [ - { - "name": "file", - "type": "File", - "description": "头像文件" - } - ], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - } - ] - }, - { - "name": "ApplicationCategoryAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.applicationcategory.ApplicationCategoryAction", - "description": "应用分类", - "methods": [ - { - "name": "list", - "className": "com.x.processplatform.assemble.designer.jaxrs.applicationcategory.ActionList", - "description": "获取应用分类信息并统计同一分类的数量.", - "type": "GET", - "path": "jaxrs/applicationcategory/list", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - } - ] - }, - { - "name": "ApplicationDictAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.applicationdict.ApplicationDictAction", - "description": "数据字典\t", - "methods": [ - { - "name": "delete", - "className": "com.x.processplatform.assemble.designer.jaxrs.applicationdict.ActionDelete", - "description": "删除指定的数据字典以及数据字典数据.", - "type": "DELETE", - "path": "jaxrs/applicationdict/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.applicationdict.ActionGet", - "description": "获取单个数据字典以及数据字典数据.", - "type": "GET", - "path": "jaxrs/applicationdict/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "应用." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "字典名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "说明." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithApplication", - "className": "com.x.processplatform.assemble.designer.jaxrs.applicationdict.ActionListWithApplication", - "description": "获取Application的数据字典列表.", - "type": "GET", - "path": "jaxrs/applicationdict/list/application/{applicationId}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationId", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "应用." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "字典名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "说明." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "post", - "className": "com.x.processplatform.assemble.designer.jaxrs.applicationdict.ActionCreate", - "description": "创建数据字典以及数据.", - "type": "POST", - "path": "jaxrs/applicationdict", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "应用.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "字典名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "说明.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "put", - "className": "com.x.processplatform.assemble.designer.jaxrs.applicationdict.ActionEdit", - "description": "更新数据字典以及数据.", - "type": "PUT", - "path": "jaxrs/applicationdict/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "应用.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "字典名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "说明.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - } - ] - }, - { - "name": "CacheAction", - "className": "com.x.base.core.project.jaxrs.cache.CacheAction", - "description": "缓存操作", - "methods": [ - { - "name": "configFlush", - "className": "com.x.base.core.project.jaxrs.cache.ActionConfigFlush", - "description": "接收config flush 信号.", - "type": "GET", - "path": "jaxrs/cache/config/flush", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "receive", - "className": "com.x.base.core.project.jaxrs.cache.ActionReceive", - "description": "接收Cache刷新信息.", - "type": "PUT", - "path": "jaxrs/cache", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "nodeName", - "type": "String", - "isCollection": false, - "description": "节点名", - "isBaseType": true - }, - { - "name": "className", - "type": "String", - "isCollection": false, - "description": "类名", - "isBaseType": true - }, - { - "name": "keys", - "type": "List\u003cObject\u003e", - "isCollection": true, - "description": "关键字", - "isBaseType": false - } - ], - "outs": [ - { - "name": "value", - "type": "String", - "isCollection": false, - "description": "字符串值" - } - ] - } - ] - }, - { - "name": "EchoAction", - "className": "com.x.base.core.project.jaxrs.echo.EchoAction", - "description": "响应", - "methods": [ - { - "name": "get", - "className": "com.x.base.core.project.jaxrs.echo.ActionGet", - "description": "获取应答.", - "type": "GET", - "path": "jaxrs/echo", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "servletContextName", - "type": "String", - "isCollection": false, - "description": "上下文根" - }, - { - "name": "serverTime", - "type": "Date", - "isCollection": false, - "description": "服务器时间" - } - ] - } - ] - }, - { - "name": "ElementToolAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.elementtool.ElementToolAction", - "description": "设计元素工具", - "methods": [ - { - "name": "applicationDictOrphan", - "className": "com.x.processplatform.assemble.designer.jaxrs.elementtool.ActionApplicationDictOrphan", - "description": "ApplicationDict对象中的孤立对象,包括item对象", - "type": "GET", - "path": "jaxrs/elementtool/applicationdict/orphan", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "formOrphan", - "className": "com.x.processplatform.assemble.designer.jaxrs.elementtool.ActionFormOrphan", - "description": "Form对象中的孤立对象,包括Form和FormField", - "type": "GET", - "path": "jaxrs/elementtool/form/orphan", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "processOrphan", - "className": "com.x.processplatform.assemble.designer.jaxrs.elementtool.ActionProcessOrphan", - "description": "Process对象中的孤立对象,包括Process的子元素", - "type": "GET", - "path": "jaxrs/elementtool/process/orphan", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "scriptOrphan", - "className": "com.x.processplatform.assemble.designer.jaxrs.elementtool.ActionScriptOrphan", - "description": "Script对象中的孤立对象.", - "type": "GET", - "path": "jaxrs/elementtool/script/orphan", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - } - ] - }, - { - "name": "FileAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.FileAction", - "description": "文件", - "methods": [ - { - "name": "content", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionContent", - "description": "获取文件内容.", - "type": "GET", - "path": "jaxrs/file/{id}/content", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "copy", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionCopy", - "description": "复制资源文件到新的应用.", - "type": "GET", - "path": "jaxrs/file/{flag}/application/{applicationFlag}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "标识" - }, - { - "name": "applicationFlag", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "create", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionCreate", - "description": "创建文件.", - "type": "POST", - "path": "jaxrs/file", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "文件名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "文件别名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "文件所属应用.", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者.", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间.", - "isBaseType": true - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "编码后文本内容.", - "isBaseType": true - }, - { - "name": "fileName", - "type": "String", - "isCollection": false, - "description": "文件名称.", - "isBaseType": true - }, - { - "name": "length", - "type": "Long", - "isCollection": false, - "description": "文件大小.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionDelete", - "description": "删除文件.", - "type": "DELETE", - "path": "jaxrs/file/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "download", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionDownload", - "description": "获取文件内容.以stream方式下载.", - "type": "GET", - "path": "jaxrs/file/{id}/download", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "contentDisposition", - "type": "String", - "isCollection": false, - "description": "说明" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "类型" - }, - { - "name": "bytes", - "type": "byte[]", - "isCollection": false, - "description": "字节内容." - } - ] - }, - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionGet", - "description": "获取文件内容.", - "type": "GET", - "path": "jaxrs/file/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "文件名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "文件别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "文件所属应用." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "fileName", - "type": "String", - "isCollection": false, - "description": "文件名称." - }, - { - "name": "length", - "type": "Long", - "isCollection": false, - "description": "文件大小." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionListNext", - "description": "列示文件对象,下一页.", - "type": "GET", - "path": "jaxrs/file/list/{id}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "文件类型" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "文件名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "文件别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "文件所属应用." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "fileName", - "type": "String", - "isCollection": false, - "description": "文件名称." - }, - { - "name": "length", - "type": "Long", - "isCollection": false, - "description": "文件大小." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionListPrev", - "description": "列示文件对象,上一页.", - "type": "GET", - "path": "jaxrs/file/list/{id}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "contentType", - "type": "String", - "isCollection": false, - "description": "文件类型" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "文件名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "文件别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "文件所属应用." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "fileName", - "type": "String", - "isCollection": false, - "description": "文件名称." - }, - { - "name": "length", - "type": "Long", - "isCollection": false, - "description": "文件大小." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithApplication", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionListWithApplication", - "description": "根据应用列示文件.", - "type": "GET", - "path": "jaxrs/file/list/application/{applicationFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationFlag", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "文件名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "文件别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "文件所属应用." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "fileName", - "type": "String", - "isCollection": false, - "description": "文件名称." - }, - { - "name": "length", - "type": "Long", - "isCollection": false, - "description": "文件大小." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "update", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionEdit", - "description": "更新文件.", - "type": "PUT", - "path": "jaxrs/file/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "文件名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "文件别名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "文件所属应用.", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者.", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间.", - "isBaseType": true - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "编码后文本内容.", - "isBaseType": true - }, - { - "name": "fileName", - "type": "String", - "isCollection": false, - "description": "文件名称.", - "isBaseType": true - }, - { - "name": "length", - "type": "Long", - "isCollection": false, - "description": "文件大小.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "upload", - "className": "com.x.processplatform.assemble.designer.jaxrs.file.ActionUpload", - "description": "上传文件内容.", - "type": "POST", - "path": "jaxrs/file/{id}/upload", - "contentType": "multipart/form-data", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": true, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [ - { - "name": "file", - "type": "File", - "description": "文件内容" - }, - { - "name": "fileName", - "type": "String", - "description": "附件名称" - } - ], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "FireScheduleAction", - "className": "com.x.base.core.project.jaxrs.fireschedule.FireScheduleAction", - "description": "触发任务", - "methods": [ - { - "name": "execute", - "className": "com.x.base.core.project.jaxrs.fireschedule.ActionExecute", - "description": "接受x_program_center发送过来的运行schedule.", - "type": "GET", - "path": "jaxrs/fireschedule/classname/{className}", - "contentType": "application/json", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "className", - "type": "String", - "description": "运行类" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "FormAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.FormAction", - "description": "表单", - "methods": [ - { - "name": "create", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionCreate", - "description": "创建表单.", - "type": "POST", - "path": "jaxrs/form", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "formFieldList", - "type": "List\u003cWiFormField\u003e", - "isCollection": true, - "description": "字段", - "isBaseType": false - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "分类", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "表单所属应用.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容.", - "isBaseType": true - }, - { - "name": "mobileData", - "type": "String", - "isCollection": false, - "description": "移动端文本内容.", - "isBaseType": true - }, - { - "name": "hasMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否有移动端内容.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionDelete", - "description": "删除表单.", - "type": "DELETE", - "path": "jaxrs/form/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionGet", - "description": "获取表单内容.", - "type": "GET", - "path": "jaxrs/form/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "分类" - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "表单所属应用." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容." - }, - { - "name": "mobileData", - "type": "String", - "isCollection": false, - "description": "移动端文本内容." - }, - { - "name": "hasMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否有移动端内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listFornFiledWithApplication", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionListFormFieldWithApplication", - "description": "根据指定的应用获取应用下所有表单包含的字段字段信息.", - "type": "GET", - "path": "jaxrs/form/list/formfield/application/{applicationId}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationId", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "listFornFiledWithForm", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionListFormFieldWithForm", - "description": "根据指定的Form获取所有包含的字段信息.", - "type": "GET", - "path": "jaxrs/form/list/{id}/formfield", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "listNext", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionListNext", - "description": "列示Form对象,下一页.", - "type": "GET", - "path": "jaxrs/form/list/{id}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "分类" - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "表单所属应用." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "hasMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否有移动端内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionListPrev", - "description": "列示Form对象,上一页.", - "type": "GET", - "path": "jaxrs/form/list/{id}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "分类" - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "表单所属应用." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "hasMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否有移动端内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithApplication", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionListWithApplication", - "description": "根据应用列示Form.", - "type": "GET", - "path": "jaxrs/form/list/application/{applicationId}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationId", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "分类" - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "表单所属应用." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "hasMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否有移动端内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "update", - "className": "com.x.processplatform.assemble.designer.jaxrs.form.ActionEdit", - "description": "更新表单.", - "type": "PUT", - "path": "jaxrs/form/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "formFieldList", - "type": "List\u003cWiFormField\u003e", - "isCollection": true, - "description": "字段", - "isBaseType": false - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "分类", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "表单所属应用.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容.", - "isBaseType": true - }, - { - "name": "mobileData", - "type": "String", - "isCollection": false, - "description": "移动端文本内容.", - "isBaseType": true - }, - { - "name": "hasMobile", - "type": "Boolean", - "isCollection": false, - "description": "是否有移动端内容.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - } - ] - }, - { - "name": "FormVersionAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.formversion.FormVersionAction", - "description": "表单版本", - "methods": [ - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.formversion.ActionGet", - "description": "获取表单历史版本内容.", - "type": "GET", - "path": "jaxrs/formversion/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "form", - "type": "String", - "isCollection": false, - "description": "所属表单." - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithForm", - "className": "com.x.processplatform.assemble.designer.jaxrs.formversion.ActionListWithForm", - "description": "根据脚本id获取历史版本列表.", - "type": "GET", - "path": "jaxrs/formversion/list/form/{formId}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "formId", - "type": "String", - "description": "form标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "form", - "type": "String", - "isCollection": false, - "description": "所属表单." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "IdAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.id.IdAction", - "description": "标识", - "methods": [ - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.id.ActionGet", - "description": "创建用于ID值的UUID", - "type": "GET", - "path": "jaxrs/id/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - } - ] - }, - { - "name": "InputAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.input.InputAction", - "description": "导入", - "methods": [ - { - "name": "compare", - "className": "com.x.processplatform.assemble.designer.jaxrs.input.ActionCompare", - "description": "上传对比数据内容.", - "type": "PUT", - "path": "jaxrs/input/compare", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "processList", - "type": "List\u003cWrapProcess\u003e", - "isCollection": true, - "description": "导出的流程", - "isBaseType": false - }, - { - "name": "formList", - "type": "List\u003cWrapForm\u003e", - "isCollection": true, - "description": "导出的表单", - "isBaseType": false - }, - { - "name": "applicationDictList", - "type": "List\u003cWrapApplicationDict\u003e", - "isCollection": true, - "description": "导出的数据字典", - "isBaseType": false - }, - { - "name": "scriptList", - "type": "List\u003cWrapScript\u003e", - "isCollection": true, - "description": "导出的脚本", - "isBaseType": false - }, - { - "name": "fileList", - "type": "List\u003cWrapFile\u003e", - "isCollection": true, - "description": "导出的文件", - "isBaseType": false - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户.", - "isBaseType": true - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门.", - "isBaseType": true - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "导入名称" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "导入id" - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "导入别名" - }, - { - "name": "exist", - "type": "Boolean", - "isCollection": false, - "description": "是否已经存在" - }, - { - "name": "existName", - "type": "String", - "isCollection": false, - "description": "已经存在名称" - }, - { - "name": "existId", - "type": "String", - "isCollection": false, - "description": "已经存在id" - }, - { - "name": "existAlias", - "type": "String", - "isCollection": false, - "description": "已经存在别名" - } - ] - }, - { - "name": "cover", - "className": "com.x.processplatform.assemble.designer.jaxrs.input.ActionCover", - "description": "覆盖应用.", - "type": "PUT", - "path": "jaxrs/input/cover", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "processList", - "type": "List\u003cWrapProcess\u003e", - "isCollection": true, - "description": "导出的流程", - "isBaseType": false - }, - { - "name": "formList", - "type": "List\u003cWrapForm\u003e", - "isCollection": true, - "description": "导出的表单", - "isBaseType": false - }, - { - "name": "applicationDictList", - "type": "List\u003cWrapApplicationDict\u003e", - "isCollection": true, - "description": "导出的数据字典", - "isBaseType": false - }, - { - "name": "scriptList", - "type": "List\u003cWrapScript\u003e", - "isCollection": true, - "description": "导出的脚本", - "isBaseType": false - }, - { - "name": "fileList", - "type": "List\u003cWrapFile\u003e", - "isCollection": true, - "description": "导出的文件", - "isBaseType": false - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户.", - "isBaseType": true - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门.", - "isBaseType": true - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "create", - "className": "com.x.processplatform.assemble.designer.jaxrs.input.ActionCreate", - "description": "创建应用.", - "type": "PUT", - "path": "jaxrs/input/create", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "processList", - "type": "List\u003cWrapProcess\u003e", - "isCollection": true, - "description": "导出的流程", - "isBaseType": false - }, - { - "name": "formList", - "type": "List\u003cWrapForm\u003e", - "isCollection": true, - "description": "导出的表单", - "isBaseType": false - }, - { - "name": "applicationDictList", - "type": "List\u003cWrapApplicationDict\u003e", - "isCollection": true, - "description": "导出的数据字典", - "isBaseType": false - }, - { - "name": "scriptList", - "type": "List\u003cWrapScript\u003e", - "isCollection": true, - "description": "导出的脚本", - "isBaseType": false - }, - { - "name": "fileList", - "type": "List\u003cWrapFile\u003e", - "isCollection": true, - "description": "导出的文件", - "isBaseType": false - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户.", - "isBaseType": true - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门.", - "isBaseType": true - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "prepareCover", - "className": "com.x.processplatform.assemble.designer.jaxrs.input.ActionPrepareCover", - "description": "准备覆盖应用.", - "type": "PUT", - "path": "jaxrs/input/prepare/cover", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "processList", - "type": "List\u003cWrapProcess\u003e", - "isCollection": true, - "description": "导出的流程", - "isBaseType": false - }, - { - "name": "formList", - "type": "List\u003cWrapForm\u003e", - "isCollection": true, - "description": "导出的表单", - "isBaseType": false - }, - { - "name": "applicationDictList", - "type": "List\u003cWrapApplicationDict\u003e", - "isCollection": true, - "description": "导出的数据字典", - "isBaseType": false - }, - { - "name": "scriptList", - "type": "List\u003cWrapScript\u003e", - "isCollection": true, - "description": "导出的脚本", - "isBaseType": false - }, - { - "name": "fileList", - "type": "List\u003cWrapFile\u003e", - "isCollection": true, - "description": "导出的文件", - "isBaseType": false - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户.", - "isBaseType": true - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门.", - "isBaseType": true - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [] - }, - { - "name": "prepareCreate", - "className": "com.x.processplatform.assemble.designer.jaxrs.input.ActionPrepareCreate", - "description": "准备创建应用.", - "type": "PUT", - "path": "jaxrs/input/prepare/create", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "processList", - "type": "List\u003cWrapProcess\u003e", - "isCollection": true, - "description": "导出的流程", - "isBaseType": false - }, - { - "name": "formList", - "type": "List\u003cWrapForm\u003e", - "isCollection": true, - "description": "导出的表单", - "isBaseType": false - }, - { - "name": "applicationDictList", - "type": "List\u003cWrapApplicationDict\u003e", - "isCollection": true, - "description": "导出的数据字典", - "isBaseType": false - }, - { - "name": "scriptList", - "type": "List\u003cWrapScript\u003e", - "isCollection": true, - "description": "导出的脚本", - "isBaseType": false - }, - { - "name": "fileList", - "type": "List\u003cWrapFile\u003e", - "isCollection": true, - "description": "导出的文件", - "isBaseType": false - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户.", - "isBaseType": true - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门.", - "isBaseType": true - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [] - } - ] - }, - { - "name": "LoggerAction", - "className": "com.x.base.core.project.jaxrs.logger.LoggerAction", - "description": "日志操作", - "methods": [ - { - "name": "debug", - "className": "com.x.base.core.project.jaxrs.logger.ActionDebug", - "description": "设置日志级别为DEBUG.", - "type": "GET", - "path": "jaxrs/logger/debug", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "get", - "className": "com.x.base.core.project.jaxrs.logger.ActionGet", - "description": "获取当前日志级别.", - "type": "GET", - "path": "jaxrs/logger", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "String", - "isCollection": false, - "description": "字符串值" - } - ] - }, - { - "name": "info", - "className": "com.x.base.core.project.jaxrs.logger.ActionInfo", - "description": "设置日志级别为INFO", - "type": "GET", - "path": "jaxrs/logger/info", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "trace", - "className": "com.x.base.core.project.jaxrs.logger.ActionTrace", - "description": "设置日志级别为TRACE.", - "type": "GET", - "path": "jaxrs/logger/trace", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "warn", - "className": "com.x.base.core.project.jaxrs.logger.ActionWarn", - "description": "设置日志级别为WARN", - "type": "GET", - "path": "jaxrs/logger/warn", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "MappingAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.MappingAction", - "description": "表映射", - "methods": [ - { - "name": "create", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.ActionCreate", - "description": "创建表映射.", - "type": "POST", - "path": "jaxrs/mapping", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "enable", - "type": "Boolean", - "isCollection": false, - "description": "是否启用.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "所属应用.", - "isBaseType": true - }, - { - "name": "process", - "type": "String", - "isCollection": false, - "description": "所属流程.", - "isBaseType": true - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "映射方案.", - "isBaseType": true - }, - { - "name": "tableName", - "type": "String", - "isCollection": false, - "description": "映射表名称", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.ActionDelete", - "description": "删除表映射对象.", - "type": "DELETE", - "path": "jaxrs/mapping/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "edit", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.ActionEdit", - "description": "更新表映射.", - "type": "PUT", - "path": "jaxrs/mapping/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "enable", - "type": "Boolean", - "isCollection": false, - "description": "是否启用.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "所属应用.", - "isBaseType": true - }, - { - "name": "process", - "type": "String", - "isCollection": false, - "description": "所属流程.", - "isBaseType": true - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "映射方案.", - "isBaseType": true - }, - { - "name": "tableName", - "type": "String", - "isCollection": false, - "description": "映射表名称", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "execute", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.ActionExecute", - "description": "执行表映射.", - "type": "GET", - "path": "jaxrs/mapping/{flag}/execute", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.ActionGet", - "description": "获取单个表映射对象.", - "type": "GET", - "path": "jaxrs/mapping/{flag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "flag", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "enable", - "type": "Boolean", - "isCollection": false, - "description": "是否启用." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "所属应用." - }, - { - "name": "process", - "type": "String", - "isCollection": false, - "description": "所属流程." - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "映射方案." - }, - { - "name": "tableName", - "type": "String", - "isCollection": false, - "description": "映射表名称" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.ActionListNext", - "description": "列示表映射对象,下一页.", - "type": "GET", - "path": "jaxrs/mapping/list/{id}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "enable", - "type": "Boolean", - "isCollection": false, - "description": "是否启用." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "所属应用." - }, - { - "name": "process", - "type": "String", - "isCollection": false, - "description": "所属流程." - }, - { - "name": "tableName", - "type": "String", - "isCollection": false, - "description": "映射表名称" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.ActionListPrev", - "description": "列示表映射对象,上一页.", - "type": "GET", - "path": "jaxrs/mapping/list/{id}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "enable", - "type": "Boolean", - "isCollection": false, - "description": "是否启用." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "所属应用." - }, - { - "name": "process", - "type": "String", - "isCollection": false, - "description": "所属流程." - }, - { - "name": "tableName", - "type": "String", - "isCollection": false, - "description": "映射表名称" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithApplication", - "className": "com.x.processplatform.assemble.designer.jaxrs.mapping.ActionListWithApplication", - "description": "根据应用获取表映射.", - "type": "GET", - "path": "jaxrs/mapping/list/application/{applicationFlag}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationFlag", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "enable", - "type": "Boolean", - "isCollection": false, - "description": "是否启用." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "所属应用." - }, - { - "name": "process", - "type": "String", - "isCollection": false, - "description": "所属流程." - }, - { - "name": "tableName", - "type": "String", - "isCollection": false, - "description": "映射表名称" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "OutputAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.output.OutputAction", - "description": "导出", - "methods": [ - { - "name": "list", - "className": "com.x.processplatform.assemble.designer.jaxrs.output.ActionList", - "description": "查看所有应用.", - "type": "GET", - "path": "jaxrs/output/list", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "processList", - "type": "List\u003cWrapProcess\u003e", - "isCollection": true, - "description": "导出的流程" - }, - { - "name": "formList", - "type": "List\u003cWrapForm\u003e", - "isCollection": true, - "description": "导出的表单" - }, - { - "name": "applicationDictList", - "type": "List\u003cWrapApplicationDict\u003e", - "isCollection": true, - "description": "导出的数据字典" - }, - { - "name": "scriptList", - "type": "List\u003cWrapScript\u003e", - "isCollection": true, - "description": "导出的脚本" - }, - { - "name": "fileList", - "type": "List\u003cWrapFile\u003e", - "isCollection": true, - "description": "导出的文件" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类." - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调" - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。" - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。" - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "select", - "className": "com.x.processplatform.assemble.designer.jaxrs.output.ActionSelect", - "description": "选择应用结构.", - "type": "PUT", - "path": "jaxrs/output/{applicationFlag}/select", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationFlag", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "processList", - "type": "List\u003cWrapProcess\u003e", - "isCollection": true, - "description": "导出的流程", - "isBaseType": false - }, - { - "name": "formList", - "type": "List\u003cWrapForm\u003e", - "isCollection": true, - "description": "导出的表单", - "isBaseType": false - }, - { - "name": "applicationDictList", - "type": "List\u003cWrapApplicationDict\u003e", - "isCollection": true, - "description": "导出的数据字典", - "isBaseType": false - }, - { - "name": "scriptList", - "type": "List\u003cWrapScript\u003e", - "isCollection": true, - "description": "导出的脚本", - "isBaseType": false - }, - { - "name": "fileList", - "type": "List\u003cWrapFile\u003e", - "isCollection": true, - "description": "导出的文件", - "isBaseType": false - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户.", - "isBaseType": true - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门.", - "isBaseType": true - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调", - "isBaseType": true - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "flag", - "type": "String", - "isCollection": false, - "description": "返回标识" - }, - { - "name": "processList", - "type": "List\u003cWrapProcess\u003e", - "isCollection": true, - "description": "导出的流程" - }, - { - "name": "formList", - "type": "List\u003cWrapForm\u003e", - "isCollection": true, - "description": "导出的表单" - }, - { - "name": "applicationDictList", - "type": "List\u003cWrapApplicationDict\u003e", - "isCollection": true, - "description": "导出的数据字典" - }, - { - "name": "scriptList", - "type": "List\u003cWrapScript\u003e", - "isCollection": true, - "description": "导出的脚本" - }, - { - "name": "fileList", - "type": "List\u003cWrapFile\u003e", - "isCollection": true, - "description": "导出的文件" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "应用别名,如果有必须唯一." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "availableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "availableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的部门." - }, - { - "name": "applicationCategory", - "type": "String", - "isCollection": false, - "description": "应用分类." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "iconHue", - "type": "String", - "isCollection": false, - "description": "icon的主色调" - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "应用管理者." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "应用的创建者。" - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "应用的最后修改时间。" - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "应用的最后修改者" - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "ProcessAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ProcessAction", - "description": "流程", - "methods": [ - { - "name": "delete", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionDelete", - "description": "删除流程.", - "type": "DELETE", - "path": "jaxrs/process/{id}/{onlyRemoveNotCompleted}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "onlyRemoveNotCompleted", - "type": "boolean", - "description": "仅删除流转中Work" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "deleteEdition", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionDeleteEdition", - "description": "删除流程所有版本.", - "type": "DELETE", - "path": "jaxrs/process/{id}/{onlyRemoveNotCompleted}/edition", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "onlyRemoveNotCompleted", - "type": "boolean", - "description": "仅删除流转中Work" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "disableProcess", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionDisable", - "description": "停用当前版本流程.", - "type": "GET", - "path": "jaxrs/process/{id}/disable", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "enableProcess", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionEnable", - "description": "启用当前版本流程.", - "type": "GET", - "path": "jaxrs/process/{id}/enable", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "executeProjection", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionExecuteProjection", - "description": "执行流程数据映射.", - "type": "POST", - "path": "jaxrs/process/{id}/execute/projection", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - }, - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionGet", - "description": "获取流程内容.含所有节点和路由信息", - "type": "GET", - "path": "jaxrs/process/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "流程所属应用." - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "流程管理者." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "beforeBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "beforeBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "afterBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "afterBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "beforeEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "beforeEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "afterEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "afterEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "startableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "startableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的组织." - }, - { - "name": "serialTexture", - "type": "String", - "isCollection": false, - "description": "编号定义." - }, - { - "name": "serialActivity", - "type": "String", - "isCollection": false, - "description": "编号活动ID." - }, - { - "name": "serialPhase", - "type": "String", - "isCollection": false, - "description": "编号活动阶段可以选择arrive或者inquire,默认情况下为空为arrive" - }, - { - "name": "expireType", - "type": "ExpireType", - "isCollection": false, - "description": "过期方式.可选值never,appoint,script" - }, - { - "name": "expireDay", - "type": "Integer", - "isCollection": false, - "description": "过期日期." - }, - { - "name": "expireHour", - "type": "Integer", - "isCollection": false, - "description": "过期小时." - }, - { - "name": "expireWorkTime", - "type": "Boolean", - "isCollection": false, - "description": "过期是否是工作时间." - }, - { - "name": "expireScript", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本." - }, - { - "name": "expireScriptText", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本文本." - }, - { - "name": "checkDraft", - "type": "Boolean", - "isCollection": false, - "description": "是否进行无内容的草稿删除校验." - }, - { - "name": "projection", - "type": "String", - "isCollection": false, - "description": "字段映射配置." - }, - { - "name": "projectionFully", - "type": "Boolean", - "isCollection": false, - "description": "执行完全映射,在每次流转时会将所有的工作,待办,已办,待阅,已阅,参阅执行全部字段映射,默认false" - }, - { - "name": "routeNameAsOpinion", - "type": "Boolean", - "isCollection": false, - "description": "如果没有默认意见那么将路由名称作为默认意见." - }, - { - "name": "beforeArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本." - }, - { - "name": "beforeArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本文本." - }, - { - "name": "afterArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本." - }, - { - "name": "afterArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本文本." - }, - { - "name": "beforeExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本." - }, - { - "name": "beforeExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本文本." - }, - { - "name": "afterExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本." - }, - { - "name": "afterExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本文本." - }, - { - "name": "beforeInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本." - }, - { - "name": "beforeInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本文本." - }, - { - "name": "afterInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本." - }, - { - "name": "afterInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本文本." - }, - { - "name": "edition", - "type": "String", - "isCollection": false, - "description": "版本编码,不同版本的流程编码需相同." - }, - { - "name": "editionName", - "type": "String", - "isCollection": false, - "description": "版本名" - }, - { - "name": "editionEnable", - "type": "Boolean", - "isCollection": false, - "description": "启用版本" - }, - { - "name": "editionNumber", - "type": "Double", - "isCollection": false, - "description": "版本号" - }, - { - "name": "editionDes", - "type": "String", - "isCollection": false, - "description": "版本描述." - }, - { - "name": "defaultStartMode", - "type": "String", - "isCollection": false, - "description": "默认启动方式,draft,instance" - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中." - } - ] - }, - { - "name": "getEnabled", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionGetEnabled", - "description": "获取启用版本流程内容.含所有节点和路由信息", - "type": "GET", - "path": "jaxrs/process/{id}/enabled", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "流程所属应用." - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "流程管理者." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "beforeBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "beforeBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "afterBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "afterBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "beforeEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "beforeEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "afterEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "afterEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "startableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "startableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的组织." - }, - { - "name": "serialTexture", - "type": "String", - "isCollection": false, - "description": "编号定义." - }, - { - "name": "serialActivity", - "type": "String", - "isCollection": false, - "description": "编号活动ID." - }, - { - "name": "serialPhase", - "type": "String", - "isCollection": false, - "description": "编号活动阶段可以选择arrive或者inquire,默认情况下为空为arrive" - }, - { - "name": "expireType", - "type": "ExpireType", - "isCollection": false, - "description": "过期方式.可选值never,appoint,script" - }, - { - "name": "expireDay", - "type": "Integer", - "isCollection": false, - "description": "过期日期." - }, - { - "name": "expireHour", - "type": "Integer", - "isCollection": false, - "description": "过期小时." - }, - { - "name": "expireWorkTime", - "type": "Boolean", - "isCollection": false, - "description": "过期是否是工作时间." - }, - { - "name": "expireScript", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本." - }, - { - "name": "expireScriptText", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本文本." - }, - { - "name": "checkDraft", - "type": "Boolean", - "isCollection": false, - "description": "是否进行无内容的草稿删除校验." - }, - { - "name": "projection", - "type": "String", - "isCollection": false, - "description": "字段映射配置." - }, - { - "name": "projectionFully", - "type": "Boolean", - "isCollection": false, - "description": "执行完全映射,在每次流转时会将所有的工作,待办,已办,待阅,已阅,参阅执行全部字段映射,默认false" - }, - { - "name": "routeNameAsOpinion", - "type": "Boolean", - "isCollection": false, - "description": "如果没有默认意见那么将路由名称作为默认意见." - }, - { - "name": "beforeArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本." - }, - { - "name": "beforeArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本文本." - }, - { - "name": "afterArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本." - }, - { - "name": "afterArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本文本." - }, - { - "name": "beforeExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本." - }, - { - "name": "beforeExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本文本." - }, - { - "name": "afterExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本." - }, - { - "name": "afterExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本文本." - }, - { - "name": "beforeInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本." - }, - { - "name": "beforeInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本文本." - }, - { - "name": "afterInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本." - }, - { - "name": "afterInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本文本." - }, - { - "name": "edition", - "type": "String", - "isCollection": false, - "description": "版本编码,不同版本的流程编码需相同." - }, - { - "name": "editionName", - "type": "String", - "isCollection": false, - "description": "版本名" - }, - { - "name": "editionEnable", - "type": "Boolean", - "isCollection": false, - "description": "启用版本" - }, - { - "name": "editionNumber", - "type": "Double", - "isCollection": false, - "description": "版本号" - }, - { - "name": "editionDes", - "type": "String", - "isCollection": false, - "description": "版本描述." - }, - { - "name": "defaultStartMode", - "type": "String", - "isCollection": false, - "description": "默认启动方式,draft,instance" - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中." - } - ] - }, - { - "name": "leadOut", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionLeadOut", - "description": "导出流程.", - "type": "GET", - "path": "jaxrs/process/{id}/lead/out", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "流程所属应用." - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "流程管理者." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "beforeBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "beforeBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "afterBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "afterBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "beforeEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "beforeEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "afterEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "afterEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "startableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "startableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的组织." - }, - { - "name": "serialTexture", - "type": "String", - "isCollection": false, - "description": "编号定义." - }, - { - "name": "serialActivity", - "type": "String", - "isCollection": false, - "description": "编号活动ID." - }, - { - "name": "serialPhase", - "type": "String", - "isCollection": false, - "description": "编号活动阶段可以选择arrive或者inquire,默认情况下为空为arrive" - }, - { - "name": "expireType", - "type": "ExpireType", - "isCollection": false, - "description": "过期方式.可选值never,appoint,script" - }, - { - "name": "expireDay", - "type": "Integer", - "isCollection": false, - "description": "过期日期." - }, - { - "name": "expireHour", - "type": "Integer", - "isCollection": false, - "description": "过期小时." - }, - { - "name": "expireWorkTime", - "type": "Boolean", - "isCollection": false, - "description": "过期是否是工作时间." - }, - { - "name": "expireScript", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本." - }, - { - "name": "expireScriptText", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本文本." - }, - { - "name": "checkDraft", - "type": "Boolean", - "isCollection": false, - "description": "是否进行无内容的草稿删除校验." - }, - { - "name": "projection", - "type": "String", - "isCollection": false, - "description": "字段映射配置." - }, - { - "name": "projectionFully", - "type": "Boolean", - "isCollection": false, - "description": "执行完全映射,在每次流转时会将所有的工作,待办,已办,待阅,已阅,参阅执行全部字段映射,默认false" - }, - { - "name": "routeNameAsOpinion", - "type": "Boolean", - "isCollection": false, - "description": "如果没有默认意见那么将路由名称作为默认意见." - }, - { - "name": "beforeArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本." - }, - { - "name": "beforeArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本文本." - }, - { - "name": "afterArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本." - }, - { - "name": "afterArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本文本." - }, - { - "name": "beforeExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本." - }, - { - "name": "beforeExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本文本." - }, - { - "name": "afterExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本." - }, - { - "name": "afterExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本文本." - }, - { - "name": "beforeInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本." - }, - { - "name": "beforeInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本文本." - }, - { - "name": "afterInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本." - }, - { - "name": "afterInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本文本." - }, - { - "name": "edition", - "type": "String", - "isCollection": false, - "description": "版本编码,不同版本的流程编码需相同." - }, - { - "name": "editionName", - "type": "String", - "isCollection": false, - "description": "版本名" - }, - { - "name": "editionEnable", - "type": "Boolean", - "isCollection": false, - "description": "启用版本" - }, - { - "name": "editionNumber", - "type": "Double", - "isCollection": false, - "description": "版本号" - }, - { - "name": "editionDes", - "type": "String", - "isCollection": false, - "description": "版本描述." - }, - { - "name": "defaultStartMode", - "type": "String", - "isCollection": false, - "description": "默认启动方式,draft,instance" - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listDisableEdition", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionListDisableEdition", - "description": "列示未启用的流程版本.", - "type": "GET", - "path": "jaxrs/process/application/{applicationId}/disable/edition", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationId", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "流程所属应用." - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "流程管理者." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "beforeBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "beforeBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "afterBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "afterBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "beforeEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "beforeEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "afterEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "afterEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "startableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "startableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的组织." - }, - { - "name": "serialTexture", - "type": "String", - "isCollection": false, - "description": "编号定义." - }, - { - "name": "serialActivity", - "type": "String", - "isCollection": false, - "description": "编号活动ID." - }, - { - "name": "serialPhase", - "type": "String", - "isCollection": false, - "description": "编号活动阶段可以选择arrive或者inquire,默认情况下为空为arrive" - }, - { - "name": "expireType", - "type": "ExpireType", - "isCollection": false, - "description": "过期方式.可选值never,appoint,script" - }, - { - "name": "expireDay", - "type": "Integer", - "isCollection": false, - "description": "过期日期." - }, - { - "name": "expireHour", - "type": "Integer", - "isCollection": false, - "description": "过期小时." - }, - { - "name": "expireWorkTime", - "type": "Boolean", - "isCollection": false, - "description": "过期是否是工作时间." - }, - { - "name": "expireScript", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本." - }, - { - "name": "expireScriptText", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本文本." - }, - { - "name": "checkDraft", - "type": "Boolean", - "isCollection": false, - "description": "是否进行无内容的草稿删除校验." - }, - { - "name": "projection", - "type": "String", - "isCollection": false, - "description": "字段映射配置." - }, - { - "name": "projectionFully", - "type": "Boolean", - "isCollection": false, - "description": "执行完全映射,在每次流转时会将所有的工作,待办,已办,待阅,已阅,参阅执行全部字段映射,默认false" - }, - { - "name": "routeNameAsOpinion", - "type": "Boolean", - "isCollection": false, - "description": "如果没有默认意见那么将路由名称作为默认意见." - }, - { - "name": "beforeArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本." - }, - { - "name": "beforeArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本文本." - }, - { - "name": "afterArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本." - }, - { - "name": "afterArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本文本." - }, - { - "name": "beforeExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本." - }, - { - "name": "beforeExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本文本." - }, - { - "name": "afterExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本." - }, - { - "name": "afterExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本文本." - }, - { - "name": "beforeInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本." - }, - { - "name": "beforeInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本文本." - }, - { - "name": "afterInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本." - }, - { - "name": "afterInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本文本." - }, - { - "name": "edition", - "type": "String", - "isCollection": false, - "description": "版本编码,不同版本的流程编码需相同." - }, - { - "name": "editionName", - "type": "String", - "isCollection": false, - "description": "版本名" - }, - { - "name": "editionEnable", - "type": "Boolean", - "isCollection": false, - "description": "启用版本" - }, - { - "name": "editionNumber", - "type": "Double", - "isCollection": false, - "description": "版本号" - }, - { - "name": "editionDes", - "type": "String", - "isCollection": false, - "description": "版本描述." - }, - { - "name": "defaultStartMode", - "type": "String", - "isCollection": false, - "description": "默认启动方式,draft,instance" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listEdition", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionListEdition", - "description": "列示流程的所有版本.", - "type": "GET", - "path": "jaxrs/process/application/{applicationId}/edition/{edition}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationId", - "type": "String", - "description": "应用标识" - }, - { - "name": "edition", - "type": "String", - "description": "流程版本标志" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "流程所属应用." - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "流程管理者." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "beforeBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "beforeBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "afterBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "afterBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "beforeEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "beforeEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "afterEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "afterEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "startableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "startableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的组织." - }, - { - "name": "serialTexture", - "type": "String", - "isCollection": false, - "description": "编号定义." - }, - { - "name": "serialActivity", - "type": "String", - "isCollection": false, - "description": "编号活动ID." - }, - { - "name": "serialPhase", - "type": "String", - "isCollection": false, - "description": "编号活动阶段可以选择arrive或者inquire,默认情况下为空为arrive" - }, - { - "name": "expireType", - "type": "ExpireType", - "isCollection": false, - "description": "过期方式.可选值never,appoint,script" - }, - { - "name": "expireDay", - "type": "Integer", - "isCollection": false, - "description": "过期日期." - }, - { - "name": "expireHour", - "type": "Integer", - "isCollection": false, - "description": "过期小时." - }, - { - "name": "expireWorkTime", - "type": "Boolean", - "isCollection": false, - "description": "过期是否是工作时间." - }, - { - "name": "expireScript", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本." - }, - { - "name": "expireScriptText", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本文本." - }, - { - "name": "checkDraft", - "type": "Boolean", - "isCollection": false, - "description": "是否进行无内容的草稿删除校验." - }, - { - "name": "projection", - "type": "String", - "isCollection": false, - "description": "字段映射配置." - }, - { - "name": "projectionFully", - "type": "Boolean", - "isCollection": false, - "description": "执行完全映射,在每次流转时会将所有的工作,待办,已办,待阅,已阅,参阅执行全部字段映射,默认false" - }, - { - "name": "routeNameAsOpinion", - "type": "Boolean", - "isCollection": false, - "description": "如果没有默认意见那么将路由名称作为默认意见." - }, - { - "name": "beforeArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本." - }, - { - "name": "beforeArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本文本." - }, - { - "name": "afterArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本." - }, - { - "name": "afterArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本文本." - }, - { - "name": "beforeExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本." - }, - { - "name": "beforeExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本文本." - }, - { - "name": "afterExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本." - }, - { - "name": "afterExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本文本." - }, - { - "name": "beforeInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本." - }, - { - "name": "beforeInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本文本." - }, - { - "name": "afterInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本." - }, - { - "name": "afterInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本文本." - }, - { - "name": "edition", - "type": "String", - "isCollection": false, - "description": "版本编码,不同版本的流程编码需相同." - }, - { - "name": "editionName", - "type": "String", - "isCollection": false, - "description": "版本名" - }, - { - "name": "editionEnable", - "type": "Boolean", - "isCollection": false, - "description": "启用版本" - }, - { - "name": "editionNumber", - "type": "Double", - "isCollection": false, - "description": "版本号" - }, - { - "name": "editionDes", - "type": "String", - "isCollection": false, - "description": "版本描述." - }, - { - "name": "defaultStartMode", - "type": "String", - "isCollection": false, - "description": "默认启动方式,draft,instance" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithApplication", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionListWithApplication", - "description": "列示某个应用的所有流程.", - "type": "GET", - "path": "jaxrs/process/application/{applicationId}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationId", - "type": "String", - "description": "" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "流程所属应用." - }, - { - "name": "controllerList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "流程管理者." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "beforeBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "beforeBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "afterBeginScript", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本." - }, - { - "name": "afterBeginScriptText", - "type": "String", - "isCollection": false, - "description": "流程启动前事件脚本文本." - }, - { - "name": "beforeEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "beforeEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "afterEndScript", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本." - }, - { - "name": "afterEndScriptText", - "type": "String", - "isCollection": false, - "description": "流程结束后事件脚本文本." - }, - { - "name": "startableIdentityList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的用户." - }, - { - "name": "startableUnitList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "在指定启动时候,允许新建Work的组织." - }, - { - "name": "serialTexture", - "type": "String", - "isCollection": false, - "description": "编号定义." - }, - { - "name": "serialActivity", - "type": "String", - "isCollection": false, - "description": "编号活动ID." - }, - { - "name": "serialPhase", - "type": "String", - "isCollection": false, - "description": "编号活动阶段可以选择arrive或者inquire,默认情况下为空为arrive" - }, - { - "name": "expireType", - "type": "ExpireType", - "isCollection": false, - "description": "过期方式.可选值never,appoint,script" - }, - { - "name": "expireDay", - "type": "Integer", - "isCollection": false, - "description": "过期日期." - }, - { - "name": "expireHour", - "type": "Integer", - "isCollection": false, - "description": "过期小时." - }, - { - "name": "expireWorkTime", - "type": "Boolean", - "isCollection": false, - "description": "过期是否是工作时间." - }, - { - "name": "expireScript", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本." - }, - { - "name": "expireScriptText", - "type": "String", - "isCollection": false, - "description": "过期时间设定脚本文本." - }, - { - "name": "checkDraft", - "type": "Boolean", - "isCollection": false, - "description": "是否进行无内容的草稿删除校验." - }, - { - "name": "projection", - "type": "String", - "isCollection": false, - "description": "字段映射配置." - }, - { - "name": "projectionFully", - "type": "Boolean", - "isCollection": false, - "description": "执行完全映射,在每次流转时会将所有的工作,待办,已办,待阅,已阅,参阅执行全部字段映射,默认false" - }, - { - "name": "routeNameAsOpinion", - "type": "Boolean", - "isCollection": false, - "description": "如果没有默认意见那么将路由名称作为默认意见." - }, - { - "name": "beforeArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本." - }, - { - "name": "beforeArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达前事件脚本文本." - }, - { - "name": "afterArriveScript", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本." - }, - { - "name": "afterArriveScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动到达后事件脚本文本." - }, - { - "name": "beforeExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本." - }, - { - "name": "beforeExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行前事件脚本文本." - }, - { - "name": "afterExecuteScript", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本." - }, - { - "name": "afterExecuteScriptText", - "type": "String", - "isCollection": false, - "description": "统一活动执行后事件脚本文本." - }, - { - "name": "beforeInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本." - }, - { - "name": "beforeInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询前事件脚本文本." - }, - { - "name": "afterInquireScript", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本." - }, - { - "name": "afterInquireScriptText", - "type": "String", - "isCollection": false, - "description": "统一路由查询后事件脚本文本." - }, - { - "name": "edition", - "type": "String", - "isCollection": false, - "description": "版本编码,不同版本的流程编码需相同." - }, - { - "name": "editionName", - "type": "String", - "isCollection": false, - "description": "版本名" - }, - { - "name": "editionEnable", - "type": "Boolean", - "isCollection": false, - "description": "启用版本" - }, - { - "name": "editionNumber", - "type": "Double", - "isCollection": false, - "description": "版本号" - }, - { - "name": "editionDes", - "type": "String", - "isCollection": false, - "description": "版本描述." - }, - { - "name": "defaultStartMode", - "type": "String", - "isCollection": false, - "description": "默认启动方式,draft,instance" - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "post", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionCreate", - "description": "创建流程.", - "type": "POST", - "path": "jaxrs/process", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": true, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "put", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionEdit", - "description": "更新流程.", - "type": "PUT", - "path": "jaxrs/process/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": true, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "upgrade", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionUpgrade", - "description": "升级流程.", - "type": "POST", - "path": "jaxrs/process/{id}/upgrade", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": true, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "upgradeAll", - "className": "com.x.processplatform.assemble.designer.jaxrs.process.ActionUpgradeAll", - "description": "给所有流程打上版本信息.", - "type": "GET", - "path": "jaxrs/process/upgrade/all", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "ProcessVersionAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.processversion.ProcessVersionAction", - "description": "流程版本", - "methods": [ - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.processversion.ActionGet", - "description": "获取流程历史版本内容.", - "type": "GET", - "path": "jaxrs/processversion/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "process", - "type": "String", - "isCollection": false, - "description": "所属流程." - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithForm", - "className": "com.x.processplatform.assemble.designer.jaxrs.processversion.ActionListWithProcess", - "description": "根据脚本id获取历史版本列表.", - "type": "GET", - "path": "jaxrs/processversion/list/process/{processId}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "processId", - "type": "String", - "description": "process标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "process", - "type": "String", - "isCollection": false, - "description": "所属流程." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "ScriptAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ScriptAction", - "description": "脚本", - "methods": [ - { - "name": "delete", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ActionDelete", - "description": "删除脚本.", - "type": "DELETE", - "path": "jaxrs/script/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ActionGet", - "description": "获取指定的脚本信息.", - "type": "GET", - "path": "jaxrs/script/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "validated", - "type": "Boolean", - "isCollection": false, - "description": "代码格式是否正确." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "脚本所属应用." - }, - { - "name": "text", - "type": "String", - "isCollection": false, - "description": "脚本内容." - }, - { - "name": "dependScriptList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "依赖的函数列表." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "getWithApplicationWithName", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ActionGetWithApplicationWithName", - "description": "根据应用ID和脚本名称获取脚本.", - "type": "GET", - "path": "jaxrs/script/application/{applicationId}/name/{name}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationId", - "type": "String", - "description": "应用标识" - }, - { - "name": "name", - "type": "String", - "description": "名称" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "validated", - "type": "Boolean", - "isCollection": false, - "description": "代码格式是否正确." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "脚本所属应用." - }, - { - "name": "text", - "type": "String", - "isCollection": false, - "description": "脚本内容." - }, - { - "name": "dependScriptList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "依赖的函数列表." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listNext", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ActionListNext", - "description": "列示Script对象,下一页.", - "type": "GET", - "path": "jaxrs/script/list/{id}/next/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "validated", - "type": "Boolean", - "isCollection": false, - "description": "代码格式是否正确." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "脚本所属应用." - }, - { - "name": "text", - "type": "String", - "isCollection": false, - "description": "脚本内容." - }, - { - "name": "dependScriptList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "依赖的函数列表." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listPrev", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ActionListPrev", - "description": "列示Script对象,上一页.", - "type": "GET", - "path": "jaxrs/script/list/{id}/prev/{count}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - }, - { - "name": "count", - "type": "Integer", - "description": "数量" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "rank", - "type": "Long", - "isCollection": false, - "description": "排序号" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "validated", - "type": "Boolean", - "isCollection": false, - "description": "代码格式是否正确." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "脚本所属应用." - }, - { - "name": "text", - "type": "String", - "isCollection": false, - "description": "脚本内容." - }, - { - "name": "dependScriptList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "依赖的函数列表." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithApplication", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ActionListWithApplication", - "description": "列示应用所有脚本.", - "type": "GET", - "path": "jaxrs/script/application/{applicationId}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationId", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "validated", - "type": "Boolean", - "isCollection": false, - "description": "代码格式是否正确." - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "脚本所属应用." - }, - { - "name": "text", - "type": "String", - "isCollection": false, - "description": "脚本内容." - }, - { - "name": "dependScriptList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "依赖的函数列表." - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者." - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者." - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "post", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ActionCreate", - "description": "创建脚本.", - "type": "POST", - "path": "jaxrs/script", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "validated", - "type": "Boolean", - "isCollection": false, - "description": "代码格式是否正确.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "脚本所属应用.", - "isBaseType": true - }, - { - "name": "text", - "type": "String", - "isCollection": false, - "description": "脚本内容.", - "isBaseType": true - }, - { - "name": "dependScriptList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "依赖的函数列表.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者.", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者.", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "put", - "className": "com.x.processplatform.assemble.designer.jaxrs.script.ActionEdit", - "description": "更新脚本.", - "type": "PUT", - "path": "jaxrs/script/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "别名.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "validated", - "type": "Boolean", - "isCollection": false, - "description": "代码格式是否正确.", - "isBaseType": true - }, - { - "name": "application", - "type": "String", - "isCollection": false, - "description": "脚本所属应用.", - "isBaseType": true - }, - { - "name": "text", - "type": "String", - "isCollection": false, - "description": "脚本内容.", - "isBaseType": true - }, - { - "name": "dependScriptList", - "type": "List\u003cString\u003e", - "isCollection": true, - "description": "依赖的函数列表.", - "isBaseType": true - }, - { - "name": "creatorPerson", - "type": "String", - "isCollection": false, - "description": "流程创建者.", - "isBaseType": true - }, - { - "name": "lastUpdatePerson", - "type": "String", - "isCollection": false, - "description": "最后的编辑者.", - "isBaseType": true - }, - { - "name": "lastUpdateTime", - "type": "Date", - "isCollection": false, - "description": "最后的编辑时间.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - } - ] - }, - { - "name": "ScriptVersionAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.scriptversion.ScriptVersionAction", - "description": "脚本版本", - "methods": [ - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.scriptversion.ActionGet", - "description": "获取脚本历史版本内容.", - "type": "GET", - "path": "jaxrs/scriptversion/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "script", - "type": "String", - "isCollection": false, - "description": "所属流程." - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listWithForm", - "className": "com.x.processplatform.assemble.designer.jaxrs.scriptversion.ActionListWithScript", - "description": "根据脚本id获取历史版本列表.", - "type": "GET", - "path": "jaxrs/scriptversion/list/script/{scriptId}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "scriptId", - "type": "String", - "description": "process标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "script", - "type": "String", - "isCollection": false, - "description": "所属流程." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "SysResourceAction", - "className": "com.x.base.core.project.jaxrs.sysresource.SysResourceAction", - "description": "系统资源", - "methods": [ - { - "name": "listResource", - "className": "com.x.base.core.project.jaxrs.sysresource.ActionListResource", - "description": "获取静态资源信息.", - "type": "GET", - "path": "jaxrs/sysresource/filePath/{filePath}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "filePath", - "type": "String", - "description": "查找路径(根路径:(0))" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "uploadResource", - "className": "com.x.base.core.project.jaxrs.sysresource.ActionUploadResource", - "description": "上传静态资源(仅上传到当前服务器)", - "type": "POST", - "path": "jaxrs/sysresource/upload/resource/as/new/{asNew}", - "contentType": "multipart/form-data", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": true, - "pathParameters": [ - { - "name": "asNew", - "type": "Boolean", - "description": "覆盖类型:true删除原文件然后上传,false覆盖原文件" - } - ], - "formParameters": [ - { - "name": "file", - "type": "File", - "description": "上传文件" - }, - { - "name": "fileName", - "type": "String", - "description": "附件名称" - }, - { - "name": "filePath", - "type": "String", - "description": "附件存放目录(可以为空)" - } - ], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Boolean", - "isCollection": false, - "description": "布尔值." - } - ] - } - ] - }, - { - "name": "TemplateFormAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.templateform.TemplateFormAction", - "description": "表单模版", - "methods": [ - { - "name": "create", - "className": "com.x.processplatform.assemble.designer.jaxrs.templateform.ActionCreate", - "description": "创建模版表单或者更新模版表单.", - "type": "POST", - "path": "jaxrs/templateform", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名.", - "isBaseType": true - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "模版分类.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "outline", - "type": "String", - "isCollection": false, - "description": "缩略图.", - "isBaseType": true - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容.", - "isBaseType": true - }, - { - "name": "mobileData", - "type": "String", - "isCollection": false, - "description": "移动端文本内容.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "delete", - "className": "com.x.processplatform.assemble.designer.jaxrs.templateform.ActionDelete", - "description": "删除模版表单.", - "type": "DELETE", - "path": "jaxrs/templateform/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "id" - } - ] - }, - { - "name": "get", - "className": "com.x.processplatform.assemble.designer.jaxrs.templateform.ActionGet", - "description": "获取模版表单内容.", - "type": "GET", - "path": "jaxrs/templateform/{id}", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "id", - "type": "String", - "description": "标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名." - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "模版分类." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "outline", - "type": "String", - "isCollection": false, - "description": "缩略图." - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容." - }, - { - "name": "mobileData", - "type": "String", - "isCollection": false, - "description": "移动端文本内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "list", - "className": "com.x.processplatform.assemble.designer.jaxrs.templateform.ActionList", - "description": "列示所有模版表单.", - "type": "GET", - "path": "jaxrs/templateform/list", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名." - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "模版分类." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "outline", - "type": "String", - "isCollection": false, - "description": "缩略图." - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容." - }, - { - "name": "mobileData", - "type": "String", - "isCollection": false, - "description": "移动端文本内容." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - }, - { - "name": "listCategory", - "className": "com.x.processplatform.assemble.designer.jaxrs.templateform.ActionListCategory", - "description": "列示所有分类名称以及分类数量.", - "type": "GET", - "path": "jaxrs/templateform/list/category", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [] - }, - { - "name": "listWithCategory", - "className": "com.x.processplatform.assemble.designer.jaxrs.templateform.ActionListWithCategory", - "description": "按分类名称列示模版表单.", - "type": "PUT", - "path": "jaxrs/templateform/list/category", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [], - "formParameters": [], - "queryParameters": [], - "ins": [ - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成.", - "isBaseType": true - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称.", - "isBaseType": true - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名.", - "isBaseType": true - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "模版分类.", - "isBaseType": true - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述.", - "isBaseType": true - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本.", - "isBaseType": true - }, - { - "name": "outline", - "type": "String", - "isCollection": false, - "description": "缩略图.", - "isBaseType": true - }, - { - "name": "data", - "type": "String", - "isCollection": false, - "description": "文本内容.", - "isBaseType": true - }, - { - "name": "mobileData", - "type": "String", - "isCollection": false, - "description": "移动端文本内容.", - "isBaseType": true - }, - { - "name": "distributeFactor", - "type": "Integer", - "isCollection": false, - "description": "分布式存储标识位.", - "isBaseType": true - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中.", - "isBaseType": true - }, - { - "name": "sequence", - "type": "String", - "isCollection": false, - "description": "列表序号,由创建时间以及ID组成.在保存时自动生成,索引创建在约束中.", - "isBaseType": true - } - ], - "outs": [ - { - "name": "control", - "type": "Control", - "isCollection": false, - "description": "权限" - }, - { - "name": "id", - "type": "String", - "isCollection": false, - "description": "数据库主键,自动生成." - }, - { - "name": "name", - "type": "String", - "isCollection": false, - "description": "名称." - }, - { - "name": "alias", - "type": "String", - "isCollection": false, - "description": "表单别名." - }, - { - "name": "category", - "type": "String", - "isCollection": false, - "description": "模版分类." - }, - { - "name": "description", - "type": "String", - "isCollection": false, - "description": "描述." - }, - { - "name": "icon", - "type": "String", - "isCollection": false, - "description": "icon Base64编码后的文本." - }, - { - "name": "outline", - "type": "String", - "isCollection": false, - "description": "缩略图." - }, - { - "name": "createTime", - "type": "Date", - "isCollection": false, - "description": "创建时间,自动生成,索引创建在约束中." - }, - { - "name": "updateTime", - "type": "Date", - "isCollection": false, - "description": "修改时间,自动生成,索引创建在约束中." - } - ] - } - ] - }, - { - "name": "WorkCompletedAction", - "className": "com.x.processplatform.assemble.designer.jaxrs.workcompleted.WorkCompletedAction", - "description": "已完成工作", - "methods": [ - { - "name": "mergeDataWithApplication", - "className": "com.x.processplatform.assemble.designer.jaxrs.workcompleted.ActionMergeWithApplication", - "description": "指定application合并DataItem数据到WorkCompleted,并删除Item表中的数据.", - "type": "GET", - "path": "jaxrs/workcompleted/application/{applicationFlag}/merge/data", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "applicationFlag", - "type": "String", - "description": "应用标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Integer", - "isCollection": false, - "description": "整型值" - } - ] - }, - { - "name": "mergeDataWithProcess", - "className": "com.x.processplatform.assemble.designer.jaxrs.workcompleted.ActionMergeWithProcess", - "description": "指定process合并DataItem数据到WorkCompleted,并删除Item表中的数据.", - "type": "GET", - "path": "jaxrs/workcompleted/process/{processFlag}/merge/data", - "contentType": "application/json", - "resultContentType": "application/json; charset\u003dUTF-8", - "useJsonElementParameter": false, - "useStringParameter": false, - "pathParameters": [ - { - "name": "processFlag", - "type": "String", - "description": "流程标识" - } - ], - "formParameters": [], - "queryParameters": [], - "ins": [], - "outs": [ - { - "name": "value", - "type": "Integer", - "isCollection": false, - "description": "整型值" - } - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/AbstractFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/AbstractFactory.java deleted file mode 100644 index d99e1b440036751a59cd83577cc44a7e3922c6ba..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/AbstractFactory.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import com.x.base.core.container.EntityManagerContainer; - -public abstract class AbstractFactory { - - private Business business; - - public AbstractFactory(Business business) throws Exception { - try { - if (null == business) { - throw new Exception("business can not be null."); - } - this.business = business; - } catch (Exception e) { - throw new Exception("can not instantiating factory."); - } - } - - public EntityManagerContainer entityManagerContainer() throws Exception { - return this.business.entityManagerContainer(); - } - - public Business business() { - return this.business; - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ApplicationServletContextListener.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ApplicationServletContextListener.java deleted file mode 100644 index 09d077f525851f1a519a395ceb0bbd8078bec237..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ApplicationServletContextListener.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; -import javax.servlet.annotation.WebListener; - -import com.x.base.core.project.Context; - -@WebListener -public class ApplicationServletContextListener implements ServletContextListener { - - @Override - public void contextInitialized(ServletContextEvent servletContextEvent) { - try { - ThisApplication.context = Context.concrete(servletContextEvent); - ThisApplication.init(); - ThisApplication.context().regist(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - @Override - public void contextDestroyed(ServletContextEvent servletContextEvent) { - try { - ThisApplication.destroy(); - ThisApplication.context.destrory(servletContextEvent); - } catch (Exception e) { - e.printStackTrace(); - } - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/Business.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/Business.java deleted file mode 100644 index df734165265c7f801dee6abc96dd6f5ec46a9f0e..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/Business.java +++ /dev/null @@ -1,417 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import org.apache.commons.lang3.StringUtils; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.organization.core.express.Organization; -import com.x.processplatform.assemble.designer.content.factory.AttachmentFactory; -import com.x.processplatform.assemble.designer.content.factory.ItemFactory; -import com.x.processplatform.assemble.designer.content.factory.ReadCompletedFactory; -import com.x.processplatform.assemble.designer.content.factory.ReadFactory; -import com.x.processplatform.assemble.designer.content.factory.ReviewFactory; -import com.x.processplatform.assemble.designer.content.factory.SerialNumberFactory; -import com.x.processplatform.assemble.designer.content.factory.TaskCompletedFactory; -import com.x.processplatform.assemble.designer.content.factory.TaskFactory; -import com.x.processplatform.assemble.designer.content.factory.WorkCompletedFactory; -import com.x.processplatform.assemble.designer.content.factory.WorkFactory; -import com.x.processplatform.assemble.designer.content.factory.WorkLogFactory; -import com.x.processplatform.assemble.designer.element.factory.AgentFactory; -import com.x.processplatform.assemble.designer.element.factory.ApplicationDictFactory; -import com.x.processplatform.assemble.designer.element.factory.ApplicationDictItemFactory; -import com.x.processplatform.assemble.designer.element.factory.ApplicationFactory; -import com.x.processplatform.assemble.designer.element.factory.BeginFactory; -import com.x.processplatform.assemble.designer.element.factory.CancelFactory; -import com.x.processplatform.assemble.designer.element.factory.ChoiceFactory; -import com.x.processplatform.assemble.designer.element.factory.DelayFactory; -import com.x.processplatform.assemble.designer.element.factory.EmbedFactory; -import com.x.processplatform.assemble.designer.element.factory.EndFactory; -import com.x.processplatform.assemble.designer.element.factory.FileFactory; -import com.x.processplatform.assemble.designer.element.factory.FormFactory; -import com.x.processplatform.assemble.designer.element.factory.FormFieldFactory; -import com.x.processplatform.assemble.designer.element.factory.InvokeFactory; -import com.x.processplatform.assemble.designer.element.factory.ManualFactory; -import com.x.processplatform.assemble.designer.element.factory.MergeFactory; -import com.x.processplatform.assemble.designer.element.factory.MessageFactory; -import com.x.processplatform.assemble.designer.element.factory.ParallelFactory; -import com.x.processplatform.assemble.designer.element.factory.ProcessFactory; -import com.x.processplatform.assemble.designer.element.factory.QueryStatFactory; -import com.x.processplatform.assemble.designer.element.factory.QueryViewFactory; -import com.x.processplatform.assemble.designer.element.factory.RouteFactory; -import com.x.processplatform.assemble.designer.element.factory.ScriptFactory; -import com.x.processplatform.assemble.designer.element.factory.ServiceFactory; -import com.x.processplatform.assemble.designer.element.factory.SplitFactory; -import com.x.processplatform.assemble.designer.element.factory.TemplateFormFactory; -import com.x.processplatform.core.entity.element.Application; - -public class Business { - - private EntityManagerContainer emc; - - public Business(EntityManagerContainer emc) throws Exception { - this.emc = emc; - } - - public EntityManagerContainer entityManagerContainer() { - return this.emc; - } - - private ApplicationDictFactory applicationDict; - - public ApplicationDictFactory applicationDict() throws Exception { - if (null == this.applicationDict) { - this.applicationDict = new ApplicationDictFactory(this); - } - return applicationDict; - } - - private ApplicationDictItemFactory applicationDictItem; - - public ApplicationDictItemFactory applicationDictItem() throws Exception { - if (null == this.applicationDictItem) { - this.applicationDictItem = new ApplicationDictItemFactory(this); - } - return applicationDictItem; - } - - private ScriptFactory script; - - public ScriptFactory script() throws Exception { - if (null == this.script) { - this.script = new ScriptFactory(this); - } - return script; - } - - private FormFactory form; - - public FormFactory form() throws Exception { - if (null == this.form) { - this.form = new FormFactory(this); - } - return form; - } - - private FormFieldFactory formField; - - public FormFieldFactory formField() throws Exception { - if (null == this.formField) { - this.formField = new FormFieldFactory(this); - } - return formField; - } - - private TemplateFormFactory templateForm; - - public TemplateFormFactory templateForm() throws Exception { - if (null == this.templateForm) { - this.templateForm = new TemplateFormFactory(this); - } - return templateForm; - } - - private QueryViewFactory queryView; - - public QueryViewFactory queryView() throws Exception { - if (null == this.queryView) { - this.queryView = new QueryViewFactory(this); - } - return queryView; - } - - private QueryStatFactory queryStat; - - public QueryStatFactory queryStat() throws Exception { - if (null == this.queryStat) { - this.queryStat = new QueryStatFactory(this); - } - return queryStat; - } - - private ApplicationFactory application; - - public ApplicationFactory application() throws Exception { - if (null == this.application) { - this.application = new ApplicationFactory(this); - } - return application; - } - - private ProcessFactory process; - - public ProcessFactory process() throws Exception { - if (null == this.process) { - this.process = new ProcessFactory(this); - } - return process; - } - - private AgentFactory agent; - - public AgentFactory agent() throws Exception { - if (null == this.agent) { - this.agent = new AgentFactory(this); - } - return agent; - } - - private BeginFactory begin; - - public BeginFactory begin() throws Exception { - if (null == this.begin) { - this.begin = new BeginFactory(this); - } - return begin; - } - - private CancelFactory cancel; - - public CancelFactory cancel() throws Exception { - if (null == this.cancel) { - this.cancel = new CancelFactory(this); - } - return cancel; - } - - private ChoiceFactory choice; - - public ChoiceFactory choice() throws Exception { - if (null == this.choice) { - this.choice = new ChoiceFactory(this); - } - return choice; - } - - private DelayFactory delay; - - public DelayFactory delay() throws Exception { - if (null == this.delay) { - this.delay = new DelayFactory(this); - } - return delay; - } - - private EmbedFactory embed; - - public EmbedFactory embed() throws Exception { - if (null == this.embed) { - this.embed = new EmbedFactory(this); - } - return embed; - } - - private EndFactory end; - - public EndFactory end() throws Exception { - if (null == this.end) { - this.end = new EndFactory(this); - } - return end; - } - - private InvokeFactory invoke; - - public InvokeFactory invoke() throws Exception { - if (null == this.invoke) { - this.invoke = new InvokeFactory(this); - } - return invoke; - } - - private ManualFactory manual; - - public ManualFactory manual() throws Exception { - if (null == this.manual) { - this.manual = new ManualFactory(this); - } - return manual; - } - - private MergeFactory merge; - - public MergeFactory merge() throws Exception { - if (null == this.merge) { - this.merge = new MergeFactory(this); - } - return merge; - } - - private MessageFactory message; - - public MessageFactory message() throws Exception { - if (null == this.message) { - this.message = new MessageFactory(this); - } - return message; - } - - private ParallelFactory parallel; - - public ParallelFactory parallel() throws Exception { - if (null == this.parallel) { - this.parallel = new ParallelFactory(this); - } - return parallel; - } - - private ServiceFactory service; - - public ServiceFactory service() throws Exception { - if (null == this.service) { - this.service = new ServiceFactory(this); - } - return service; - } - - private SplitFactory split; - - public SplitFactory split() throws Exception { - if (null == this.split) { - this.split = new SplitFactory(this); - } - return split; - } - - private RouteFactory route; - - public RouteFactory route() throws Exception { - if (null == this.route) { - this.route = new RouteFactory(this); - } - return route; - } - - private Organization organization; - - public Organization organization() throws Exception { - if (null == this.organization) { - this.organization = new Organization(ThisApplication.context()); - } - return organization; - } - - private AttachmentFactory attachment; - - public AttachmentFactory attachment() throws Exception { - if (null == this.attachment) { - this.attachment = new AttachmentFactory(this); - } - return attachment; - } - - private ItemFactory item; - - public ItemFactory item() throws Exception { - if (null == this.item) { - this.item = new ItemFactory(this); - } - return item; - } - - private TaskFactory task; - - public TaskFactory task() throws Exception { - if (null == this.task) { - this.task = new TaskFactory(this); - } - return task; - } - - private TaskCompletedFactory taskCompleted; - - public TaskCompletedFactory taskCompleted() throws Exception { - if (null == this.taskCompleted) { - this.taskCompleted = new TaskCompletedFactory(this); - } - return taskCompleted; - } - - private ReadFactory read; - - public ReadFactory read() throws Exception { - if (null == this.read) { - this.read = new ReadFactory(this); - } - return read; - } - - private ReadCompletedFactory readCompleted; - - public ReadCompletedFactory readCompleted() throws Exception { - if (null == this.readCompleted) { - this.readCompleted = new ReadCompletedFactory(this); - } - return readCompleted; - } - - private ReviewFactory review; - - public ReviewFactory review() throws Exception { - if (null == this.review) { - this.review = new ReviewFactory(this); - } - return review; - } - - private SerialNumberFactory serialNumber; - - public SerialNumberFactory serialNumber() throws Exception { - if (null == this.serialNumber) { - this.serialNumber = new SerialNumberFactory(this); - } - return serialNumber; - } - - private WorkFactory work; - - public WorkFactory work() throws Exception { - if (null == this.work) { - this.work = new WorkFactory(this); - } - return work; - } - - private WorkCompletedFactory workCompleted; - - public WorkCompletedFactory workCompleted() throws Exception { - if (null == this.workCompleted) { - this.workCompleted = new WorkCompletedFactory(this); - } - return workCompleted; - } - - private WorkLogFactory workLog; - - public WorkLogFactory workLog() throws Exception { - if (null == this.workLog) { - this.workLog = new WorkLogFactory(this); - } - return workLog; - } - - private FileFactory file; - - public FileFactory file() throws Exception { - if (null == this.file) { - this.file = new FileFactory(this); - } - return file; - } - - public boolean editable(EffectivePerson effectivePerson, Application application) throws Exception { - boolean result = false; - if (effectivePerson.isManager() || organization().person().hasRole(effectivePerson, - OrganizationDefinition.Manager, OrganizationDefinition.ProcessPlatformManager)) { - result = true; - } - if ((result == false) && (null != application)) { - if ((StringUtils.equals(application.getCreatorPerson(), effectivePerson.getDistinguishedName())) - || (application.getControllerList().contains(effectivePerson.getDistinguishedName()))) { - result = true; - } - } - return result; - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/CompareApplication.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/CompareApplication.java deleted file mode 100644 index 9d6883c9e174b5a01b32653b7de14fc4837d2aa0..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/CompareApplication.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import com.x.base.core.project.annotation.FieldDescribe; -import com.x.base.core.project.gson.GsonPropertyObject; - -public class CompareApplication extends GsonPropertyObject { - - @FieldDescribe("导入名称") - private String name; - - @FieldDescribe("导入id") - private String id; - - @FieldDescribe("导入别名") - private String alias; - - @FieldDescribe("是否已经存在") - private Boolean exist; - - @FieldDescribe("已经存在名称") - private String existName; - - @FieldDescribe("已经存在id") - private String existId; - - @FieldDescribe("已经存在别名") - private String existAlias; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getAlias() { - return alias; - } - - public void setAlias(String alias) { - this.alias = alias; - } - - public Boolean getExist() { - return exist; - } - - public void setExist(Boolean exist) { - this.exist = exist; - } - - public String getExistName() { - return existName; - } - - public void setExistName(String existName) { - this.existName = existName; - } - - public String getExistId() { - return existId; - } - - public void setExistId(String existId) { - this.existId = existId; - } - - public String getExistAlias() { - return existAlias; - } - - public void setExistAlias(String existAlias) { - this.existAlias = existAlias; - } - -} diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/Control.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/Control.java deleted file mode 100644 index 1fe6ec26a8ed1d4ae7852217167b694b792840ab..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/Control.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import com.x.base.core.project.gson.GsonPropertyObject; - -public class Control extends GsonPropertyObject { - private Boolean allowDelete; - - public Boolean getAllowDelete() { - return allowDelete; - } - - public void setAllowDelete(Boolean allowDelete) { - this.allowDelete = allowDelete; - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ExceptionDynamicClassNotExist.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ExceptionDynamicClassNotExist.java deleted file mode 100644 index bed30c500314f8553ab2524c65bac2bd469859a4..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ExceptionDynamicClassNotExist.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import com.x.base.core.project.exception.PromptException; - -class ExceptionDynamicClassNotExist extends PromptException { - - private static final long serialVersionUID = -5515077418025884395L; - - ExceptionDynamicClassNotExist(String className) { - super("指定的类 {} 不存在."); - } - -} diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/FormVersionQueue.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/FormVersionQueue.java deleted file mode 100644 index 87fda4540eb53db7c63acbea10b551314ae4bda7..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/FormVersionQueue.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.Query; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.queue.AbstractQueue; -import com.x.processplatform.core.entity.element.FormVersion; -import com.x.processplatform.core.entity.element.FormVersion_; - -public class FormVersionQueue extends AbstractQueue { - - private static Logger logger = LoggerFactory.getLogger(FormVersionQueue.class); - - @Override - protected void execute(FormVersion formVersion) throws Exception { - Integer count = Config.processPlatform().getFormVersionCount(); - if (count > 0) { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - this.cleanAndSave(business, formVersion, count); - } catch (Exception e) { - logger.error(e); - } - } - } - - private void cleanAndSave(Business business, FormVersion formVersion, Integer count) throws Exception { - List keepIds = this.keepIds(business, formVersion, count); - EntityManager em = business.entityManagerContainer().get(FormVersion.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(FormVersion.class); - Root root = cq.from(FormVersion.class); - Predicate p = cb.equal(root.get(FormVersion_.form), formVersion.getForm()); - p = cb.and(p, cb.not(root.get(FormVersion_.id).in(keepIds))); - cq.select(root).where(p); - List os = em.createQuery(cq).getResultList(); - business.entityManagerContainer().beginTransaction(FormVersion.class); - for (FormVersion o : os) { - business.entityManagerContainer().remove(o, CheckRemoveType.all); - } - business.entityManagerContainer().persist(formVersion, CheckPersistType.all); - business.entityManagerContainer().commit(); - } - - private List keepIds(Business business, FormVersion formVersion, Integer count) throws Exception { - EntityManager em = business.entityManagerContainer().get(FormVersion.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(FormVersion.class); - Predicate p = cb.equal(root.get(FormVersion_.form), formVersion.getForm()); - cq.select(root.get(FormVersion_.id)).where(p).orderBy(cb.desc(root.get(FormVersion_.createTime))); - Query query = em.createQuery(cq); - if (count > 1) { - query.setMaxResults(count - 1); - } - return em.createQuery(cq).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/MappingExecuteQueue.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/MappingExecuteQueue.java deleted file mode 100644 index 57db2ffc3b48db51392b0bec9a3e4074b2cbe982..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/MappingExecuteQueue.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.lang3.BooleanUtils; -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.JpaObject; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.entity.dataitem.DataItemConverter; -import com.x.base.core.entity.dataitem.ItemCategory; -import com.x.base.core.entity.dynamic.DynamicEntity; -import com.x.base.core.project.exception.ExceptionEntityNotExist; -import com.x.base.core.project.gson.XGsonBuilder; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.queue.AbstractQueue; -import com.x.processplatform.core.entity.content.Data; -import com.x.processplatform.core.entity.content.WorkCompleted; -import com.x.processplatform.core.entity.element.Mapping; -import com.x.processplatform.core.entity.element.util.MappingFactory; -import com.x.query.core.entity.Item; - -public class MappingExecuteQueue extends AbstractQueue { - - private static Logger logger = LoggerFactory.getLogger(MappingExecuteQueue.class); - - private DataItemConverter converter = new DataItemConverter(Item.class); - - @Override - protected void execute(String id) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - Mapping mapping = emc.find(id, Mapping.class); - if (null == mapping) { - throw new ExceptionEntityNotExist(id, Mapping.class); - } - if (BooleanUtils.isTrue(mapping.getEnable())) { - this.workCompleted(business, mapping); - } - } catch (Exception e) { - logger.error(e); - } - } - - private void workCompleted(Business business, Mapping mapping) throws Exception { - String sequence = ""; - List os = new ArrayList<>(); - Data data = null; - do { - if (StringUtils.isNotEmpty(mapping.getProcess())) { - os = business.entityManagerContainer().listEqualAndSequenceAfter(WorkCompleted.class, - WorkCompleted.process_FIELDNAME, mapping.getProcess(), 100, sequence); - } else if (StringUtils.isNotEmpty(mapping.getApplication())) { - os = business.entityManagerContainer().listEqualAndSequenceAfter(WorkCompleted.class, - WorkCompleted.application_FIELDNAME, mapping.getApplication(), 100, sequence); - } else { - os = new ArrayList<>(); - } - if (!os.isEmpty()) { - Class cls = (Class) Class - .forName(DynamicEntity.CLASS_PACKAGE + "." + mapping.getTableName()); - business.entityManagerContainer().beginTransaction(cls); - for (WorkCompleted o : os) { - sequence = o.getSequence(); - data = this.data(business, o); - JpaObject jpaObject = business.entityManagerContainer().find(o.getJob(), cls); - if (null == jpaObject) { - jpaObject = (JpaObject) cls.newInstance(); - jpaObject.setId(o.getJob()); - business.entityManagerContainer().persist(jpaObject, CheckPersistType.all); - } - MappingFactory.mapping(mapping, o, data, jpaObject); - } - business.entityManagerContainer().commit(); - } - } while (!os.isEmpty()); - } - - private Data data(Business business, WorkCompleted workCompleted) throws Exception { - if (BooleanUtils.isTrue(workCompleted.getMerged()) && (null!= workCompleted.getProperties().getData())) { - return workCompleted.getProperties().getData(); - } - List items = business.entityManagerContainer().listEqualAndEqual(Item.class, Item.bundle_FIELDNAME, - workCompleted.getJob(), Item.itemCategory_FIELDNAME, ItemCategory.pp); - if (items.isEmpty()) { - return new Data(); - } else { - JsonElement jsonElement = converter.assemble(items); - if (jsonElement.isJsonObject()) { - return XGsonBuilder.convert(jsonElement, Data.class); - } else { - /* 如果不是Object强制返回一个Map对象 */ - return new Data(); - } - } - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/MessageFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/MessageFactory.java deleted file mode 100644 index 69fe107e0add83f0550758b3dd588304b6df3f06..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/MessageFactory.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import com.x.base.core.entity.JpaObject; -import com.x.base.core.project.message.MessageConnector; -import com.x.base.core.project.tools.StringTools; -import com.x.processplatform.core.entity.element.Application; -import com.x.processplatform.core.entity.element.Process; - -public class MessageFactory { - public static void application_create(Application application) throws Exception { - String title = "创建流程平台应用:" + application.getName(); - title = StringTools.utf8SubString(title, JpaObject.length_255B); - MessageConnector.send(MessageConnector.TYPE_APPLICATION_CREATE, title, "", application); - } - - public static void application_update(Application application) throws Exception { - String title = "更新流程平台应用:" + application.getName(); - title = StringTools.utf8SubString(title, JpaObject.length_255B); - MessageConnector.send(MessageConnector.TYPE_APPLICATION_UPDATE, title, "", application); - } - - public static void application_delete(Application application) throws Exception { - String title = "删除流程平台应用:" + application.getName(); - title = StringTools.utf8SubString(title, JpaObject.length_255B); - MessageConnector.send(MessageConnector.TYPE_APPLICATION_DELETE, title, "", application); - } - - public static void process_create(Process process) throws Exception { - String title = "创建流程平台流程:" + process.getName(); - title = StringTools.utf8SubString(title, JpaObject.length_255B); - MessageConnector.send(MessageConnector.TYPE_PROCESS_CREATE, title, "", process); - } - - public static void process_update(Process process) throws Exception { - String title = "更新流程平台流程:" + process.getName(); - title = StringTools.utf8SubString(title, JpaObject.length_255B); - MessageConnector.send(MessageConnector.TYPE_PROCESS_UPDATE, title, "", process); - } - - public static void process_delete(Process process) throws Exception { - String title = "删除流程平台流程:" + process.getName(); - title = StringTools.utf8SubString(title, JpaObject.length_255B); - MessageConnector.send(MessageConnector.TYPE_PROCESS_DELETE, title, "", process); - } -} diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ProcessVersionQueue.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ProcessVersionQueue.java deleted file mode 100644 index 3daa84a1cc741f866c85e4f8df64648d97324886..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ProcessVersionQueue.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.Query; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.queue.AbstractQueue; -import com.x.processplatform.core.entity.element.ProcessVersion; -import com.x.processplatform.core.entity.element.ProcessVersion_; - -public class ProcessVersionQueue extends AbstractQueue { - - private static Logger logger = LoggerFactory.getLogger(ProcessVersionQueue.class); - - @Override - protected void execute(ProcessVersion processVersion) throws Exception { - Integer count = Config.processPlatform().getFormVersionCount(); - if (count > 0) { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - this.cleanAndSave(business, processVersion, count); - } catch (Exception e) { - logger.error(e); - } - } - } - - private void cleanAndSave(Business business, ProcessVersion processVersion, Integer count) throws Exception { - List keepIds = this.keepIds(business, processVersion, count); - EntityManager em = business.entityManagerContainer().get(ProcessVersion.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(ProcessVersion.class); - Root root = cq.from(ProcessVersion.class); - Predicate p = cb.equal(root.get(ProcessVersion_.process), processVersion.getProcess()); - p = cb.and(p, cb.not(root.get(ProcessVersion_.id).in(keepIds))); - cq.select(root).where(p); - List os = em.createQuery(cq).getResultList(); - business.entityManagerContainer().beginTransaction(ProcessVersion.class); - for (ProcessVersion o : os) { - business.entityManagerContainer().remove(o, CheckRemoveType.all); - } - business.entityManagerContainer().persist(processVersion, CheckPersistType.all); - business.entityManagerContainer().commit(); - } - - private List keepIds(Business business, ProcessVersion processVersion, Integer count) throws Exception { - EntityManager em = business.entityManagerContainer().get(ProcessVersion.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ProcessVersion.class); - Predicate p = cb.equal(root.get(ProcessVersion_.process), processVersion.getProcess()); - cq.select(root.get(ProcessVersion_.id)).where(p).orderBy(cb.desc(root.get(ProcessVersion_.createTime))); - Query query = em.createQuery(cq); - if (count > 1) { - query.setMaxResults(count - 1); - } - return em.createQuery(cq).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ProjectionExecuteQueue.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ProjectionExecuteQueue.java deleted file mode 100644 index a0eebf72a43931a244d2bb6a31fbd5c58ffc81d3..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ProjectionExecuteQueue.java +++ /dev/null @@ -1,186 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -import org.apache.commons.lang3.BooleanUtils; -import org.apache.commons.lang3.StringUtils; - -import com.google.gson.JsonElement; -import com.google.gson.reflect.TypeToken; -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.dataitem.DataItemConverter; -import com.x.base.core.entity.dataitem.ItemCategory; -import com.x.base.core.project.exception.ExceptionEntityNotExist; -import com.x.base.core.project.gson.XGsonBuilder; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.queue.AbstractQueue; -import com.x.processplatform.core.entity.content.Data; -import com.x.processplatform.core.entity.content.Read; -import com.x.processplatform.core.entity.content.ReadCompleted; -import com.x.processplatform.core.entity.content.Review; -import com.x.processplatform.core.entity.content.Task; -import com.x.processplatform.core.entity.content.TaskCompleted; -import com.x.processplatform.core.entity.content.Work; -import com.x.processplatform.core.entity.content.WorkCompleted; -import com.x.processplatform.core.entity.element.Process; -import com.x.processplatform.core.entity.element.Projection; -import com.x.processplatform.core.entity.element.util.ProjectionFactory; -import com.x.query.core.entity.Item; - -public class ProjectionExecuteQueue extends AbstractQueue { - - private static Logger logger = LoggerFactory.getLogger(ProjectionExecuteQueue.class); - - private DataItemConverter converter = new DataItemConverter(Item.class); - - @Override - protected void execute(String id) throws Exception { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - Process process = emc.find(id, Process.class); - if (null == process) { - throw new ExceptionEntityNotExist(id, Process.class); - } - if (XGsonBuilder.isJsonArray(process.getProjection())) { - List projections = XGsonBuilder.instance().fromJson(process.getProjection(), - new TypeToken>() { - }.getType()); - this.work(business, process, projections); - this.workCompleted(business, process, projections); - } - } catch (Exception e) { - logger.error(e); - } - } - - private void work(Business business, Process process, List projections) throws Exception { - String sequence = ""; - List os = new ArrayList<>(); - Data data = null; - do { - os = business.entityManagerContainer().listEqualAndSequenceAfter(Work.class, Work.process_FIELDNAME, - process.getId(), 100, sequence); - if (!os.isEmpty()) { - business.entityManagerContainer().beginTransaction(Work.class); - business.entityManagerContainer().beginTransaction(Task.class); - business.entityManagerContainer().beginTransaction(TaskCompleted.class); - business.entityManagerContainer().beginTransaction(Read.class); - business.entityManagerContainer().beginTransaction(ReadCompleted.class); - business.entityManagerContainer().beginTransaction(Review.class); - for (Work o : os) { - sequence = o.getSequence(); - data = this.data(business, o); - ProjectionFactory.projectionWork(projections, data, o); - for (Task task : business.entityManagerContainer().listEqualAndEqual(Task.class, Task.job_FIELDNAME, - o.getJob(), Task.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionTask(projections, data, task); - } - for (TaskCompleted taskCompleted : business.entityManagerContainer().listEqualAndEqual( - TaskCompleted.class, TaskCompleted.job_FIELDNAME, o.getJob(), - TaskCompleted.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionTaskCompleted(projections, data, taskCompleted); - } - for (Read read : business.entityManagerContainer().listEqualAndEqual(Read.class, Read.job_FIELDNAME, - o.getJob(), Read.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionRead(projections, data, read); - } - for (ReadCompleted readCompleted : business.entityManagerContainer().listEqualAndEqual( - ReadCompleted.class, ReadCompleted.job_FIELDNAME, o.getJob(), - ReadCompleted.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionReadCompleted(projections, data, readCompleted); - } - for (Review review : business.entityManagerContainer().listEqualAndEqual(Review.class, - Review.job_FIELDNAME, o.getJob(), Review.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionReview(projections, data, review); - } - } - business.entityManagerContainer().commit(); - } - } while (!os.isEmpty()); - } - - private void workCompleted(Business business, Process process, List projections) throws Exception { - String sequence = ""; - List os = new ArrayList<>(); - Data data = null; - do { - os = business.entityManagerContainer().listEqualAndSequenceAfter(WorkCompleted.class, - WorkCompleted.process_FIELDNAME, process.getId(), 100, sequence); - if (!os.isEmpty()) { - business.entityManagerContainer().beginTransaction(WorkCompleted.class); - business.entityManagerContainer().beginTransaction(Task.class); - business.entityManagerContainer().beginTransaction(TaskCompleted.class); - business.entityManagerContainer().beginTransaction(Read.class); - business.entityManagerContainer().beginTransaction(ReadCompleted.class); - business.entityManagerContainer().beginTransaction(Review.class); - for (WorkCompleted o : os) { - sequence = o.getSequence(); - data = this.data(business, o); - ProjectionFactory.projectionWorkCompleted(projections, data, o); - for (Task task : business.entityManagerContainer().listEqualAndEqual(Task.class, Task.job_FIELDNAME, - o.getJob(), Task.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionTask(projections, data, task); - } - for (TaskCompleted taskCompleted : business.entityManagerContainer().listEqualAndEqual( - TaskCompleted.class, TaskCompleted.job_FIELDNAME, o.getJob(), - TaskCompleted.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionTaskCompleted(projections, data, taskCompleted); - } - for (Read read : business.entityManagerContainer().listEqualAndEqual(Read.class, Read.job_FIELDNAME, - o.getJob(), Read.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionRead(projections, data, read); - } - for (ReadCompleted readCompleted : business.entityManagerContainer().listEqualAndEqual( - ReadCompleted.class, ReadCompleted.job_FIELDNAME, o.getJob(), - ReadCompleted.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionReadCompleted(projections, data, readCompleted); - } - for (Review review : business.entityManagerContainer().listEqualAndEqual(Review.class, - Review.job_FIELDNAME, o.getJob(), Review.process_FIELDNAME, o.getProcess())) { - ProjectionFactory.projectionReview(projections, data, review); - } - } - business.entityManagerContainer().commit(); - } - } while (!os.isEmpty()); - } - - private Data data(Business business, Work work) throws Exception { - List items = business.entityManagerContainer().listEqualAndEqual(Item.class, Item.bundle_FIELDNAME, - work.getJob(), Item.itemCategory_FIELDNAME, ItemCategory.pp); - if (items.isEmpty()) { - return new Data(); - } else { - JsonElement jsonElement = converter.assemble(items); - if (jsonElement.isJsonObject()) { - return XGsonBuilder.convert(jsonElement, Data.class); - } else { - /* 如果不是Object强制返回一个Map对象 */ - return new Data(); - } - } - } - - private Data data(Business business, WorkCompleted workCompleted) throws Exception { - if (BooleanUtils.isTrue(workCompleted.getMerged())) { - return workCompleted.getProperties().getData(); - } - List items = business.entityManagerContainer().listEqualAndEqual(Item.class, Item.bundle_FIELDNAME, - workCompleted.getJob(), Item.itemCategory_FIELDNAME, ItemCategory.pp); - if (items.isEmpty()) { - return new Data(); - } else { - JsonElement jsonElement = converter.assemble(items); - if (jsonElement.isJsonObject()) { - return XGsonBuilder.convert(jsonElement, Data.class); - } else { - /* 如果不是Object强制返回一个Map对象 */ - return new Data(); - } - } - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ScriptVersionQueue.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ScriptVersionQueue.java deleted file mode 100644 index d31b49101cf55b9782cda5b6716aba8f7ad2e764..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ScriptVersionQueue.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.Query; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.container.EntityManagerContainer; -import com.x.base.core.container.factory.EntityManagerContainerFactory; -import com.x.base.core.entity.annotation.CheckPersistType; -import com.x.base.core.entity.annotation.CheckRemoveType; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.logger.Logger; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.queue.AbstractQueue; -import com.x.processplatform.core.entity.element.ScriptVersion; -import com.x.processplatform.core.entity.element.ScriptVersion_; - -public class ScriptVersionQueue extends AbstractQueue { - - private static Logger logger = LoggerFactory.getLogger(ScriptVersionQueue.class); - - @Override - protected void execute(ScriptVersion scriptVersion) throws Exception { - Integer count = Config.processPlatform().getFormVersionCount(); - if (count > 0) { - try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) { - Business business = new Business(emc); - this.cleanAndSave(business, scriptVersion, count); - } catch (Exception e) { - logger.error(e); - } - } - } - - private void cleanAndSave(Business business, ScriptVersion scriptVersion, Integer count) throws Exception { - List keepIds = this.keepIds(business, scriptVersion, count); - EntityManager em = business.entityManagerContainer().get(ScriptVersion.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(ScriptVersion.class); - Root root = cq.from(ScriptVersion.class); - Predicate p = cb.equal(root.get(ScriptVersion_.script), scriptVersion.getScript()); - p = cb.and(p, cb.not(root.get(ScriptVersion_.id).in(keepIds))); - cq.select(root).where(p); - List os = em.createQuery(cq).getResultList(); - business.entityManagerContainer().beginTransaction(ScriptVersion.class); - for (ScriptVersion o : os) { - business.entityManagerContainer().remove(o, CheckRemoveType.all); - } - business.entityManagerContainer().persist(scriptVersion, CheckPersistType.all); - business.entityManagerContainer().commit(); - } - - private List keepIds(Business business, ScriptVersion scriptVersion, Integer count) throws Exception { - EntityManager em = business.entityManagerContainer().get(ScriptVersion.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ScriptVersion.class); - Predicate p = cb.equal(root.get(ScriptVersion_.script), scriptVersion.getScript()); - cq.select(root.get(ScriptVersion_.id)).where(p).orderBy(cb.desc(root.get(ScriptVersion_.createTime))); - Query query = em.createQuery(cq); - if (count > 1) { - query.setMaxResults(count - 1); - } - return em.createQuery(cq).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ThisApplication.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ThisApplication.java deleted file mode 100644 index 765be079ea04a4bb444eea1e98ede7fd77b2eabc..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/ThisApplication.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.x.processplatform.assemble.designer; - -import com.x.base.core.project.Context; -import com.x.base.core.project.config.Config; -import com.x.base.core.project.logger.LoggerFactory; -import com.x.base.core.project.message.MessageConnector; - -public class ThisApplication { - - protected static Context context; - - public static ProjectionExecuteQueue projectionExecuteQueue = new ProjectionExecuteQueue(); - public static MappingExecuteQueue mappingExecuteQueue = new MappingExecuteQueue(); - public static FormVersionQueue formVersionQueue = new FormVersionQueue(); - public static ProcessVersionQueue processVersionQueue = new ProcessVersionQueue(); - public static ScriptVersionQueue scriptVersionQueue = new ScriptVersionQueue(); - - public static Context context() { - return context; - } - - public static void init() { - try { - LoggerFactory.setLevel(Config.logLevel().x_processplatform_assemble_designer()); - MessageConnector.start(context()); - projectionExecuteQueue.start(); - mappingExecuteQueue.start(); - formVersionQueue.start(); - processVersionQueue.start(); - scriptVersionQueue.start(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - public static void destroy() { - try { - projectionExecuteQueue.stop(); - mappingExecuteQueue.stop(); - formVersionQueue.stop(); - processVersionQueue.stop(); - scriptVersionQueue.stop(); - MessageConnector.stop(); - } catch (Exception e) { - e.printStackTrace(); - } - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/AttachmentFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/AttachmentFactory.java deleted file mode 100644 index 622981d06e0547f27ef2f8d97b27a3ee1be82826..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/AttachmentFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.Attachment; -import com.x.processplatform.core.entity.content.Attachment_; - -public class AttachmentFactory extends AbstractFactory { - - public AttachmentFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Attachment.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Attachment.class); - Predicate p = cb.equal(root.get(Attachment_.application), id); - cq.select(root.get(Attachment_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(Attachment.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Attachment.class); - Predicate p = cb.equal(root.get(Attachment_.application), id); - p = cb.and(p, cb.equal(root.get(Attachment_.completed), completed)); - cq.select(root.get(Attachment_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Attachment.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Attachment.class); - Predicate p = cb.equal(root.get(Attachment_.process), id); - cq.select(root.get(Attachment_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(Attachment.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Attachment.class); - Predicate p = cb.equal(root.get(Attachment_.process), id); - p = cb.and(p, cb.equal(root.get(Attachment_.completed), completed)); - cq.select(root.get(Attachment_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ItemFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ItemFactory.java deleted file mode 100644 index 5c2c18fb24d1a9a85efc785185e97e570eb83852..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ItemFactory.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.entity.dataitem.ItemCategory; -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.query.core.entity.Item; -import com.x.query.core.entity.Item_; - -public class ItemFactory extends AbstractFactory { - - public ItemFactory(Business business) throws Exception { - super(business); - } - - public List listObjectWithJob(String job) throws Exception { - EntityManager em = this.entityManagerContainer().get(Item.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Item.class); - Root root = cq.from(Item.class); - Predicate p = cb.equal(root.get(Item_.bundle), job); - p = cb.and(p, cb.equal(root.get(Item_.itemCategory), ItemCategory.pp)); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReadCompletedFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReadCompletedFactory.java deleted file mode 100644 index b2b228cd2774dce731dc163966b96a755e554a68..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReadCompletedFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.ReadCompleted; -import com.x.processplatform.core.entity.content.ReadCompleted_; - -public class ReadCompletedFactory extends AbstractFactory { - - public ReadCompletedFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(ReadCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ReadCompleted.class); - Predicate p = cb.equal(root.get(ReadCompleted_.application), id); - cq.select(root.get(ReadCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(ReadCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ReadCompleted.class); - Predicate p = cb.equal(root.get(ReadCompleted_.application), id); - p = cb.and(p, cb.equal(root.get(ReadCompleted_.completed), completed)); - cq.select(root.get(ReadCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(ReadCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ReadCompleted.class); - Predicate p = cb.equal(root.get(ReadCompleted_.process), id); - cq.select(root.get(ReadCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(ReadCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ReadCompleted.class); - Predicate p = cb.equal(root.get(ReadCompleted_.process), id); - p = cb.and(p, cb.equal(root.get(ReadCompleted_.completed), completed)); - cq.select(root.get(ReadCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReadFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReadFactory.java deleted file mode 100644 index 6bd15c4f9f9d0b14fd15e9e89c3319e3c986b819..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReadFactory.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.Read; -import com.x.processplatform.core.entity.content.Read_; - -public class ReadFactory extends AbstractFactory { - - public ReadFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Read.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Read.class); - Predicate p = cb.equal(root.get(Read_.application), id); - cq.select(root.get(Read_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Read.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Read.class); - Predicate p = cb.equal(root.get(Read_.process), id); - cq.select(root.get(Read_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReviewFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReviewFactory.java deleted file mode 100644 index 605198b37a840c52f367cbd8308a2b97f2a7ecd9..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/ReviewFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.Review; -import com.x.processplatform.core.entity.content.Review_; - -public class ReviewFactory extends AbstractFactory { - - public ReviewFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Review.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Review.class); - Predicate p = cb.equal(root.get(Review_.application), id); - cq.select(root.get(Review_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(Review.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Review.class); - Predicate p = cb.equal(root.get(Review_.application), id); - p = cb.and(p, cb.equal(root.get(Review_.completed), completed)); - cq.select(root.get(Review_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Review.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Review.class); - Predicate p = cb.equal(root.get(Review_.process), id); - cq.select(root.get(Review_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(Review.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Review.class); - Predicate p = cb.equal(root.get(Review_.process), id); - p = cb.and(p, cb.equal(root.get(Review_.completed), completed)); - cq.select(root.get(Review_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/SerialNumberFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/SerialNumberFactory.java deleted file mode 100644 index c0d03f7725fa54e3bc8bfdf6a96b35610c3181fb..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/SerialNumberFactory.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.SerialNumber; -import com.x.processplatform.core.entity.content.SerialNumber_; - -public class SerialNumberFactory extends AbstractFactory { - - public SerialNumberFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(SerialNumber.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(SerialNumber.class); - Predicate p = cb.equal(root.get(SerialNumber_.application), id); - cq.select(root.get(SerialNumber_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(SerialNumber.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(SerialNumber.class); - Predicate p = cb.equal(root.get(SerialNumber_.process), id); - cq.select(root.get(SerialNumber_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/TaskCompletedFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/TaskCompletedFactory.java deleted file mode 100644 index 35bb45498c948ced9dda861016f14f074ee36de0..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/TaskCompletedFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.TaskCompleted; -import com.x.processplatform.core.entity.content.TaskCompleted_; - -public class TaskCompletedFactory extends AbstractFactory { - - public TaskCompletedFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(TaskCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(TaskCompleted.class); - Predicate p = cb.equal(root.get(TaskCompleted_.application), id); - cq.select(root.get(TaskCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(TaskCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(TaskCompleted.class); - Predicate p = cb.equal(root.get(TaskCompleted_.application), id); - p = cb.and(p, cb.equal(root.get(TaskCompleted_.completed), completed)); - cq.select(root.get(TaskCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(TaskCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(TaskCompleted.class); - Predicate p = cb.equal(root.get(TaskCompleted_.process), id); - cq.select(root.get(TaskCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(TaskCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(TaskCompleted.class); - Predicate p = cb.equal(root.get(TaskCompleted_.process), id); - p = cb.and(p, cb.equal(root.get(TaskCompleted_.completed), completed)); - cq.select(root.get(TaskCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/TaskFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/TaskFactory.java deleted file mode 100644 index f8e8c5a6eec0cfa2d7e6d33febc7b0735b51b4a8..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/TaskFactory.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.Task; -import com.x.processplatform.core.entity.content.Task_; - -public class TaskFactory extends AbstractFactory { - - public TaskFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Task.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Task.class); - Predicate p = cb.equal(root.get(Task_.application), id); - cq.select(root.get(Task_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Task.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Task.class); - Predicate p = cb.equal(root.get(Task_.process), id); - cq.select(root.get(Task_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkCompletedFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkCompletedFactory.java deleted file mode 100644 index 2204e9bf313234378235a2a88368ad27278f2ace..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkCompletedFactory.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.WorkCompleted; -import com.x.processplatform.core.entity.content.WorkCompleted_; - -public class WorkCompletedFactory extends AbstractFactory { - - public WorkCompletedFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(WorkCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(WorkCompleted.class); - Predicate p = cb.equal(root.get(WorkCompleted_.application), id); - cq.select(root.get(WorkCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(WorkCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(WorkCompleted.class); - Predicate p = cb.equal(root.get(WorkCompleted_.process), id); - cq.select(root.get(WorkCompleted_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listJobWithApplication(String applicationId) throws Exception { - EntityManager em = this.entityManagerContainer().get(WorkCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(WorkCompleted.class); - Predicate p = cb.equal(root.get(WorkCompleted_.application), applicationId); - return em.createQuery(cq.select(root.get(WorkCompleted_.job)).where(p).distinct(true)).getResultList(); - } - - public List listJobWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(WorkCompleted.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(WorkCompleted.class); - Predicate p = cb.equal(root.get(WorkCompleted_.process), processId); - return em.createQuery(cq.select(root.get(WorkCompleted_.job)).where(p).distinct(true)).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkFactory.java deleted file mode 100644 index 6ca851a55799b2a8197a6d26286de8c25f753ac8..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkFactory.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.Work; -import com.x.processplatform.core.entity.content.Work_; - -public class WorkFactory extends AbstractFactory { - - public WorkFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Work.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Work.class); - Predicate p = cb.equal(root.get(Work_.application), id); - cq.select(root.get(Work_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Work.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Work.class); - Predicate p = cb.equal(root.get(Work_.process), id); - cq.select(root.get(Work_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listJobWithApplication(String applicationId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Work.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Work.class); - Predicate p = cb.equal(root.get(Work_.application), applicationId); - return em.createQuery(cq.select(root.get(Work_.job)).where(p).distinct(true)).getResultList(); - } - - public List listJobWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Work.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Work.class); - Predicate p = cb.equal(root.get(Work_.process), processId); - return em.createQuery(cq.select(root.get(Work_.job)).where(p).distinct(true)).getResultList(); - } -} diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkLogFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkLogFactory.java deleted file mode 100644 index 731f4637c47f2496915c4f61e2107702332899b6..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/content/factory/WorkLogFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.processplatform.assemble.designer.content.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.content.WorkLog; -import com.x.processplatform.core.entity.content.WorkLog_; - -public class WorkLogFactory extends AbstractFactory { - - public WorkLogFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(WorkLog.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(WorkLog.class); - Predicate p = cb.equal(root.get(WorkLog_.application), id); - cq.select(root.get(WorkLog_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(WorkLog.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(WorkLog.class); - Predicate p = cb.equal(root.get(WorkLog_.application), id); - p = cb.and(p, cb.equal(root.get(WorkLog_.completed), completed)); - cq.select(root.get(WorkLog_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(WorkLog.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(WorkLog.class); - Predicate p = cb.equal(root.get(WorkLog_.process), id); - cq.select(root.get(WorkLog_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessWithCompleted(String id, Boolean completed) throws Exception { - EntityManager em = this.entityManagerContainer().get(WorkLog.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(WorkLog.class); - Predicate p = cb.equal(root.get(WorkLog_.process), id); - p = cb.and(p, cb.equal(root.get(WorkLog_.completed), completed)); - cq.select(root.get(WorkLog_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/AgentFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/AgentFactory.java deleted file mode 100644 index abf700cb26d04702ec47333768fcecce0b71248e..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/AgentFactory.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Agent; -import com.x.processplatform.core.entity.element.Agent_; - -public class AgentFactory extends AbstractFactory { - - public AgentFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Agent.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Agent.class); - Predicate p = cb.equal(root.get(Agent_.process), id); - cq.select(root.get(Agent_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(Agent.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Agent.class); - Root root = cq.from(Agent.class); - Predicate p = cb.equal(root.get(Agent_.process), id); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的agent */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Agent.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Agent.class); - Predicate p = cb.equal(root.get(Agent_.form), formId); - cq.select(root.get(Agent_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationDictFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationDictFactory.java deleted file mode 100644 index 693a652163acdf0d6d14700796b716578c53f59c..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationDictFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.ApplicationDict; -import com.x.processplatform.core.entity.element.ApplicationDict_; - -public class ApplicationDictFactory extends AbstractFactory { - - public ApplicationDictFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String applicationId) throws Exception { - EntityManager em = this.entityManagerContainer().get(ApplicationDict.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ApplicationDict.class); - Predicate p = cb.equal(root.get(ApplicationDict_.application), applicationId); - cq.select(root.get(ApplicationDict_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationObject(String applicationId) throws Exception { - EntityManager em = this.entityManagerContainer().get(ApplicationDict.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(ApplicationDict.class); - Root root = cq.from(ApplicationDict.class); - Predicate p = cb.equal(root.get(ApplicationDict_.application), applicationId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - public List sort(List list) { - list = list.stream() - .sorted(Comparator.comparing(ApplicationDict::getName, Comparator.nullsLast(String::compareTo))) - .collect(Collectors.toList()); - return list; - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationDictItemFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationDictItemFactory.java deleted file mode 100644 index 2c4eaad99c351cc20ce608e7be508e83e82344bf..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationDictItemFactory.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.ApplicationDictItem; -import com.x.processplatform.core.entity.element.ApplicationDictItem_; - -public class ApplicationDictItemFactory extends AbstractFactory { - - public ApplicationDictItemFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String id) throws Exception { - EntityManager em = this.entityManagerContainer().get(ApplicationDictItem.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ApplicationDictItem.class); - Predicate p = cb.equal(root.get(ApplicationDictItem_.application), id); - cq.select(root.get(ApplicationDictItem_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationDict(String applicationDict) throws Exception { - EntityManager em = this.entityManagerContainer().get(ApplicationDictItem.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(ApplicationDictItem.class); - Predicate p = cb.equal(root.get(ApplicationDictItem_.bundle), applicationDict); - cq.select(root.get(ApplicationDictItem_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationDictObject(String applicationDict) throws Exception { - EntityManager em = this.entityManagerContainer().get(ApplicationDictItem.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(ApplicationDictItem.class); - Root root = cq.from(ApplicationDictItem.class); - Predicate p = cb.equal(root.get(ApplicationDictItem_.bundle), applicationDict); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationFactory.java deleted file mode 100644 index 8b4d2ad65af692595b8e450683bfc3d3420b07ee..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ApplicationFactory.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.base.core.project.http.EffectivePerson; -import com.x.base.core.project.organization.OrganizationDefinition; -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Application; -import com.x.processplatform.core.entity.element.Application_; - -public class ApplicationFactory extends AbstractFactory { - - public ApplicationFactory(Business business) throws Exception { - super(business); - } - - /* 如果isManager列示所有应用,如果不是则判断权限 */ - public List listWithPerson(EffectivePerson effectivePerson) throws Exception { - EntityManager em = this.entityManagerContainer().get(Application.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Application.class); - cq.select(root.get(Application_.id)); - if (effectivePerson.isNotManager() && (!this.business().organization().person().hasRole(effectivePerson, - OrganizationDefinition.Manager, OrganizationDefinition.ProcessPlatformManager))) { - Predicate p = cb.isMember(effectivePerson.getDistinguishedName(), root.get(Application_.controllerList)); - p = cb.or(p, cb.equal(root.get(Application_.creatorPerson), effectivePerson.getDistinguishedName())); - cq.where(p); - } - return em.createQuery(cq).getResultList(); - } - - /* 如果是isManager列示分类的有所应用,如果不是则判断权限 */ - public List listWithPersonWithApplicationCategory(EffectivePerson effectivePerson, - String applicationCategory) throws Exception { - EntityManager em = this.entityManagerContainer().get(Application.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Application.class); - Predicate p = cb.equal(root.get(Application_.applicationCategory), applicationCategory); - if (effectivePerson.isNotManager() && (!this.business().organization().person().hasRole(effectivePerson, - OrganizationDefinition.ProcessPlatformManager))) { - p = cb.and(p, - cb.or(cb.isMember(effectivePerson.getDistinguishedName(), root.get(Application_.controllerList)), - cb.equal(root.get(Application_.creatorPerson), effectivePerson.getDistinguishedName()))); - } - cq.select(root.get(Application_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - // /* 如果是isManager列示所有应用,如果不是则判断权限 */ - // public List listApplicationCategoryWithPerson(EffectivePerson - // effectivePerson) throws Exception { - // EntityManager em = this.entityManagerContainer().get(Application.class); - // CriteriaBuilder cb = em.getCriteriaBuilder(); - // CriteriaQuery cq = cb.createQuery(String.class); - // Root root = cq.from(Application.class); - // cq.select(root.get(Application_.applicationCategory)).distinct(true); - // if (!effectivePerson.isManager()) { - // Predicate p = cb.isMember(effectivePerson.getDistinguishedName(), - // root.get(Application_.controllerList)); - // p = cb.or(p, cb.equal(root.get(Application_.creatorPerson), - // effectivePerson.getDistinguishedName())); - // cq.where(p); - // } - // return em.createQuery(cq).getResultList(); - // } - - /* 如果是isManager列示所有应用,如果不是则判断权限 */ - public Long countWithPersonWithApplicationCategory(EffectivePerson effectivePerson, String applicationCategory) - throws Exception { - EntityManager em = this.entityManagerContainer().get(Application.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Application.class); - Predicate p = cb.equal(root.get(Application_.applicationCategory), applicationCategory); - if (!effectivePerson.isManager()) { - p = cb.and(p, - cb.or(cb.isMember(effectivePerson.getDistinguishedName(), root.get(Application_.controllerList)), - cb.equal(root.get(Application_.creatorPerson), effectivePerson.getDistinguishedName()))); - } - cq.select(root.get(Application_.id)).where(p).distinct(true); - List list = em.createQuery(cq).getResultList(); - return new Long(list.size()); - } - - public List sort(List list) { - list = list.stream() - .sorted(Comparator.comparing(Application::getAlias, Comparator.nullsLast(String::compareTo)) - .thenComparing(Application::getName, Comparator.nullsLast(String::compareTo))) - .collect(Collectors.toList()); - return list; - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/BeginFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/BeginFactory.java deleted file mode 100644 index 16d85aa92eaa6fc79afdd6295cca564579355823..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/BeginFactory.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Begin; -import com.x.processplatform.core.entity.element.Begin_; - -public class BeginFactory extends AbstractFactory { - - public BeginFactory(Business business) throws Exception { - super(business); - } - - public String getWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Begin.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Begin.class); - Predicate p = cb.equal(root.get(Begin_.process), processId); - cq.select(root.get(Begin_.id)).where(p); - List list = em.createQuery(cq).setMaxResults(1).getResultList(); - return list.isEmpty() ? null : list.get(0); - } - - public Begin getWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Begin.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Begin.class); - Root root = cq.from(Begin.class); - Predicate p = cb.equal(root.get(Begin_.process), processId); - cq.select(root).where(p); - List list = em.createQuery(cq).setMaxResults(1).getResultList(); - return list.isEmpty() ? null : list.get(0); - } - - /** 查找使用表单的begin */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Begin.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Begin.class); - Predicate p = cb.equal(root.get(Begin_.form), formId); - cq.select(root.get(Begin_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/CancelFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/CancelFactory.java deleted file mode 100644 index 4a94596e02edd26f1fb0ed45efedac2e0fe39588..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/CancelFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Cancel; -import com.x.processplatform.core.entity.element.Cancel_; - -public class CancelFactory extends AbstractFactory { - - public CancelFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Cancel.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Cancel.class); - Predicate p = cb.equal(root.get(Cancel_.process), processId); - cq.select(root.get(Cancel_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Cancel.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Cancel.class); - Root root = cq.from(Cancel.class); - Predicate p = cb.equal(root.get(Cancel_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的cancel */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Cancel.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Cancel.class); - Predicate p = cb.equal(root.get(Cancel_.form), formId); - cq.select(root.get(Cancel_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ChoiceFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ChoiceFactory.java deleted file mode 100644 index 264331bffaeaa5de00a6850f4875a37665f01378..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ChoiceFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Choice; -import com.x.processplatform.core.entity.element.Choice_; - -public class ChoiceFactory extends AbstractFactory { - - public ChoiceFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Choice.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Choice.class); - Predicate p = cb.equal(root.get(Choice_.process), processId); - cq.select(root.get(Choice_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Choice.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Choice.class); - Root root = cq.from(Choice.class); - Predicate p = cb.equal(root.get(Choice_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的choice */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Choice.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Choice.class); - Predicate p = cb.equal(root.get(Choice_.form), formId); - cq.select(root.get(Choice_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/DelayFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/DelayFactory.java deleted file mode 100644 index 8d720a239cf894082877b0605c2ef5ec92ff6223..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/DelayFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Delay; -import com.x.processplatform.core.entity.element.Delay_; - -public class DelayFactory extends AbstractFactory { - - public DelayFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Delay.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Delay.class); - Predicate p = cb.equal(root.get(Delay_.process), processId); - cq.select(root.get(Delay_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Delay.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Delay.class); - Root root = cq.from(Delay.class); - Predicate p = cb.equal(root.get(Delay_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的delay */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Delay.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Delay.class); - Predicate p = cb.equal(root.get(Delay_.form), formId); - cq.select(root.get(Delay_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/EmbedFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/EmbedFactory.java deleted file mode 100644 index 3d40427b6d8f383f2c092ee20650521d8e45e95f..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/EmbedFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Embed; -import com.x.processplatform.core.entity.element.Embed_; - -public class EmbedFactory extends AbstractFactory { - - public EmbedFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Embed.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Embed.class); - Predicate p = cb.equal(root.get(Embed_.process), processId); - cq.select(root.get(Embed_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Embed.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Embed.class); - Root root = cq.from(Embed.class); - Predicate p = cb.equal(root.get(Embed_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的embed */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Embed.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Embed.class); - Predicate p = cb.equal(root.get(Embed_.form), formId); - cq.select(root.get(Embed_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/EndFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/EndFactory.java deleted file mode 100644 index bb8d47eaab64a81c005ae957795fe659ca623271..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/EndFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.End; -import com.x.processplatform.core.entity.element.End_; - -public class EndFactory extends AbstractFactory { - - public EndFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(End.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(End.class); - Predicate p = cb.equal(root.get(End_.process), processId); - cq.select(root.get(End_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(End.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(End.class); - Root root = cq.from(End.class); - Predicate p = cb.equal(root.get(End_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的end */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(End.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(End.class); - Predicate p = cb.equal(root.get(End_.form), formId); - cq.select(root.get(End_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FileFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FileFactory.java deleted file mode 100644 index d37a08aefe0b1d335a6735b07cdff3fc9d63deec..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FileFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.File; -import com.x.processplatform.core.entity.element.File_; - -public class FileFactory extends AbstractFactory { - - public FileFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String applicationId) throws Exception { - EntityManager em = this.entityManagerContainer().get(File.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(File.class); - Predicate p = cb.equal(root.get(File_.application), applicationId); - cq.select(root.get(File_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationObject(String applicationId) throws Exception { - EntityManager em = this.entityManagerContainer().get(File.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(File.class); - Root root = cq.from(File.class); - Predicate p = cb.equal(root.get(File_.application), applicationId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - public List sort(List list) { - list = list.stream().sorted(Comparator.comparing(File::getName, Comparator.nullsLast(String::compareTo))) - .collect(Collectors.toList()); - return list; - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FormFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FormFactory.java deleted file mode 100644 index 06a413288958cf9c9e19f018a0bd4bebe948e4a7..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FormFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Form; -import com.x.processplatform.core.entity.element.Form_; - -public class FormFactory extends AbstractFactory { - - public FormFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(Form.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root
root = cq.from(Form.class); - Predicate p = cb.equal(root.get(Form_.application), application); - cq.select(root.get(Form_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationObject(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(Form.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Form.class); - Root root = cq.from(Form.class); - Predicate p = cb.equal(root.get(Form_.application), application); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - public List sort(List list) { - list = list.stream().sorted(Comparator.comparing(Form::getName, Comparator.nullsLast(String::compareTo))) - .collect(Collectors.toList()); - return list; - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FormFieldFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FormFieldFactory.java deleted file mode 100644 index df42b7d46a966be3fc11b573b6d1852c5ab933e3..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/FormFieldFactory.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Embed; -import com.x.processplatform.core.entity.element.Embed_; -import com.x.processplatform.core.entity.element.FormField; -import com.x.processplatform.core.entity.element.FormField_; - -public class FormFieldFactory extends AbstractFactory { - - public FormFieldFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(FormField.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(FormField.class); - Predicate p = cb.equal(root.get(FormField_.application), application); - cq.select(root.get(FormField_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithForm(String form) throws Exception { - EntityManager em = this.entityManagerContainer().get(FormField.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(FormField.class); - Predicate p = cb.equal(root.get(FormField_.form), form); - cq.select(root.get(FormField_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithFormObject(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(FormField.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(FormField.class); - Root root = cq.from(FormField.class); - Predicate p = cb.equal(root.get(FormField_.form), formId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/InvokeFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/InvokeFactory.java deleted file mode 100644 index 30b8b1e102064f3dcc2ee9925d3b134d816cceb6..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/InvokeFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Invoke; -import com.x.processplatform.core.entity.element.Invoke_; - -public class InvokeFactory extends AbstractFactory { - - public InvokeFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Invoke.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Invoke.class); - Predicate p = cb.equal(root.get(Invoke_.process), processId); - cq.select(root.get(Invoke_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Invoke.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Invoke.class); - Root root = cq.from(Invoke.class); - Predicate p = cb.equal(root.get(Invoke_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的invoke */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Invoke.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Invoke.class); - Predicate p = cb.equal(root.get(Invoke_.form), formId); - cq.select(root.get(Invoke_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ManualFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ManualFactory.java deleted file mode 100644 index d0c538476e924aff6eb5526dbd6bc72985f1d9c1..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ManualFactory.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Manual; -import com.x.processplatform.core.entity.element.Manual_; - -public class ManualFactory extends AbstractFactory { - - public ManualFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Manual.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Manual.class); - Predicate p = cb.equal(root.get(Manual_.process), processId); - cq.select(root.get(Manual_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Manual.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Manual.class); - Root root = cq.from(Manual.class); - Predicate p = cb.equal(root.get(Manual_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的manual */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Manual.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Manual.class); - Predicate p = cb.equal(root.get(Manual_.form), formId); - cq.select(root.get(Manual_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/MergeFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/MergeFactory.java deleted file mode 100644 index 5dc5237ec0ab2e616b327d8d32e90cb1c550bf9d..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/MergeFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Merge; -import com.x.processplatform.core.entity.element.Merge_; - -public class MergeFactory extends AbstractFactory { - - public MergeFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Merge.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Merge.class); - Predicate p = cb.equal(root.get(Merge_.process), processId); - cq.select(root.get(Merge_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Merge.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Merge.class); - Root root = cq.from(Merge.class); - Predicate p = cb.equal(root.get(Merge_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的merge */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Merge.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Merge.class); - Predicate p = cb.equal(root.get(Merge_.form), formId); - cq.select(root.get(Merge_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/MessageFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/MessageFactory.java deleted file mode 100644 index ae2e88f6bdf402f16ea75e06ea96911bf607591d..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/MessageFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Message; -import com.x.processplatform.core.entity.element.Message_; - -public class MessageFactory extends AbstractFactory { - - public MessageFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Message.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Message.class); - Predicate p = cb.equal(root.get(Message_.process), processId); - cq.select(root.get(Message_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Message.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Message.class); - Root root = cq.from(Message.class); - Predicate p = cb.equal(root.get(Message_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的message */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Message.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Message.class); - Predicate p = cb.equal(root.get(Message_.form), formId); - cq.select(root.get(Message_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ParallelFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ParallelFactory.java deleted file mode 100644 index d31a8e3f7fd1fd3ac90e8e86a227a6140c7d6df0..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ParallelFactory.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Parallel; -import com.x.processplatform.core.entity.element.Parallel_; - -public class ParallelFactory extends AbstractFactory { - - public ParallelFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Parallel.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Parallel.class); - Predicate p = cb.equal(root.get(Parallel_.process), processId); - cq.select(root.get(Parallel_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Parallel.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Parallel.class); - Root root = cq.from(Parallel.class); - Predicate p = cb.equal(root.get(Parallel_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - /** 查找使用表单的parallel */ - public List listWithForm(String formId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Parallel.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Parallel.class); - Predicate p = cb.equal(root.get(Parallel_.form), formId); - cq.select(root.get(Parallel_.id)).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ProcessFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ProcessFactory.java deleted file mode 100644 index 0deb4fefc724298fe26606e188502623c21bc577..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ProcessFactory.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.*; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Application; -import com.x.processplatform.core.entity.element.Process; -import com.x.processplatform.core.entity.element.Process_; -import org.apache.commons.lang3.StringUtils; - -public class ProcessFactory extends AbstractFactory { - - public ProcessFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(Process.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Process.class); - Predicate p = cb.equal(root.get(Process_.application), application); - p = cb.and(p, cb.or(cb.isTrue(root.get(Process_.editionEnable)), - cb.isNull(root.get(Process_.editionEnable)))); - cq.select(root.get(Process_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationObject(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(Process.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Process.class); - Root root = cq.from(Process.class); - Predicate p = cb.equal(root.get(Process_.application), application); - p = cb.and(p, cb.or(cb.isTrue(root.get(Process_.editionEnable)), - cb.isNull(root.get(Process_.editionEnable)))); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listProcessEdition(String application, String edition) throws Exception { - EntityManager em = this.entityManagerContainer().get(Process.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Process.class); - Predicate p = cb.equal(root.get(Process_.application), application); - p = cb.and(p, cb.equal(root.get(Process_.edition), edition)); - cq.select(root.get(Process_.id)).where(p).orderBy(cb.desc(root.get(Process_.editionNumber))); - return em.createQuery(cq).getResultList(); - } - - public List listProcessEditionObject(String application, String edition) throws Exception { - EntityManager em = this.entityManagerContainer().get(Process.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Process.class); - Root root = cq.from(Process.class); - Predicate p = cb.equal(root.get(Process_.application), application); - p = cb.and(p, cb.equal(root.get(Process_.edition), edition)); - cq.select(root).where(p).orderBy(cb.desc(root.get(Process_.editionNumber))); - return em.createQuery(cq).getResultList(); - } - - public List listProcessDisableEdition(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(Process.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Process.class); - Predicate p = cb.equal(root.get(Process_.application), application); - p = cb.and(p, cb.isNotNull(root.get(Process_.edition))); - p = cb.and(p, cb.notEqual(root.get(Process_.edition), "")); - - Subquery subquery = cq.subquery(Process.class); - Root subRoot = subquery.from(Process.class); - Predicate subP = cb.conjunction(); - subP = cb.and(subP, cb.equal(root.get(Process_.edition), subRoot.get(Process_.edition))); - subP = cb.and(subP, cb.isTrue(subRoot.get(Process_.editionEnable))); - subquery.select(subRoot).where(subP); - p = cb.and(p, cb.not(cb.exists(subquery))); - - cq.distinct(true).select(root.get(Process_.edition)).where(p); - return em.createQuery(cq).getResultList(); - } - - public Process getEnabledProcess(String application, String edition) throws Exception { - EntityManager em = this.entityManagerContainer().get(Process.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Process.class); - Root root = cq.from(Process.class); - Predicate p = cb.equal(root.get(Process_.application), application); - p = cb.and(p, cb.equal(root.get(Process_.edition), edition)); - p = cb.and(p, cb.isTrue(root.get(Process_.editionEnable))); - cq.select(root).where(p).orderBy(cb.desc(root.get(Process_.editionNumber))); - List list = em.createQuery(cq).getResultList(); - if(list!=null && !list.isEmpty()){ - return list.get(0); - } - return null; - } - - public List sort(List list) { - list = list.stream().sorted(Comparator.comparing(Process::getName, Comparator.nullsLast(String::compareTo))) - .collect(Collectors.toList()); - return list; - } - - public Double getMaxEditionNumber(String application, String edition) throws Exception { - if (StringUtils.isNotEmpty(edition)){ - EntityManager em = this.entityManagerContainer().get(Process.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Double.class); - Root root = cq.from(Process.class); - Predicate p = cb.equal(root.get(Process_.application), application); - p = cb.and(p,cb.equal(root.get(Process_.edition), edition)); - cq.select(cb.max(root.get(Process_.editionNumber))).where(p); - Double max = em.createQuery(cq).getSingleResult(); - if(max == null || max < 1.0){ - max = 1.0; - } - return max; - } - return 1.0; - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/QueryStatFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/QueryStatFactory.java deleted file mode 100644 index 46cc0ca5939ac1ce3c4ac3238c21bb254d9b5f91..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/QueryStatFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.QueryStat; -import com.x.processplatform.core.entity.element.QueryStat_; - -public class QueryStatFactory extends AbstractFactory { - - public QueryStatFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(QueryStat.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(QueryStat.class); - Predicate p = cb.equal(root.get(QueryStat_.application), application); - cq.select(root.get(QueryStat_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationObject(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(QueryStat.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(QueryStat.class); - Root root = cq.from(QueryStat.class); - Predicate p = cb.equal(root.get(QueryStat_.application), application); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - public List sort(List list) { - list = list.stream().sorted(Comparator.comparing(QueryStat::getName, Comparator.nullsLast(String::compareTo))) - .collect(Collectors.toList()); - return list; - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/QueryViewFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/QueryViewFactory.java deleted file mode 100644 index 055aec1f3d3e593d693bde3f8756ec52b5dbf9bd..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/QueryViewFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.QueryView; -import com.x.processplatform.core.entity.element.QueryView_; - -public class QueryViewFactory extends AbstractFactory { - - public QueryViewFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(QueryView.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(QueryView.class); - Predicate p = cb.equal(root.get(QueryView_.application), application); - cq.select(root.get(QueryView_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithApplicationObject(String application) throws Exception { - EntityManager em = this.entityManagerContainer().get(QueryView.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(QueryView.class); - Root root = cq.from(QueryView.class); - Predicate p = cb.equal(root.get(QueryView_.application), application); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } - - public List sort(List list) { - list = list.stream().sorted(Comparator.comparing(QueryView::getName, Comparator.nullsLast(String::compareTo))) - .collect(Collectors.toList()); - return list; - } - -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/RouteFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/RouteFactory.java deleted file mode 100644 index 7efc84dd2b3543f10195573ceeae8fef793c839a..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/RouteFactory.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.List; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Route; -import com.x.processplatform.core.entity.element.Route_; - -public class RouteFactory extends AbstractFactory { - - public RouteFactory(Business business) throws Exception { - super(business); - } - - public List listWithProcess(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Route.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root root = cq.from(Route.class); - Predicate p = cb.equal(root.get(Route_.process), processId); - cq.select(root.get(Route_.id)).where(p); - return em.createQuery(cq).getResultList(); - } - - public List listWithProcessObject(String processId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Route.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(Route.class); - Root root = cq.from(Route.class); - Predicate p = cb.equal(root.get(Route_.process), processId); - cq.select(root).where(p); - return em.createQuery(cq).getResultList(); - } -} \ No newline at end of file diff --git a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ScriptFactory.java b/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ScriptFactory.java deleted file mode 100644 index 87dd3fdbbddf69f263e274fece3c6a49c189b791..0000000000000000000000000000000000000000 --- a/o2server/x_processplatform_assemble_designer/src/main/webapp/describe/sources/com/x/processplatform/assemble/designer/element/factory/ScriptFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.x.processplatform.assemble.designer.element.factory; - -import java.util.Comparator; -import java.util.List; -import java.util.stream.Collectors; - -import javax.persistence.EntityManager; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Predicate; -import javax.persistence.criteria.Root; - -import com.x.processplatform.assemble.designer.AbstractFactory; -import com.x.processplatform.assemble.designer.Business; -import com.x.processplatform.core.entity.element.Script; -import com.x.processplatform.core.entity.element.Script_; - -public class ScriptFactory extends AbstractFactory { - - public ScriptFactory(Business business) throws Exception { - super(business); - } - - public List listWithApplication(String applicationId) throws Exception { - EntityManager em = this.entityManagerContainer().get(Script.class); - CriteriaBuilder cb = em.getCriteriaBuilder(); - CriteriaQuery cq = cb.createQuery(String.class); - Root