pase.server
Class UtilityServiceImpl

java.lang.Object
  extended by pase.server.UtilityServiceImpl
All Implemented Interfaces:
UtilityService

public class UtilityServiceImpl
extends java.lang.Object
implements UtilityService

UtilityService Implementation

Version:
2.0.0,
Author:
lchuang
See Also:
UtilityService

Field Summary
 
Fields inherited from interface pe.pase.UtilityService
CACHE_TYPE_ALL, CACHE_TYPE_ARTIFACT, CACHE_TYPE_ORG, CACHE_TYPE_ORG_ASSIGNED_ID, CACHE_TYPE_PROCESS, CACHE_TYPE_TASK
 
Constructor Summary
UtilityServiceImpl()
           
 
Method Summary
 boolean activeBBSBoard(java.lang.String bbsBoardID)
          Active a bbs board in db with a board ID
 void addDebugLog(java.lang.String msg)
          Add a debug log to server.
 void addErrLog(java.lang.String msg)
          Add an error log to server.
 void addExeLog(java.lang.String msg)
          Add a execution log to server.
 void addInfoLog(java.lang.String msg)
          Add an information log to server.
 boolean addLoginLog(LoginInfo info)
          Adds a login info record.
 boolean addSSORecord(java.lang.String memID, java.lang.String sessionID)
          add record into sso record
 boolean addToDo(java.lang.String todoId, java.lang.String todoTest, java.lang.String dueDate, java.lang.String memID)
          add one toDo
 void addWarningLog(java.lang.String msg)
          Add a warning log to server.
 boolean changePassword(java.lang.String loginName, java.lang.String newPwd)
          The method is used to change the password of some member.
 boolean changePassword(java.lang.String mbrID, java.lang.String oldPwd, java.lang.String newPwd)
          The method is used to change the password of some member.
 boolean checkMessageAttachFileIfAnyoneUse(java.lang.String attachFileInfo)
          Check the message file folders are there any other message to use
 java.util.HashMap checkRegisterEIPClient(java.lang.String user, java.lang.String pass)
          check UniPortal register to server.
 void clearCache()
          Clear server cache.
 void clearCache(java.lang.String type)
          Clear server cache with the specified cache type.
 void clearCache(java.lang.String type, java.util.Vector parameter)
          Clear server cache with the specified cache type with parameters.
 void clearSysSerailMap()
          clear ORG cache
 boolean createDeviceInfo(DeviceInfo deviceInfo)
          Create a DeviceInfo
 ScheduleEvent createScheduleEvent()
          Create a empty ScheduleEvent instance
 boolean delBBSMsg(java.lang.String bbsBoardID, java.lang.String msgID)
          Delete a bbs message in db with a borad ID and a message ID
 boolean deleteBBSBoard(java.lang.String bbsBoardID)
          Delete a bbs board in db with a board ID
 boolean deleteBBSCategory(java.lang.String catID)
           
 boolean deleteBoardAdmin(java.lang.String memId)
           
 boolean deleteBoardPerm(java.lang.String messageId, java.lang.String memId)
           
 boolean deleteDeviceInfoByUUIDandMemID(java.lang.String _uuid, java.lang.String memId)
          Delete DeviceInfo by the given uuid and memId.
 boolean deleteEmailTemplate(java.lang.String templateID)
           
 boolean deleteFreqMessage(FreqMessage msg)
           
 boolean deleteGlobals(java.lang.String rootTaskID)
          Delete global variables for a rootTask.
 boolean deleteMailLoginTimeStamp(java.lang.String mailId)
          To delete the data from database by the mail id .
 boolean deleteMailLoginTimeStampByTaskId(java.lang.String taskId)
          To delete the data from database by the task id .
 boolean deleteMbrSignGroup(java.lang.String mbrId, AFGroup group)
           
 boolean deletePASEMessage(PASEMessage msg)
          Delete a message from database
 boolean deletePASEMessageByID(java.lang.String msgID)
          Delete a message from database
 boolean deleteProcessMapCategory(java.lang.String id)
           
 boolean deleteProcessMapLink(Link link)
           
 boolean deleteToDo(java.lang.String todoId, java.lang.String memID)
          delete Todo
 void deleteUserCalendar(java.lang.String calendarID)
          delete user calendar with specified calendar id
 boolean deleteWebADMACL(java.lang.String aclId)
          Delete the WebADM access control policy.
 java.util.Collection findLoginLog(QueryConditions qryCondition)
          Returns the LoginInfo objects by specific conditions.
 long getAdminLoginTime(java.lang.String loginID)
          Get login time for a Administration tool user.
 java.util.Vector getAllBBSBoard()
          Get all bbs boards, including active and suspended
 java.util.Vector getAllBBSBoard(java.lang.String cid)
           
 java.util.Vector getAllBBSBoardByComID(java.lang.String comID)
          Gets all bbs boards(include the announcement board) by company id.
 int getAllBBSMessageCountOfMem(java.lang.String boardID, java.lang.String memID)
           
 java.util.Vector getAllCompanyNameList()
          Get all names of all company.
 java.util.List<BBSBoard> getAllEIPAnnounceBoardByOrgIDs(java.lang.String... orgIDs)
           
 java.util.List getAllMemberIsInvisible(boolean isInvisible)
           
 java.util.List getAllMemberIsNoRole(boolean isNoRole)
           
 java.util.List getAllMemberIsNoRole(java.lang.String keyword, boolean isNoRole)
           
 java.util.List getAllMemberIsResign(boolean isResign)
           
 java.util.Vector getAllMessageOfMem(java.lang.String boardID, java.lang.String memID)
           
 java.util.Vector getAllNoRoleMemberRecord()
           
 java.util.Map getAllSearchResignInvisibleNoRoleResult(java.lang.String keyword)
           
 java.util.List getAllTimeZones()
           
 java.util.List getAllUserCalendar()
          get all user calendar
 java.util.List getAllWebADMACLListOfDetail()
          get all of the WebADM access control policy list. it is all message
 java.util.List getAllWebADMACLListOfRough()
          get all of the WebADM access control policy list. it is just some messsage
 java.lang.String getAnnouncementCompanyName(java.lang.String boardID)
           
 pe.pde.EmailTemplate getAPToEmailTemplate(java.lang.String templateID, java.lang.String type, java.lang.String companyId)
           
 java.util.HashMap getArtInsDefaultMap(java.lang.String propertys, java.lang.String artState, java.lang.String dvType, Task task, java.lang.String artID, java.lang.String[] priorityLocaleStr)
           
 java.util.List<AuthLDAPConfig> getAuthLDAPConfigs()
          Retrieve the ldap configs
 java.util.Vector getBBSBoard()
          Get bbs boards, only active
 BBSBoard getBBSBoard(java.lang.String bbsBoardID)
          Get the bbs board with the specific ID
 java.util.Vector getBBSBoardByOwnerLoginIDAndRangeIDs(java.lang.String ownerLoginID, java.util.Vector rangeIDList)
          Gets bbs boards by owner's login ID and rangeID list.
 java.util.Vector getBBSBoardByRangeID(java.util.Vector rangeIDList)
          Gets bbs boards by member's role.
 java.util.Vector getBBSBoardIDByRangeID(java.util.Vector rangeIDList)
          Gets bbs boards id by member's role.
 EIPBBSCategory getBBSCategory(java.lang.String cid)
           
 BBSMessage getBBSMsg(java.lang.String msgID)
          Get the bbs message with the specific ID
 BBSMessage getBBSMsg(java.lang.String msgID, boolean isAddViewCount)
          Get the bbs message with the specific ID
 java.util.Vector getBBSMsgList(java.lang.String bbsBoard)
          Get all messages with a board ID
 java.util.Vector getBBSMsgListInfo(java.lang.String bbsBoard, java.lang.String type, java.lang.String keyword)
           
 java.util.Vector getBBSSearchResult(java.lang.String bbsBoardID, java.lang.String keyword)
          Get all messages with a keyword in some board.
 java.util.Vector getBoardAdminList()
           
 java.util.Vector getBoardPermList(java.lang.String messageId)
           
 com.flowring.schedule.UserCalendar getCalendar(java.lang.String id)
          Get UserCalendar by id.
 java.util.Vector getCategoryList(java.util.List rangeIDList)
           
 java.util.Vector getCategoryList(java.lang.String cid)
           
 java.util.Vector getComIDListOfMember(java.lang.String memID)
           
 java.lang.String getComIdOfDep(java.lang.String depID)
           
 java.lang.String getComIdOfRole(java.lang.String rolID)
           
 java.util.Map getCompanyAnnouncementBoard()
           
 java.util.List getCompanyIDListOfAlbumCreator(java.lang.String memID)
          UP-4 by Leon 20141201 Gets the CompanyID List of AlbumCreator.
 java.util.List getCompanyIDListOfAlbumManager(java.lang.String memID)
          UP-4 by Leon 20141201 Gets the CompanyID List of AlbumManager.
 java.util.List getCompanyIDListOfBuyCreator(java.lang.String memID)
          UP-3 by Tim 20141203 Gets the CompanyID List of BuyCreator.
 java.util.List getCompanyIDListOfBuyManager(java.lang.String memID)
          UP-3 by Tim 20141203 Gets the CompanyID List of BuyManager.
 java.util.List getCompanyIDListOfLayoutManager(java.lang.String memID)
          Gets the CompanyID List of LayoutManager.
 java.util.List getCompanyIDListOfSuperuser(java.lang.String memId, boolean subCompnayIncluded)
           
 java.util.Vector getConcurrentUser()
          Get all concurrent users.
 java.lang.String getConfigurationFile(java.lang.String fileName)
          Get the configuration file of PASE.
 java.lang.String getConfigurationFile(java.lang.String fileName, java.lang.String characterType)
          add by yinhui for AF-2767 Get the configuration file of PASE.
 java.util.Map getDatabase()
           
 java.lang.String getDbConnectionCurrentState()
          Get the information about the system database connection : Max. connection size, Min. connection size, Current used connection size.
 java.util.Vector getDeputiedOfMember(java.lang.String memID)
          Gets a member list that the given member is each one of the list member deputy.
 java.util.List<DeviceInfo> getDeviceInfoListByMemId(java.lang.String memId)
          Get the DeviceInfo object by user's member id
 java.util.List<DeviceInfo> getDeviceInfoListByUUID(java.lang.String _uuid)
          Get the DeviceInfo object by user's smart device's uuid
 java.util.Vector getDraftPASEMessageOfMember(java.lang.String mID)
          Get a member's draft messages
 java.util.List<BBSBoard> getEIPAnnounceBoardByBoardManagerID(java.lang.String... managerIDs)
           
 java.util.Map<java.lang.String,java.lang.Integer> getEIPAnnounceBoardCountByOrgIDs(java.lang.String... orgIDs)
           
 java.util.Vector getEmailTemplateList(java.lang.String type, java.util.Vector companyIDs)
           
 java.util.Vector getFreqMessageByMbrId(java.lang.String mbrId)
           
 java.util.HashMap getGlobals(java.lang.String rootTaskID)
          Get global variables for a rootTask.
 java.lang.String getGroupSignIDOfTask(java.lang.String taskID)
          To get the group sign id of the specified task id.
 java.util.List getGroupSignTaskIDList(java.lang.String groupSignID)
          To get the task id list of the specified group sign id.
 java.util.HashMap getGroupSignTaskMap(java.lang.String groupSignID)
          To get a HashMap of the specified group sign id.
 java.util.Vector getHalfHolidays()
          get half holidays in system's default calendar.
 java.util.Vector getHalfHolidays(java.lang.String memID)
          get half holidays in member's calendar.
 java.util.Vector getHolidays()
          get holidays in system's default calendar.
 java.util.Vector getHolidays(java.lang.String memID)
          get holidays in member's calendar.
 java.util.Vector getLatestBBSEIPMsgByMemID(int count, java.util.Vector boardList)
           
 java.util.Vector getLatestBBSEIPMsgByMemIDForPage(int beginIndex, int count, java.util.Vector boardIDList)
           
 int getLatestBBSEIPMsgByMemIDForPageCount(java.util.Vector boardIDList)
           
 java.util.Vector getLatestBBSGlobalEIPMsgByMemIDForPage(int beginIndex, int count, java.util.Vector boardList, java.lang.String memID)
           
 java.util.Vector getLatestBBSMsg(int count)
          Get the latest BBS Message with the specific count number
 java.util.Vector getLatestBBSMsg(int count, java.lang.String expBoardID)
          Get the latest BBS Message with the specific count number
 java.util.Vector getLatestBBSMsgByMemID(int count, java.util.Vector boardList)
           
 java.util.Vector getLatestPASEMessageOfMember(int count, java.lang.String mID)
          Gets latest message of the member
 java.util.Vector getLatestUnReadPASEMessageOfMember(int count, java.lang.String mID)
          Gets latest unread message of the member
 java.lang.String[] getLogFileList()
          Get the log file list from PASE.
 java.util.List<LogFile> getLogFiles()
          Get the log file list from PASE.
 LoginInfo getLoginInfoAccountLockStatus(java.lang.String memID)
           
 int getLoginInfoTryTimes(java.lang.String memID)
           
 long getMailLoginTimeStamp(java.lang.String mailId)
          Gets the time value in milliseconds of TimeStamp.
 java.util.Vector getMbrSignGroupList(java.lang.String mbrId)
           
 java.util.HashMap getMemoryInfo()
          get the memory information of PASE.
 java.util.Vector getMessageInfo(java.lang.String msgId)
           
 java.lang.String getNewAclID()
          get new WebADMACL id.
 java.lang.String getNewAFGroupID()
           
 java.lang.String getNewArtInsID()
          Genrate a new Artifact Instance ID.
 java.lang.String getNewBBSMsgID()
          Genrate a new BBSMessage ID.
 java.lang.String getNewBookingEventID()
           
 java.lang.String getNewDayId()
          Generate a new Day ID.
 java.lang.String getNewEmailTemplateID()
           
 java.lang.String getNewFileID()
          Genrate a new file ID.
 java.lang.String getNewFreqMessageID()
           
 java.lang.String getNewGroupSignID()
          Generate a new GroupSign ID
 java.lang.String getNewMsgID()
          Genrate a new PASEMessage ID.
 java.lang.String getNewMultiAeppServerID()
           
 java.lang.String getNewOfficeHourId()
          Generate a new OfficeHour ID.
 java.lang.String getNewProcessMapCategoryID()
           
 java.lang.String getNewTaskID()
          Genrate a new task ID.
 java.lang.String getNewWorkingDayId()
          Generate a new WorkingDay ID.
 java.lang.String getNewWorkingDayTemplateId()
          Generate a new WorkingDayTemplate ID.
 java.util.Vector getOnlineAdminUser()
          Get all online administration tool user.
 java.util.Vector getOnlineUser()
          Get all online Agenda user.
 java.util.HashMap getPaseEventMap(java.lang.String[] args)
           
 java.util.Vector getPASEMessageOfMember(java.lang.String mID)
          Get a member's messages
 java.util.Vector getPortalAccessibleMemRDList(java.lang.String orgUnit)
          Get list of accessible member records, according to the config of ADM
 Category getProcessMapCategory(java.lang.String id)
           
 java.util.List getProcessMapCategoryList()
           
 Link getProcessMapLink(Link link)
           
 java.util.List getProcessMapLinkList(java.lang.String parentId)
           
 java.util.List getProcessMapParentIdListByProId(java.lang.String proId)
           
 java.util.HashMap getProductInfo()
          Get product information.
 java.util.Map getRoleSearchResult(boolean companyNameSearch, java.lang.String keyword, boolean depNameSearch, boolean rolNameSearch, boolean memNameSearch, boolean loginIdSearch, boolean isInvisible, boolean isResign)
          Get the role search result with the keyword, include company.
 java.util.Map getRoleSearchResult(java.lang.String keyword, boolean depNameSearch, boolean rolNamesearch, boolean memNameSearch, boolean loginIdSearch)
          Get the role search result with the keyword.
 java.util.Map getRoleSearchResult(java.lang.String keyword, boolean depNameSearch, boolean rolNameSearch, boolean memNameSearch, boolean loginIdSearch, boolean isInvisible, boolean isResign)
           
 java.util.Map getRoleSearchResult(java.lang.String keyword, boolean depNameSearch, boolean rolNameSearch, boolean memNameSearch, boolean loginIdSearch, boolean hasInvisible, boolean hasDeniedLogin, boolean hasResign)
           
 java.util.Map getRoleSearchResult(java.lang.String keyword, boolean depNameSearch, boolean rolNameSearch, boolean memNameSearch, boolean loginIdSearch, boolean englishName, boolean officePhone, boolean isInvisible, boolean hasDeniedLogin, boolean isResign)
           
 ScheduleEvent getScheduleEvent(java.lang.String id)
          Get a ScheduleEvent instance
 java.util.Vector getSentPASEMessageOfMember(java.lang.String mID)
          Get a member's sent messages
 SerRuntimeEnv getServerEnv()
          Get the server runtime environment
 double getServerGMT()
          get the GMT of server
 java.util.HashMap getServerStatus()
          Get server status.
 java.util.Properties getServerSystemProperties()
           
 long getServerTime()
          Get server time.
 java.lang.String getSSOMemberID(java.lang.String sessionID)
          get memID from sso record by sessionID
 MemberRecord getSSOMemberRecord(java.lang.String sessionID)
          get memberRecord from sso record by sessionID
 java.util.List getToDoList(java.lang.String memID)
          get toDoList
 com.flowring.schedule.UserCalendar getUserCalendarByUser(java.lang.String id)
          get user calendar by user id(MEMxxx, ROLxxx, DEPxxx, COMxxx)
 java.util.HashMap getUserCalendarMap(java.lang.String memID)
          get member's all UserCalendars corresponding to every role;
 long getUserLoginTime(java.lang.String loginID)
          Get login time for a Agenda user.
 java.util.Vector getVariableList()
          Get variable list.
 java.lang.String getVendor()
          Get the Database Vendor
 java.util.List getWebADMACLListByAclID(java.lang.String aclID)
          get all of the WebADM access control policy list by AclID.
 java.util.List getWebADMACLListOfDetailByAuthorID(java.lang.String AuthorID)
          get all of the WebADM access control policy list by AuthorID. it is all message
 java.util.List getWebADMACLListOfRoughByAuthorID(java.lang.String AuthorID)
          get all of the WebADM access control policy list by AuthorID.
 int[] getWeek()
          get the work days of a week in system's default calendar.
 int[] getWeek(java.lang.String memID)
          get the work days of a week in member's calendar.
 java.util.Vector getWorkdays()
          get work days in system's default calendar.
 java.util.Vector getWorkdays(java.lang.String memID)
          get work days in member's calendar.
 java.util.HashMap initAgenda(java.lang.String user)
          init Agenda
 void initHoliday()
          Initial hoilday schedule, ask server to load schedule from settings.
 boolean insertBoardAdmin(java.lang.String memId)
           
 boolean insertBoardPerm(java.lang.String messageId, java.lang.String memId)
           
 boolean insertEmailTemplate(pe.pde.EmailTemplate template)
           
 boolean insertFreqMessage(FreqMessage msg)
           
 boolean insertLoginInfo(LoginInfo loginInfo)
           
 boolean insertMbrSignGroup(java.lang.String mbrId, AFGroup group)
           
 boolean insertProcessMapCategory(Category category)
           
 boolean insertProcessMapLink(Link link)
           
 void insertScheduleEvent(ScheduleEvent evt)
          Insert a ScheduleEvent instance
 boolean insertTaskGroupSign(java.lang.String taskID, java.lang.String groupSignID, long signTime)
          This method is used for insert into Task_GroupSign.
 boolean insertWebADMACL(WebADMACL webADMACL)
          Insert new WebADM access control policy.
 boolean isEnabledModule(java.lang.String moduleName)
          Returns the flag indicates whether a module is enabled.
 int isEnabledModule(java.lang.String moduleName, boolean isRetNum)
          Returns the available number of the module to be checked
 boolean isHalfHoliday(java.lang.String date)
          Check if the date is half-holiday.
 boolean isHalfHoliday(java.lang.String date, java.lang.String memID)
          Check if the date is half-holiday in user's calendar.
 boolean isHoliday(java.lang.String date)
          Check if the date is holiday.
 boolean isHoliday(java.lang.String date, java.lang.String memID)
          Check if the date is holiday.
 boolean isLayoutManager(java.lang.String memID, java.lang.String objID)
          Check Member is a Layout Manager or not
 boolean isLogined(java.lang.String user)
          Check specified user is logined or not.
 boolean isOrgManager(java.lang.String memID)
           
 boolean isRestSat(java.lang.String date)
          Check if the date is a saturday and a holiday.
 boolean isSuperuser(java.lang.String memID)
           
 boolean isSuperuser(java.lang.String memID, java.lang.String comID)
           
 boolean isUnitExistUserWorkingDay(java.lang.String id, java.lang.String calendarID)
          check the unit has been set calendar or not
 boolean isWorkday(java.lang.String date, java.lang.String memID)
          Check if the date is work day in user's calendar.
 void kickout(java.lang.String user)
          Kick a client off from server.
 void kickoutAdmin(java.lang.String user)
          Kick an adminstration tools client off from server.
 java.util.HashMap login(java.lang.String user, java.lang.String pass)
          Client login to server.
 java.util.Map login(java.lang.String user, java.lang.String pass, boolean toCheckDup)
          To authenticate users (it doesn't register).
 java.util.HashMap loginAdmin(java.lang.String user, java.lang.String pass)
          An adminstration tools client login to server.
 java.util.HashMap loginSSO(java.lang.String user)
           
 void logout(java.lang.String user)
          Client logout from server.
 void logoutAdmin(java.lang.String user)
          An adminstration tools client logout from server.
 boolean mustReassignDeputiedTask(java.lang.String memID)
           
 boolean newBBSBoard(BBSBoard bbsBoard)
          New a bbs board in db with a new board object
 boolean newBBSCategory(EIPBBSCategory bbsCategory)
           
 boolean portalImageMakeOrder(java.util.HashMap map)
          update the EIP_IMAGE order of a image
 boolean postBBSMsg(BBSMessage msg)
          Post a bbs message in db with a new message object
 void printArtifactList(java.util.Vector artInsIDList, java.lang.String printMode, java.lang.String pageMode, java.lang.String viewState, boolean bRunScript, int top, int down, int left, int right, int orientation)
          This method is using for batch printing(in pase server side) artifact instances.
 void printArtifactList(java.util.Vector artInsIDList, java.lang.String printMode, java.lang.String pageMode, java.lang.String viewState, boolean bRunScript, int width, int height, int top, int down, int left, int right, int orientation, boolean popUp)
          This method is using for batch printing(in pase server side) artifact instances.
 void reassignDeputyTask(java.lang.String loginID)
          Reassign the deputy task with the specified login id.
 boolean reflushProcessManager()
          Cron-related functions, reflush cron-task schedule in Server.
 void registerAdmin(java.lang.String user, AdminRMI client)
          Register an adminstration tools client callback to server.
 void registerClient(java.lang.String user, ClientRMI client)
          Register a client callback to server.
 void registerClientForEIP(java.lang.String user, ClientRMI client)
          Register a client callback for eip to server.
 boolean registerDeviceRegId(java.lang.String memId, java.lang.String _uuid, java.lang.String regId)
          Register smart device's regId to server.
 void releaseTaskCompleteLock(java.lang.String tskID)
          Release a task lock in taskCompletingMap (taskCompletingMap is used to block duplicate task completing).
 boolean removeAllSSO()
          for System clear all SSO record
 void removeRegisterClientForEIP(java.lang.String user)
          Client cancel register for EIP from server.
 void removeScheduleEvent(java.lang.String id)
          Remove a ScheduleEvent instance
 boolean removeSSORecord(java.lang.String memID, java.lang.String sessionID)
          remove sso record according memID or web sessionID
 boolean resetDeputyAndDeputyState(java.lang.String p_MyMemID, java.lang.String p_DeputyMemID, boolean p_DeputyState)
          Refresh deputy data in cache.
 boolean resetMemberDelegation(MemberRecord memberRecord)
          Refresh deputy data in cache
 void saveCalendar(com.flowring.schedule.UserCalendar cal)
          Save UserCalendar.
 void saveSchedule(java.util.Vector hdays, java.util.Vector h_days, java.util.Vector wdays, int[] w)
          Save holiday schedule.
 java.util.Vector searchData(pe.tse.SearchCondition cond)
          Search data, depending on input search conditions
 int searchDataCount(pe.tse.SearchCondition cond)
          Search data count, depending on input search conditions
 java.util.Vector searchScheduleEvent(ScheduleSearchCondition cond)
          Search Schedule Events.
 void sendHTMLMail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String text)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String htmlText, java.util.Vector fileList)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String htmlText, java.util.Vector fileList, java.util.HashMap auth)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String htmlText, java.util.Vector fileList)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, java.lang.String tskID)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, Task task)
          Send E-Mail through internet, using HTML format.
 void sendHTMLMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, Task task, java.lang.String script)
          Send E-Mail through internet, using HTML format.
 void sendMail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String text)
          Send E-Mail through internet.
 void sendMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text)
          Send E-Mail through internet.
 void sendMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList)
          Send E-Mail through internet.
 void sendMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String htmlText, java.util.Vector fileList, java.util.HashMap auth)
          Send E-Mail through internet.
 void sendMail(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String text, java.util.Vector fileList)
          Send E-Mail through internet.
 void sendMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, java.lang.String tskID)
          Send E-Mail through internet.
 void sendMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, Task task)
          Send E-Mail through internet.
 void sendMailExt(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String text, java.util.Vector fileList, Task task, java.lang.String script)
          Send E-Mail through internet.
 boolean sendPASEMessage(PASEMessage msg)
          Send a message through message-system built in Agentflow
 void sendShortMessageToAdminAll(java.lang.String msg, java.lang.String fromMemID)
          Send a short message to all administration tool users.
 void sendShortMessageToAdminUser(java.lang.String msg, java.lang.String fromMemID, java.lang.String toMemID)
          Send a short message to a specified administration tool user.
 void sendShortMessageToAll(java.lang.String msg, java.lang.String fromMemID)
          Send a short message to all Agenda users.
 void sendShortMessageToUser(java.lang.String msg, java.lang.String fromMemID, java.lang.String toMemID)
          Send a short message to a specified Agenda user.
 boolean setCompanyAnnouncementBoard(java.util.Map companyAnnouncementBoardMap)
           
 void setGlobals(java.lang.String rootTaskID, java.util.HashMap args)
          Set global variables for a rootTask.
 void setProcessMapDao(com.flowring.dao.ProcessMapDao processMapDao)
           
 void setRmiServer(RMIServer rmiServer)
           
 boolean shutdownServer()
          Stop server.
 boolean startServer()
          Start server.
 boolean suspendBBSBoard(java.lang.String bbsBoardID)
          Suspend a bbs board in db with a board ID
 boolean swapProcessMapCategory(Category category1, Category category2)
           
 boolean swapProcessMapLink(Link link1, Link link2)
           
 boolean updateBBSBoard(BBSBoard bbsBoard)
          Update a bbs board in db with a board object
 boolean updateBBSCategory(EIPBBSCategory cat)
           
 boolean updateBBSMessage(BBSMessage msg)
           
 boolean updateEmailTemplate(pe.pde.EmailTemplate template)
           
 boolean updateFreqMessage(FreqMessage msg)
           
 boolean updateLoginInfo(LoginInfo loginInfo)
           
 boolean updateMbrSignGroup(java.lang.String mbrId, AFGroup group)
           
 boolean updatePASEMessage(PASEMessage msg)
          Update a message in database
 boolean updatePaseSystemConfig(java.util.Map<java.lang.String,java.lang.Object> configMap)
           
 boolean updatePaseSystemConfig(java.lang.String id, java.lang.String value)
           
 boolean updateProcessMapCategory(Category category)
           
 boolean updateProcessMapLink(Link link)
           
 void updateScheduleEvent(ScheduleEvent evt)
          Update a ScheduleEvent instance
 boolean updateWebADMACL(WebADMACL webADMACL)
          Update the WebADM access control policy.
 java.util.HashMap userVerify(java.lang.String user, java.lang.String pass, boolean autoLogin)
          To verify user's loginID and password
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilityServiceImpl

public UtilityServiceImpl()
Method Detail

setRmiServer

public void setRmiServer(RMIServer rmiServer)

startServer

public boolean startServer()
Description copied from interface: UtilityService
Start server.

Specified by:
startServer in interface UtilityService
Returns:
true if successful; false otherwise.

shutdownServer

public boolean shutdownServer()
Description copied from interface: UtilityService
Stop server.

Specified by:
shutdownServer in interface UtilityService
Returns:
true if successful; false otherwise.

getServerStatus

public java.util.HashMap getServerStatus()
Description copied from interface: UtilityService
Get server status.

Specified by:
getServerStatus in interface UtilityService
Returns:
the server information.

getServerTime

public long getServerTime()
Description copied from interface: UtilityService
Get server time.

Specified by:
getServerTime in interface UtilityService
Returns:
the server time.

getServerEnv

public SerRuntimeEnv getServerEnv()
Description copied from interface: UtilityService
Get the server runtime environment

Specified by:
getServerEnv in interface UtilityService
Returns:
the server runtime environment.

getProductInfo

public java.util.HashMap getProductInfo()
Description copied from interface: UtilityService
Get product information.

Specified by:
getProductInfo in interface UtilityService
Returns:
the server product information.

clearCache

public void clearCache()
Description copied from interface: UtilityService
Clear server cache.

Specified by:
clearCache in interface UtilityService

clearCache

public void clearCache(java.lang.String type)
Description copied from interface: UtilityService
Clear server cache with the specified cache type.

Specified by:
clearCache in interface UtilityService
Parameters:
type - the specified type.(UtilityService.CACHE_TYPE_ALL, UtilityService.CACHE_TYPE_ARTIFACT, UtilityService.CACHE_TYPE_PROCESS, UtilityService.CACHE_TYPE_ORG, UtilityService.CACHE_TYPE_TASK)

clearCache

public void clearCache(java.lang.String type,
                       java.util.Vector parameter)
Description copied from interface: UtilityService
Clear server cache with the specified cache type with parameters.

Specified by:
clearCache in interface UtilityService
Parameters:
type - the specified type.(UtilityService.CACHE_TYPE_ALL, UtilityService.CACHE_TYPE_ARTIFACT, UtilityService.CACHE_TYPE_PROCESS, UtilityService.CACHE_TYPE_ORG, UtilityService.CACHE_TYPE_TASK, UtilityService.CACHE_TYPE_ORG_ASSIGNED_ID)
parameter - the parameter matches the specified type.

reflushProcessManager

public boolean reflushProcessManager()
Description copied from interface: UtilityService
Cron-related functions, reflush cron-task schedule in Server.

Specified by:
reflushProcessManager in interface UtilityService
Returns:
true if successful; false otherwise.

resetDeputyAndDeputyState

public boolean resetDeputyAndDeputyState(java.lang.String p_MyMemID,
                                         java.lang.String p_DeputyMemID,
                                         boolean p_DeputyState)
Description copied from interface: UtilityService
Refresh deputy data in cache.

Specified by:
resetDeputyAndDeputyState in interface UtilityService
Parameters:
p_MyMemID - the given MemberRecord ID.
p_DeputyMemID - the given Deputy MemberRecord ID.
p_DeputyState - check if deputy state is activated.
Returns:
true if successful; false otherwise.

resetMemberDelegation

public boolean resetMemberDelegation(MemberRecord memberRecord)
Description copied from interface: UtilityService
Refresh deputy data in cache

Specified by:
resetMemberDelegation in interface UtilityService
Returns:
true if successful; false otherwise.
See Also:
MemberRecord

getDeputiedOfMember

public java.util.Vector getDeputiedOfMember(java.lang.String memID)
Description copied from interface: UtilityService
Gets a member list that the given member is each one of the list member deputy. For a example:
     Supposing member B, C, D has deputed their personal tasks to member A.
     And if member C deputy state is closed, the others are activated. Now
     you want to know whose deputy is member A and whom deputy state is
     activated.

     Here you can know the answer by using this method with a given member
     id of member A. It will return the
 
  MemberRecord
 
   of each member B, D in
     a
 
  Vector
 
   whose deputy state is activated.
 

Specified by:
getDeputiedOfMember in interface UtilityService
Returns:
each one element of the Vector is a MemberRecord. Returns a Vector with zero size if there didn't have any member. @

reassignDeputyTask

public void reassignDeputyTask(java.lang.String loginID)
Description copied from interface: UtilityService
Reassign the deputy task with the specified login id.

Specified by:
reassignDeputyTask in interface UtilityService
Parameters:
loginID - the specified login id

mustReassignDeputiedTask

public boolean mustReassignDeputiedTask(java.lang.String memID)
Specified by:
mustReassignDeputiedTask in interface UtilityService

checkRegisterEIPClient

public java.util.HashMap checkRegisterEIPClient(java.lang.String user,
                                                java.lang.String pass)
Description copied from interface: UtilityService
check UniPortal register to server.

Specified by:
checkRegisterEIPClient in interface UtilityService
Parameters:
user - Client User Name.
pass - Client User password.
Returns:
the login result.

login

public java.util.HashMap login(java.lang.String user,
                               java.lang.String pass)
Description copied from interface: UtilityService
Client login to server.

Specified by:
login in interface UtilityService
Parameters:
user - Client User Name.
pass - Client User password.
Returns:
the login result.

login

public java.util.Map login(java.lang.String user,
                           java.lang.String pass,
                           boolean toCheckDup)
Description copied from interface: UtilityService
To authenticate users (it doesn't register).

Specified by:
login in interface UtilityService
Parameters:
user - client user name
pass - client user password; it should be MD5-encrypted if AFDB authentication is used; otherwise it should be clear-text.
toCheckDup - whether this funtion should deny duplicate login (already registered users)
Returns:
a Map. key/value are described as follows (key-name:value-type, description) "retValue":Boolean, true if the task start successfully, false otherwise. "reason":String, µn¤J¥¢±Ñªº­ì¦]. multi:Boolean(), true multi-login

logout

public void logout(java.lang.String user)
Description copied from interface: UtilityService
Client logout from server.

Specified by:
logout in interface UtilityService
Parameters:
user - Client User Name.

removeRegisterClientForEIP

public void removeRegisterClientForEIP(java.lang.String user)
Description copied from interface: UtilityService
Client cancel register for EIP from server.

Specified by:
removeRegisterClientForEIP in interface UtilityService
Parameters:
user - Client User Name.

isLogined

public boolean isLogined(java.lang.String user)
Description copied from interface: UtilityService
Check specified user is logined or not.

Specified by:
isLogined in interface UtilityService
Parameters:
user - Client User Name.

kickout

public void kickout(java.lang.String user)
Description copied from interface: UtilityService
Kick a client off from server.

Specified by:
kickout in interface UtilityService
Parameters:
user - Client User Name.

loginSSO

public java.util.HashMap loginSSO(java.lang.String user)
Specified by:
loginSSO in interface UtilityService

registerClient

public void registerClient(java.lang.String user,
                           ClientRMI client)
Description copied from interface: UtilityService
Register a client callback to server.

Specified by:
registerClient in interface UtilityService
Parameters:
user - Client User Name.
client - a ClientRMI instance.

registerClientForEIP

public void registerClientForEIP(java.lang.String user,
                                 ClientRMI client)
Description copied from interface: UtilityService
Register a client callback for eip to server.

Specified by:
registerClientForEIP in interface UtilityService
Parameters:
user - Client User Name.
client - a ClientRMI instance.

initAgenda

public java.util.HashMap initAgenda(java.lang.String user)
Description copied from interface: UtilityService
init Agenda

Specified by:
initAgenda in interface UtilityService
Parameters:
user - Client User Name.
Returns:
the initialization result.

userVerify

public java.util.HashMap userVerify(java.lang.String user,
                                    java.lang.String pass,
                                    boolean autoLogin)
Description copied from interface: UtilityService
To verify user's loginID and password

Specified by:
userVerify in interface UtilityService
Returns:
@

loginAdmin

public java.util.HashMap loginAdmin(java.lang.String user,
                                    java.lang.String pass)
Description copied from interface: UtilityService
An adminstration tools client login to server.

Specified by:
loginAdmin in interface UtilityService
Parameters:
user - Admin User Name.
pass - Admin User password.
Returns:
the login result.

logoutAdmin

public void logoutAdmin(java.lang.String user)
Description copied from interface: UtilityService
An adminstration tools client logout from server.

Specified by:
logoutAdmin in interface UtilityService
Parameters:
user - Admin User Name.

kickoutAdmin

public void kickoutAdmin(java.lang.String user)
Description copied from interface: UtilityService
Kick an adminstration tools client off from server.

Specified by:
kickoutAdmin in interface UtilityService
Parameters:
user - Admin User Name.

registerAdmin

public void registerAdmin(java.lang.String user,
                          AdminRMI client)
Description copied from interface: UtilityService
Register an adminstration tools client callback to server.

Specified by:
registerAdmin in interface UtilityService
Parameters:
user - Admin User Name.
client - a AdminRMI instance.

changePassword

public boolean changePassword(java.lang.String mbrID,
                              java.lang.String oldPwd,
                              java.lang.String newPwd)
Description copied from interface: UtilityService
The method is used to change the password of some member. The changing is performed only while the original password is correct.

Specified by:
changePassword in interface UtilityService
Parameters:
mbrID - the given MemberID
oldPwd - original password
newPwd - new password
Returns:
true if successful; false otherwise.

changePassword

public boolean changePassword(java.lang.String loginName,
                              java.lang.String newPwd)
Description copied from interface: UtilityService
The method is used to change the password of some member. The changing is performed only while the original password is correct.

Specified by:
changePassword in interface UtilityService
newPwd - new password
Returns:
true if successful; false otherwise.

searchData

public java.util.Vector searchData(pe.tse.SearchCondition cond)
Description copied from interface: UtilityService
Search data, depending on input search conditions

Specified by:
searchData in interface UtilityService
Parameters:
cond - search conditions
Returns:
the searched result.

searchDataCount

public int searchDataCount(pe.tse.SearchCondition cond)
Description copied from interface: UtilityService
Search data count, depending on input search conditions

Specified by:
searchDataCount in interface UtilityService
Parameters:
cond - search conditions
Returns:
the searched count.

isHoliday

public boolean isHoliday(java.lang.String date)
Description copied from interface: UtilityService
Check if the date is holiday.

Specified by:
isHoliday in interface UtilityService
Parameters:
date - the given date string
Returns:
true if confirmed.

isHoliday

public boolean isHoliday(java.lang.String date,
                         java.lang.String memID)
Description copied from interface: UtilityService
Check if the date is holiday.

Specified by:
isHoliday in interface UtilityService
Parameters:
date - the given date string
memID - the given member id string
Returns:
true if confirmed.

isRestSat

public boolean isRestSat(java.lang.String date)
Description copied from interface: UtilityService
Check if the date is a saturday and a holiday.

Specified by:
isRestSat in interface UtilityService
Parameters:
date - the given date string
Returns:
true if confirmed.

isHalfHoliday

public boolean isHalfHoliday(java.lang.String date)
Description copied from interface: UtilityService
Check if the date is half-holiday.

Specified by:
isHalfHoliday in interface UtilityService
Parameters:
date - the given date string
Returns:
true if confirmed.

isHalfHoliday

public boolean isHalfHoliday(java.lang.String date,
                             java.lang.String memID)
Description copied from interface: UtilityService
Check if the date is half-holiday in user's calendar.

Specified by:
isHalfHoliday in interface UtilityService
Parameters:
date - the given date string
memID - the given member id string
Returns:
true if confirmed.

isWorkday

public boolean isWorkday(java.lang.String date,
                         java.lang.String memID)
Description copied from interface: UtilityService
Check if the date is work day in user's calendar.

Specified by:
isWorkday in interface UtilityService
Parameters:
date - the given date string
memID - the given member id string
Returns:
true if confirmed.

initHoliday

public void initHoliday()
Description copied from interface: UtilityService
Initial hoilday schedule, ask server to load schedule from settings.

Specified by:
initHoliday in interface UtilityService

getWeek

public int[] getWeek()
Description copied from interface: UtilityService
get the work days of a week in system's default calendar.

Specified by:
getWeek in interface UtilityService
Returns:
int[] weekDays. Each element in the array is integer: 0 is rest day, 1 is half work day and 2 is work day.

getWeek

public int[] getWeek(java.lang.String memID)
Description copied from interface: UtilityService
get the work days of a week in member's calendar.

Specified by:
getWeek in interface UtilityService
Returns:
int[] weekDays. Each element in the array is integer: 0 is rest day, 1 is half work day and 2 is work day.

getHolidays

public java.util.Vector getHolidays()
Description copied from interface: UtilityService
get holidays in system's default calendar.

Specified by:
getHolidays in interface UtilityService
Returns:
Vector holidayLists. Each element is the Vector is a Date holiday.

getHolidays

public java.util.Vector getHolidays(java.lang.String memID)
Description copied from interface: UtilityService
get holidays in member's calendar.

Specified by:
getHolidays in interface UtilityService
Returns:
Vector holidayLists. Each element is the Vector is a Date holiday.

getHalfHolidays

public java.util.Vector getHalfHolidays()
Description copied from interface: UtilityService
get half holidays in system's default calendar.

Specified by:
getHalfHolidays in interface UtilityService
Returns:
Vector halfHolidayLists. Each element is the Vector is a Date half holiday.

getHalfHolidays

public java.util.Vector getHalfHolidays(java.lang.String memID)
Description copied from interface: UtilityService
get half holidays in member's calendar.

Specified by:
getHalfHolidays in interface UtilityService
Returns:
Vector halfHolidayLists. Each element is the Vector is a Date half holiday.

getWorkdays

public java.util.Vector getWorkdays()
Description copied from interface: UtilityService
get work days in system's default calendar.

Specified by:
getWorkdays in interface UtilityService
Returns:
Vector workDayList. Each element is the Vector is Date work day.

getWorkdays

public java.util.Vector getWorkdays(java.lang.String memID)
Description copied from interface: UtilityService
get work days in member's calendar.

Specified by:
getWorkdays in interface UtilityService
Returns:
Vector workDayList. Each element is the Vector is Date work day.

saveSchedule

public void saveSchedule(java.util.Vector hdays,
                         java.util.Vector h_days,
                         java.util.Vector wdays,
                         int[] w)
Description copied from interface: UtilityService
Save holiday schedule.

Specified by:
saveSchedule in interface UtilityService
Parameters:
hdays - the given holiday date list
h_days - the given half-holiday date list
wdays - the given work days date list
w - the given workdays arragement for weekdays

getCalendar

public com.flowring.schedule.UserCalendar getCalendar(java.lang.String id)
Description copied from interface: UtilityService
Get UserCalendar by id.

Specified by:
getCalendar in interface UtilityService
Parameters:
id - String
Returns:
UserCalendar

saveCalendar

public void saveCalendar(com.flowring.schedule.UserCalendar cal)
Description copied from interface: UtilityService
Save UserCalendar.

Specified by:
saveCalendar in interface UtilityService
Parameters:
cal - UserCalendar

getAllUserCalendar

public java.util.List getAllUserCalendar()
Description copied from interface: UtilityService
get all user calendar

Specified by:
getAllUserCalendar in interface UtilityService
Returns:
List

deleteUserCalendar

public void deleteUserCalendar(java.lang.String calendarID)
Description copied from interface: UtilityService
delete user calendar with specified calendar id

Specified by:
deleteUserCalendar in interface UtilityService

isUnitExistUserWorkingDay

public boolean isUnitExistUserWorkingDay(java.lang.String id,
                                         java.lang.String calendarID)
Description copied from interface: UtilityService
check the unit has been set calendar or not

Specified by:
isUnitExistUserWorkingDay in interface UtilityService
Returns:
true if the unit has been set calendar; else false.

getUserCalendarByUser

public com.flowring.schedule.UserCalendar getUserCalendarByUser(java.lang.String id)
Description copied from interface: UtilityService
get user calendar by user id(MEMxxx, ROLxxx, DEPxxx, COMxxx)

Specified by:
getUserCalendarByUser in interface UtilityService
Returns:
UserCalendar

getUserCalendarMap

public java.util.HashMap getUserCalendarMap(java.lang.String memID)
Description copied from interface: UtilityService
get member's all UserCalendars corresponding to every role;

Specified by:
getUserCalendarMap in interface UtilityService
Returns:
HashMap calendarMap

getServerGMT

public double getServerGMT()
Description copied from interface: UtilityService
get the GMT of server

Specified by:
getServerGMT in interface UtilityService
Returns:
GMT

sendPASEMessage

public boolean sendPASEMessage(PASEMessage msg)
Description copied from interface: UtilityService
Send a message through message-system built in Agentflow

Specified by:
sendPASEMessage in interface UtilityService
Parameters:
msg - the deliverable message
Returns:
true if successful; false otherwise.
See Also:
PASEMessage

updatePASEMessage

public boolean updatePASEMessage(PASEMessage msg)
Description copied from interface: UtilityService
Update a message in database

Specified by:
updatePASEMessage in interface UtilityService
Parameters:
msg - the given PASEMessage
Returns:
true if successful; false otherwise.
See Also:
PASEMessage

deletePASEMessage

public boolean deletePASEMessage(PASEMessage msg)
Description copied from interface: UtilityService
Delete a message from database

Specified by:
deletePASEMessage in interface UtilityService
Parameters:
msg - the given message. msg.SendID, msg.RecID, msg.SendTime are used as key to delete the message.
Returns:
true if successful; false otherwise.
See Also:
PASEMessage

deletePASEMessageByID

public boolean deletePASEMessageByID(java.lang.String msgID)
Description copied from interface: UtilityService
Delete a message from database

Specified by:
deletePASEMessageByID in interface UtilityService
Parameters:
msgID - the given MessageID
Returns:
true if successful; false otherwise.
See Also:
PASEMessage

getSentPASEMessageOfMember

public java.util.Vector getSentPASEMessageOfMember(java.lang.String mID)
Description copied from interface: UtilityService
Get a member's sent messages

Specified by:
getSentPASEMessageOfMember in interface UtilityService
Parameters:
mID - the given MemberID
Returns:
result list(each element in Vector are PASEMessage)
See Also:
PASEMessage

getDraftPASEMessageOfMember

public java.util.Vector getDraftPASEMessageOfMember(java.lang.String mID)
Description copied from interface: UtilityService
Get a member's draft messages

Specified by:
getDraftPASEMessageOfMember in interface UtilityService
Parameters:
mID - the given MemberID
Returns:
result list(each element in Vector are PASEMessage)
See Also:
PASEMessage

checkMessageAttachFileIfAnyoneUse

public boolean checkMessageAttachFileIfAnyoneUse(java.lang.String attachFileInfo)
Description copied from interface: UtilityService
Check the message file folders are there any other message to use

Specified by:
checkMessageAttachFileIfAnyoneUse in interface UtilityService
Parameters:
attachFileInfo - the message attachFileInfo
Returns:
true this file there are other message to use; false otherwise.

getPASEMessageOfMember

public java.util.Vector getPASEMessageOfMember(java.lang.String mID)
Description copied from interface: UtilityService
Get a member's messages

Specified by:
getPASEMessageOfMember in interface UtilityService
Parameters:
mID - the given MemberID
Returns:
result list(each element in Vector are PASEMessage)
See Also:
PASEMessage

getLatestPASEMessageOfMember

public java.util.Vector getLatestPASEMessageOfMember(int count,
                                                     java.lang.String mID)
Description copied from interface: UtilityService
Gets latest message of the member

Specified by:
getLatestPASEMessageOfMember in interface UtilityService
Parameters:
count - a count
mID - the member ID.
Returns:
the latest unread PASEMessage list of the member(each element in Vector are instance of PASEMessage).
See Also:
PASEMessage

getLatestUnReadPASEMessageOfMember

public java.util.Vector getLatestUnReadPASEMessageOfMember(int count,
                                                           java.lang.String mID)
Description copied from interface: UtilityService
Gets latest unread message of the member

Specified by:
getLatestUnReadPASEMessageOfMember in interface UtilityService
Parameters:
count - a count
mID - the member ID.
Returns:
the latest unread PASEMessage list of the member(each element in Vector are instance of PASEMessage).
See Also:
PASEMessage

sendMail

public void sendMail(java.lang.String from,
                     java.lang.String to,
                     java.lang.String subject,
                     java.lang.String text)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
subject - the "subject" field of E-Mail
text - the content of E-Mail

sendMail

public void sendMail(java.lang.String from,
                     java.lang.String to,
                     java.lang.String cc,
                     java.lang.String subject,
                     java.lang.String text)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail

sendHTMLMail

public void sendHTMLMail(java.lang.String from,
                         java.lang.String to,
                         java.lang.String cc,
                         java.lang.String subject,
                         java.lang.String text)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail

sendHTMLMail

public void sendHTMLMail(java.lang.String from,
                         java.lang.String to,
                         java.lang.String subject,
                         java.lang.String text)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
subject - the "subject" field of E-Mail
text - the content of E-Mail

sendMail

public void sendMail(java.lang.String from,
                     java.lang.String to,
                     java.lang.String cc,
                     java.lang.String subject,
                     java.lang.String text,
                     java.util.Vector fileList)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list

sendMail

public void sendMail(java.lang.String from,
                     java.lang.String to,
                     java.lang.String subject,
                     java.lang.String text,
                     java.util.Vector fileList)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list

sendHTMLMail

public void sendHTMLMail(java.lang.String from,
                         java.lang.String to,
                         java.lang.String cc,
                         java.lang.String subject,
                         java.lang.String htmlText,
                         java.util.Vector fileList)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
htmlText - the content of E-Mail
fileList - the attached file name list

sendHTMLMail

public void sendHTMLMail(java.lang.String from,
                         java.lang.String to,
                         java.lang.String subject,
                         java.lang.String htmlText,
                         java.util.Vector fileList)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
subject - the "subject" field of E-Mail
htmlText - the content of E-Mail
fileList - the attached file name list

sendMail

public void sendMail(java.lang.String from,
                     java.lang.String to,
                     java.lang.String cc,
                     java.lang.String subject,
                     java.lang.String htmlText,
                     java.util.Vector fileList,
                     java.util.HashMap auth)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
fileList - the attached file name list
auth - the login information of the mail server. {"username"=, "password"=}

sendHTMLMail

public void sendHTMLMail(java.lang.String from,
                         java.lang.String to,
                         java.lang.String cc,
                         java.lang.String subject,
                         java.lang.String htmlText,
                         java.util.Vector fileList,
                         java.util.HashMap auth)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMail in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
fileList - the attached file name list
auth - the login information of the mail server. {"username"=, "password"=}

sendMailExt

public void sendMailExt(java.lang.String from,
                        java.lang.String to,
                        java.lang.String cc,
                        java.lang.String subject,
                        java.lang.String text,
                        java.util.Vector fileList,
                        java.lang.String tskID)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list
tskID - the designated task ID to execute

sendHTMLMailExt

public void sendHTMLMailExt(java.lang.String from,
                            java.lang.String to,
                            java.lang.String cc,
                            java.lang.String subject,
                            java.lang.String text,
                            java.util.Vector fileList,
                            java.lang.String tskID)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list
tskID - the designated task ID to execute

sendMailExt

public void sendMailExt(java.lang.String from,
                        java.lang.String to,
                        java.lang.String cc,
                        java.lang.String subject,
                        java.lang.String text,
                        java.util.Vector fileList,
                        Task task)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list
task - the designated task to execute

sendMailExt

public void sendMailExt(java.lang.String from,
                        java.lang.String to,
                        java.lang.String cc,
                        java.lang.String subject,
                        java.lang.String text,
                        java.util.Vector fileList,
                        Task task,
                        java.lang.String script)
Description copied from interface: UtilityService
Send E-Mail through internet.

Specified by:
sendMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail.
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail.
cc - the "cc" field of E-Mail address.
subject - the "subject" field of E-Mail.
text - the content of E-Mail.
fileList - the attached file name list. The file name is based on PASE Server.
task - the designated task to execute.
script - the designated script to execute.

sendHTMLMailExt

public void sendHTMLMailExt(java.lang.String from,
                            java.lang.String to,
                            java.lang.String cc,
                            java.lang.String subject,
                            java.lang.String text,
                            java.util.Vector fileList,
                            Task task)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail
cc - the "cc" field of E-Mail address
subject - the "subject" field of E-Mail
text - the content of E-Mail
fileList - the attached file name list
task - the designated task to execute

sendHTMLMailExt

public void sendHTMLMailExt(java.lang.String from,
                            java.lang.String to,
                            java.lang.String cc,
                            java.lang.String subject,
                            java.lang.String text,
                            java.util.Vector fileList,
                            Task task,
                            java.lang.String script)
Description copied from interface: UtilityService
Send E-Mail through internet, using HTML format.

Specified by:
sendHTMLMailExt in interface UtilityService
Parameters:
from - the "from" filed of E-Mail.
to - the "to" field of E-Mail address(format:aaa@x.y.z), used as the destination of the E-Mail.
cc - the "cc" field of E-Mail address.
subject - the "subject" field of E-Mail.
text - the content of E-Mail.
fileList - the attached file name list. The file name is based on PASE Server.
task - the designated task to execute.
script - the designated script to execute.

getAllBBSBoard

public java.util.Vector getAllBBSBoard()
Description copied from interface: UtilityService
Get all bbs boards, including active and suspended

Specified by:
getAllBBSBoard in interface UtilityService
Returns:
result list(each element in Vector are BBSBoard)
See Also:
BBSBoard

getAllBBSBoard

public java.util.Vector getAllBBSBoard(java.lang.String cid)
Specified by:
getAllBBSBoard in interface UtilityService

getBBSBoard

public java.util.Vector getBBSBoard()
Description copied from interface: UtilityService
Get bbs boards, only active

Specified by:
getBBSBoard in interface UtilityService
Returns:
result list(each element in Vector are BBSBoard)
See Also:
BBSBoard

getBBSBoardByOwnerLoginIDAndRangeIDs

public java.util.Vector getBBSBoardByOwnerLoginIDAndRangeIDs(java.lang.String ownerLoginID,
                                                             java.util.Vector rangeIDList)
Description copied from interface: UtilityService
Gets bbs boards by owner's login ID and rangeID list.

Specified by:
getBBSBoardByOwnerLoginIDAndRangeIDs in interface UtilityService
Returns:
the BBS board list(each element in Vector are instance of BBSBoard).

getBBSBoardByRangeID

public java.util.Vector getBBSBoardByRangeID(java.util.Vector rangeIDList)
Description copied from interface: UtilityService
Gets bbs boards by member's role.

Specified by:
getBBSBoardByRangeID in interface UtilityService
Returns:
the BBS board list(each element in Vector are instance of BBSBoard).

getBBSBoardIDByRangeID

public java.util.Vector getBBSBoardIDByRangeID(java.util.Vector rangeIDList)
Description copied from interface: UtilityService
Gets bbs boards id by member's role.

Specified by:
getBBSBoardIDByRangeID in interface UtilityService
Returns:
the BBS board list(each element in Vector are instance of BBSBoard).

getAllBBSBoardByComID

public java.util.Vector getAllBBSBoardByComID(java.lang.String comID)
Description copied from interface: UtilityService
Gets all bbs boards(include the announcement board) by company id.

Specified by:
getAllBBSBoardByComID in interface UtilityService
Returns:
the BBS board list(each element in Vector are instance of BBSBoard).

getBBSBoard

public BBSBoard getBBSBoard(java.lang.String bbsBoardID)
Description copied from interface: UtilityService
Get the bbs board with the specific ID

Specified by:
getBBSBoard in interface UtilityService
Parameters:
bbsBoardID - the given BBSBoardID
Returns:
the board
See Also:
BBSBoard

getCompanyAnnouncementBoard

public java.util.Map getCompanyAnnouncementBoard()
Specified by:
getCompanyAnnouncementBoard in interface UtilityService

setCompanyAnnouncementBoard

public boolean setCompanyAnnouncementBoard(java.util.Map companyAnnouncementBoardMap)
Specified by:
setCompanyAnnouncementBoard in interface UtilityService

getAnnouncementCompanyName

public java.lang.String getAnnouncementCompanyName(java.lang.String boardID)
Specified by:
getAnnouncementCompanyName in interface UtilityService

newBBSBoard

public boolean newBBSBoard(BBSBoard bbsBoard)
Description copied from interface: UtilityService
New a bbs board in db with a new board object

Specified by:
newBBSBoard in interface UtilityService
Parameters:
bbsBoard - the given BBSBoard
Returns:
true if successful; false otherwise.
See Also:
BBSBoard

newBBSCategory

public boolean newBBSCategory(EIPBBSCategory bbsCategory)
Specified by:
newBBSCategory in interface UtilityService

suspendBBSBoard

public boolean suspendBBSBoard(java.lang.String bbsBoardID)
Description copied from interface: UtilityService
Suspend a bbs board in db with a board ID

Specified by:
suspendBBSBoard in interface UtilityService
Parameters:
bbsBoardID - the given BBSBoardID
Returns:
true if successful; false otherwise.
See Also:
BBSBoard

activeBBSBoard

public boolean activeBBSBoard(java.lang.String bbsBoardID)
Description copied from interface: UtilityService
Active a bbs board in db with a board ID

Specified by:
activeBBSBoard in interface UtilityService
Parameters:
bbsBoardID - the given BBSBoardID
Returns:
true if successful; false otherwise.
See Also:
BBSBoard

deleteBBSBoard

public boolean deleteBBSBoard(java.lang.String bbsBoardID)
Description copied from interface: UtilityService
Delete a bbs board in db with a board ID

Specified by:
deleteBBSBoard in interface UtilityService
Parameters:
bbsBoardID - the given BBSBoardID
Returns:
true if successful; false otherwise.
See Also:
BBSBoard

updateBBSBoard

public boolean updateBBSBoard(BBSBoard bbsBoard)
Description copied from interface: UtilityService
Update a bbs board in db with a board object

Specified by:
updateBBSBoard in interface UtilityService
Parameters:
bbsBoard - the given BBSBoard
Returns:
true if successful; false otherwise.
See Also:
BBSBoard

getAllMessageOfMem

public java.util.Vector getAllMessageOfMem(java.lang.String boardID,
                                           java.lang.String memID)
Specified by:
getAllMessageOfMem in interface UtilityService

getAllBBSMessageCountOfMem

public int getAllBBSMessageCountOfMem(java.lang.String boardID,
                                      java.lang.String memID)
Specified by:
getAllBBSMessageCountOfMem in interface UtilityService

getBBSMsgList

public java.util.Vector getBBSMsgList(java.lang.String bbsBoard)
Description copied from interface: UtilityService
Get all messages with a board ID

Specified by:
getBBSMsgList in interface UtilityService
Parameters:
bbsBoard - the given BBSBoardID
Returns:
result list(each element in Vector are BBSMessage)
See Also:
BBSBoard, BBSMessage

getBBSMsgListInfo

public java.util.Vector getBBSMsgListInfo(java.lang.String bbsBoard,
                                          java.lang.String type,
                                          java.lang.String keyword)
Specified by:
getBBSMsgListInfo in interface UtilityService

getMessageInfo

public java.util.Vector getMessageInfo(java.lang.String msgId)
Specified by:
getMessageInfo in interface UtilityService

getCategoryList

public java.util.Vector getCategoryList(java.util.List rangeIDList)
Specified by:
getCategoryList in interface UtilityService

getCategoryList

public java.util.Vector getCategoryList(java.lang.String cid)
Specified by:
getCategoryList in interface UtilityService

getBBSCategory

public EIPBBSCategory getBBSCategory(java.lang.String cid)
Specified by:
getBBSCategory in interface UtilityService

getBBSSearchResult

public java.util.Vector getBBSSearchResult(java.lang.String bbsBoardID,
                                           java.lang.String keyword)
Description copied from interface: UtilityService
Get all messages with a keyword in some board.

Specified by:
getBBSSearchResult in interface UtilityService
Parameters:
bbsBoardID - the given BBSBoardID
keyword - the given keyword
Returns:
result list(each element in Vector are BBSMessage)
See Also:
BBSBoard, BBSMessage

updateBBSMessage

public boolean updateBBSMessage(BBSMessage msg)
Specified by:
updateBBSMessage in interface UtilityService

updateBBSCategory

public boolean updateBBSCategory(EIPBBSCategory cat)
Specified by:
updateBBSCategory in interface UtilityService

updatePaseSystemConfig

public boolean updatePaseSystemConfig(java.lang.String id,
                                      java.lang.String value)
Specified by:
updatePaseSystemConfig in interface UtilityService

updatePaseSystemConfig

public boolean updatePaseSystemConfig(java.util.Map<java.lang.String,java.lang.Object> configMap)
Specified by:
updatePaseSystemConfig in interface UtilityService

deleteBBSCategory

public boolean deleteBBSCategory(java.lang.String catID)
Specified by:
deleteBBSCategory in interface UtilityService

postBBSMsg

public boolean postBBSMsg(BBSMessage msg)
Description copied from interface: UtilityService
Post a bbs message in db with a new message object

Specified by:
postBBSMsg in interface UtilityService
Parameters:
msg - the given BBSMessage
Returns:
true if successful; false otherwise.
See Also:
BBSMessage

delBBSMsg

public boolean delBBSMsg(java.lang.String bbsBoardID,
                         java.lang.String msgID)
Description copied from interface: UtilityService
Delete a bbs message in db with a borad ID and a message ID

Specified by:
delBBSMsg in interface UtilityService
Parameters:
bbsBoardID - the given BBSBoardID
msgID - the given BBSMessageID
Returns:
true if successful; false otherwise.
See Also:
BBSBoard, BBSMessage

getBBSMsg

public BBSMessage getBBSMsg(java.lang.String msgID)
Description copied from interface: UtilityService
Get the bbs message with the specific ID

Specified by:
getBBSMsg in interface UtilityService
Parameters:
msgID - the given BBSMessageID
Returns:
the message
See Also:
BBSMessage

getBBSMsg

public BBSMessage getBBSMsg(java.lang.String msgID,
                            boolean isAddViewCount)
Description copied from interface: UtilityService
Get the bbs message with the specific ID

Specified by:
getBBSMsg in interface UtilityService
Parameters:
msgID - the given BBSMessageID
isAddViewCount - whether increasing view count
Returns:
the message
See Also:
BBSMessage

getLatestBBSMsg

public java.util.Vector getLatestBBSMsg(int count)
Description copied from interface: UtilityService
Get the latest BBS Message with the specific count number

Specified by:
getLatestBBSMsg in interface UtilityService
Parameters:
count - the given count
Returns:
result list(each element in Vector are BBSMessage)
See Also:
BBSMessage

getLatestBBSMsg

public java.util.Vector getLatestBBSMsg(int count,
                                        java.lang.String expBoardID)
Description copied from interface: UtilityService
Get the latest BBS Message with the specific count number

Specified by:
getLatestBBSMsg in interface UtilityService
Parameters:
count - the given count
Returns:
result list(each element in Vector are BBSMessage)
See Also:
BBSMessage

getLatestBBSMsgByMemID

public java.util.Vector getLatestBBSMsgByMemID(int count,
                                               java.util.Vector boardList)
Specified by:
getLatestBBSMsgByMemID in interface UtilityService

getLatestBBSEIPMsgByMemID

public java.util.Vector getLatestBBSEIPMsgByMemID(int count,
                                                  java.util.Vector boardList)
Specified by:
getLatestBBSEIPMsgByMemID in interface UtilityService

getLatestBBSEIPMsgByMemIDForPage

public java.util.Vector getLatestBBSEIPMsgByMemIDForPage(int beginIndex,
                                                         int count,
                                                         java.util.Vector boardIDList)
Specified by:
getLatestBBSEIPMsgByMemIDForPage in interface UtilityService

getLatestBBSEIPMsgByMemIDForPageCount

public int getLatestBBSEIPMsgByMemIDForPageCount(java.util.Vector boardIDList)
Specified by:
getLatestBBSEIPMsgByMemIDForPageCount in interface UtilityService

getLatestBBSGlobalEIPMsgByMemIDForPage

public java.util.Vector getLatestBBSGlobalEIPMsgByMemIDForPage(int beginIndex,
                                                               int count,
                                                               java.util.Vector boardList,
                                                               java.lang.String memID)
Specified by:
getLatestBBSGlobalEIPMsgByMemIDForPage in interface UtilityService

getBoardPermList

public java.util.Vector getBoardPermList(java.lang.String messageId)
Specified by:
getBoardPermList in interface UtilityService

insertBoardPerm

public boolean insertBoardPerm(java.lang.String messageId,
                               java.lang.String memId)
Specified by:
insertBoardPerm in interface UtilityService

deleteBoardPerm

public boolean deleteBoardPerm(java.lang.String messageId,
                               java.lang.String memId)
Specified by:
deleteBoardPerm in interface UtilityService

getBoardAdminList

public java.util.Vector getBoardAdminList()
Specified by:
getBoardAdminList in interface UtilityService

insertBoardAdmin

public boolean insertBoardAdmin(java.lang.String memId)
Specified by:
insertBoardAdmin in interface UtilityService

deleteBoardAdmin

public boolean deleteBoardAdmin(java.lang.String memId)
Specified by:
deleteBoardAdmin in interface UtilityService

getNewTaskID

public java.lang.String getNewTaskID()
Description copied from interface: UtilityService
Genrate a new task ID.

Specified by:
getNewTaskID in interface UtilityService
Returns:
true ID string.

getNewFileID

public java.lang.String getNewFileID()
Description copied from interface: UtilityService
Genrate a new file ID.

Specified by:
getNewFileID in interface UtilityService
Returns:
true ID string.

getNewArtInsID

public java.lang.String getNewArtInsID()
Description copied from interface: UtilityService
Genrate a new Artifact Instance ID.

Specified by:
getNewArtInsID in interface UtilityService
Returns:
true ID string.

getNewMsgID

public java.lang.String getNewMsgID()
Description copied from interface: UtilityService
Genrate a new PASEMessage ID.

Specified by:
getNewMsgID in interface UtilityService
Returns:
true ID string.

getNewBBSMsgID

public java.lang.String getNewBBSMsgID()
Description copied from interface: UtilityService
Genrate a new BBSMessage ID.

Specified by:
getNewBBSMsgID in interface UtilityService
Returns:
true ID string.

getNewWorkingDayTemplateId

public java.lang.String getNewWorkingDayTemplateId()
Description copied from interface: UtilityService
Generate a new WorkingDayTemplate ID.

Specified by:
getNewWorkingDayTemplateId in interface UtilityService
Returns:
new WorkingDayTemplate ID string.

getNewWorkingDayId

public java.lang.String getNewWorkingDayId()
Description copied from interface: UtilityService
Generate a new WorkingDay ID.

Specified by:
getNewWorkingDayId in interface UtilityService
Returns:
new WorlingDay ID string.

getNewOfficeHourId

public java.lang.String getNewOfficeHourId()
Description copied from interface: UtilityService
Generate a new OfficeHour ID.

Specified by:
getNewOfficeHourId in interface UtilityService
Returns:
new OfficeHour ID string.

getNewDayId

public java.lang.String getNewDayId()
Description copied from interface: UtilityService
Generate a new Day ID.

Specified by:
getNewDayId in interface UtilityService
Returns:
new day ID string.

getGlobals

public java.util.HashMap getGlobals(java.lang.String rootTaskID)
Description copied from interface: UtilityService
Get global variables for a rootTask.

Specified by:
getGlobals in interface UtilityService
Parameters:
rootTaskID - the given RootTask ID

setGlobals

public void setGlobals(java.lang.String rootTaskID,
                       java.util.HashMap args)
Description copied from interface: UtilityService
Set global variables for a rootTask.

Specified by:
setGlobals in interface UtilityService
Parameters:
rootTaskID - the given RootTask ID
args - the given variables HashMap

deleteGlobals

public boolean deleteGlobals(java.lang.String rootTaskID)
Description copied from interface: UtilityService
Delete global variables for a rootTask.

Specified by:
deleteGlobals in interface UtilityService
Parameters:
rootTaskID - the given RootTask ID
Returns:
true if successful; false otherwise.

getOnlineUser

public java.util.Vector getOnlineUser()
Description copied from interface: UtilityService
Get all online Agenda user.

Specified by:
getOnlineUser in interface UtilityService
Returns:
result list(each element in Vector are MemberRecord)
See Also:
MemberRecord

getConcurrentUser

public java.util.Vector getConcurrentUser()
Description copied from interface: UtilityService
Get all concurrent users.

Specified by:
getConcurrentUser in interface UtilityService
Returns:
result list(each element in Vector are MemberRecord)
See Also:
MemberRecord

sendShortMessageToUser

public void sendShortMessageToUser(java.lang.String msg,
                                   java.lang.String fromMemID,
                                   java.lang.String toMemID)
Description copied from interface: UtilityService
Send a short message to a specified Agenda user.

Specified by:
sendShortMessageToUser in interface UtilityService
Parameters:
msg - the given message
fromMemID - the given sender MemberRecord ID
toMemID - the given receiver MemberRecord ID
See Also:
MemberRecord

sendShortMessageToAll

public void sendShortMessageToAll(java.lang.String msg,
                                  java.lang.String fromMemID)
Description copied from interface: UtilityService
Send a short message to all Agenda users.

Specified by:
sendShortMessageToAll in interface UtilityService
Parameters:
msg - the given message
fromMemID - the given sender MemberRecord ID
See Also:
MemberRecord

getUserLoginTime

public long getUserLoginTime(java.lang.String loginID)
Description copied from interface: UtilityService
Get login time for a Agenda user.

Specified by:
getUserLoginTime in interface UtilityService
Parameters:
loginID - the given login ID
Returns:
the time

getOnlineAdminUser

public java.util.Vector getOnlineAdminUser()
Description copied from interface: UtilityService
Get all online administration tool user.

Specified by:
getOnlineAdminUser in interface UtilityService
Returns:
result list(each element in Vector are MemberRecord)
See Also:
MemberRecord

sendShortMessageToAdminUser

public void sendShortMessageToAdminUser(java.lang.String msg,
                                        java.lang.String fromMemID,
                                        java.lang.String toMemID)
Description copied from interface: UtilityService
Send a short message to a specified administration tool user.

Specified by:
sendShortMessageToAdminUser in interface UtilityService
Parameters:
msg - the given message
fromMemID - the given sender MemberRecord ID
toMemID - the given receiver MemberRecord ID
See Also:
MemberRecord

sendShortMessageToAdminAll

public void sendShortMessageToAdminAll(java.lang.String msg,
                                       java.lang.String fromMemID)
Description copied from interface: UtilityService
Send a short message to all administration tool users.

Specified by:
sendShortMessageToAdminAll in interface UtilityService
Parameters:
msg - the given message
fromMemID - the given sender MemberRecord ID
See Also:
MemberRecord

getAdminLoginTime

public long getAdminLoginTime(java.lang.String loginID)
Description copied from interface: UtilityService
Get login time for a Administration tool user.

Specified by:
getAdminLoginTime in interface UtilityService
Parameters:
loginID - the given login ID
Returns:
the time

addDebugLog

public void addDebugLog(java.lang.String msg)
Description copied from interface: UtilityService
Add a debug log to server.

Specified by:
addDebugLog in interface UtilityService
Parameters:
msg - the given log message

addExeLog

public void addExeLog(java.lang.String msg)
Description copied from interface: UtilityService
Add a execution log to server.

Specified by:
addExeLog in interface UtilityService
Parameters:
msg - the given log message

addInfoLog

public void addInfoLog(java.lang.String msg)
Description copied from interface: UtilityService
Add an information log to server.

Specified by:
addInfoLog in interface UtilityService
Parameters:
msg - the given log message

addWarningLog

public void addWarningLog(java.lang.String msg)
Description copied from interface: UtilityService
Add a warning log to server.

Specified by:
addWarningLog in interface UtilityService
Parameters:
msg - the given log message

addErrLog

public void addErrLog(java.lang.String msg)
Description copied from interface: UtilityService
Add an error log to server.

Specified by:
addErrLog in interface UtilityService
Parameters:
msg - the given log message

createScheduleEvent

public ScheduleEvent createScheduleEvent()
Description copied from interface: UtilityService
Create a empty ScheduleEvent instance

Specified by:
createScheduleEvent in interface UtilityService
Returns:
a ProjectRole instance
See Also:
ScheduleEvent

getScheduleEvent

public ScheduleEvent getScheduleEvent(java.lang.String id)
Description copied from interface: UtilityService
Get a ScheduleEvent instance

Specified by:
getScheduleEvent in interface UtilityService
Parameters:
id - the given ScheduleEvent ID
Returns:
a ProjectRole instance
See Also:
ScheduleEvent

insertScheduleEvent

public void insertScheduleEvent(ScheduleEvent evt)
Description copied from interface: UtilityService
Insert a ScheduleEvent instance

Specified by:
insertScheduleEvent in interface UtilityService
Parameters:
evt - the given ScheduleEvent
See Also:
ScheduleEvent

updateScheduleEvent

public void updateScheduleEvent(ScheduleEvent evt)
Description copied from interface: UtilityService
Update a ScheduleEvent instance

Specified by:
updateScheduleEvent in interface UtilityService
Parameters:
evt - the given ScheduleEvent
See Also:
ScheduleEvent

removeScheduleEvent

public void removeScheduleEvent(java.lang.String id)
Description copied from interface: UtilityService
Remove a ScheduleEvent instance

Specified by:
removeScheduleEvent in interface UtilityService
Parameters:
id - the given ScheduleEvent ID
See Also:
ScheduleEvent

searchScheduleEvent

public java.util.Vector searchScheduleEvent(ScheduleSearchCondition cond)
Description copied from interface: UtilityService
Search Schedule Events.

Specified by:
searchScheduleEvent in interface UtilityService
Returns:
result list(each element in Vector are ScheduleEvent)
See Also:
ScheduleSearchCondition

getPaseEventMap

public java.util.HashMap getPaseEventMap(java.lang.String[] args)
Specified by:
getPaseEventMap in interface UtilityService

getFreqMessageByMbrId

public java.util.Vector getFreqMessageByMbrId(java.lang.String mbrId)
Specified by:
getFreqMessageByMbrId in interface UtilityService

getNewFreqMessageID

public java.lang.String getNewFreqMessageID()
Specified by:
getNewFreqMessageID in interface UtilityService

insertFreqMessage

public boolean insertFreqMessage(FreqMessage msg)
Specified by:
insertFreqMessage in interface UtilityService

updateFreqMessage

public boolean updateFreqMessage(FreqMessage msg)
Specified by:
updateFreqMessage in interface UtilityService

deleteFreqMessage

public boolean deleteFreqMessage(FreqMessage msg)
Specified by:
deleteFreqMessage in interface UtilityService

getMbrSignGroupList

public java.util.Vector getMbrSignGroupList(java.lang.String mbrId)
Specified by:
getMbrSignGroupList in interface UtilityService

getNewAFGroupID

public java.lang.String getNewAFGroupID()
Specified by:
getNewAFGroupID in interface UtilityService

insertMbrSignGroup

public boolean insertMbrSignGroup(java.lang.String mbrId,
                                  AFGroup group)
Specified by:
insertMbrSignGroup in interface UtilityService

updateMbrSignGroup

public boolean updateMbrSignGroup(java.lang.String mbrId,
                                  AFGroup group)
Specified by:
updateMbrSignGroup in interface UtilityService

deleteMbrSignGroup

public boolean deleteMbrSignGroup(java.lang.String mbrId,
                                  AFGroup group)
Specified by:
deleteMbrSignGroup in interface UtilityService

getArtInsDefaultMap

public java.util.HashMap getArtInsDefaultMap(java.lang.String propertys,
                                             java.lang.String artState,
                                             java.lang.String dvType,
                                             Task task,
                                             java.lang.String artID,
                                             java.lang.String[] priorityLocaleStr)
Specified by:
getArtInsDefaultMap in interface UtilityService

removeAllSSO

public boolean removeAllSSO()
for System clear all SSO record

Specified by:
removeAllSSO in interface UtilityService
Returns:
boolean

addSSORecord

public boolean addSSORecord(java.lang.String memID,
                            java.lang.String sessionID)
add record into sso record

Specified by:
addSSORecord in interface UtilityService
Parameters:
memID - String
sessionID - String
Returns:
boolean

removeSSORecord

public boolean removeSSORecord(java.lang.String memID,
                               java.lang.String sessionID)
remove sso record according memID or web sessionID

Specified by:
removeSSORecord in interface UtilityService
Parameters:
memID - String
loginID - String
sessionID - String
Returns:
boolean

getSSOMemberRecord

public MemberRecord getSSOMemberRecord(java.lang.String sessionID)
get memberRecord from sso record by sessionID

Specified by:
getSSOMemberRecord in interface UtilityService
Parameters:
sessionID - String
Returns:
MemberRecord

getSSOMemberID

public java.lang.String getSSOMemberID(java.lang.String sessionID)
get memID from sso record by sessionID

Specified by:
getSSOMemberID in interface UtilityService
Parameters:
sessionID - String
Returns:
String

addLoginLog

public boolean addLoginLog(LoginInfo info)
Description copied from interface: UtilityService
Adds a login info record.

Specified by:
addLoginLog in interface UtilityService
Parameters:
info - the LoginInfo object contains information to be logged
Returns:
returns true if the action successed. Otherwise false.

isEnabledModule

public boolean isEnabledModule(java.lang.String moduleName)
Returns the flag indicates whether a module is enabled.

Specified by:
isEnabledModule in interface UtilityService
Parameters:
modueName - the module name to be checked
Returns:

isEnabledModule

public int isEnabledModule(java.lang.String moduleName,
                           boolean isRetNum)
Returns the available number of the module to be checked

Specified by:
isEnabledModule in interface UtilityService
Parameters:
modueName - the module name to be checked
Returns:
the activate number of the module

findLoginLog

public java.util.Collection findLoginLog(QueryConditions qryCondition)
Description copied from interface: UtilityService
Returns the LoginInfo objects by specific conditions.

Specified by:
findLoginLog in interface UtilityService
Returns:
@

printArtifactList

public void printArtifactList(java.util.Vector artInsIDList,
                              java.lang.String printMode,
                              java.lang.String pageMode,
                              java.lang.String viewState,
                              boolean bRunScript,
                              int top,
                              int down,
                              int left,
                              int right,
                              int orientation)
Description copied from interface: UtilityService
This method is using for batch printing(in pase server side) artifact instances. Note: Must be run with GUI support environment.

Specified by:
printArtifactList in interface UtilityService
Parameters:
artInsIDList - the vector of artifact instance id
printMode - the String type of printing mode, should be "Java", "Pdf", "JpgFile" or "PdfFile"
pageMode - the String type of page mode, should be "FullPage", "CutPage" or "OriginalPage"
viewState - the state of artifact to display
bRunScript - true for running script on viewState
top - the top margin in millimeter
down - the bottom margin in millimeter
left - the left margin in millimeter
right - the right margin in millimeter
orientation - given 0 for horizontal, 1 for vertical

printArtifactList

public void printArtifactList(java.util.Vector artInsIDList,
                              java.lang.String printMode,
                              java.lang.String pageMode,
                              java.lang.String viewState,
                              boolean bRunScript,
                              int width,
                              int height,
                              int top,
                              int down,
                              int left,
                              int right,
                              int orientation,
                              boolean popUp)
Description copied from interface: UtilityService
This method is using for batch printing(in pase server side) artifact instances. Note: Must be run with GUI support environment.

Specified by:
printArtifactList in interface UtilityService
Parameters:
artInsIDList - the vector of artifact instance id
printMode - the String type of printing mode, should be "Java", "Pdf", "JpgFile" or "PdfFile"
pageMode - the String type of page mode, should be "FullPage", "CutPage" or "OriginalPage"
viewState - the state of artifact to display
bRunScript - true for running script on viewState
width - is useless.(Reset to zero)
height - is useless.(Reset to zero)
top - the top margin in millimeter
down - the bottom margin in millimeter
left - the left margin in millimeter
right - the right margin in millimeter
orientation - given 0 for horizontal, 1 for vertical
popUp - pop-up the print setting dialog

getVariableList

public java.util.Vector getVariableList()
Description copied from interface: UtilityService
Get variable list.

Specified by:
getVariableList in interface UtilityService
Returns:
result list(each element in Vector are Variable)
See Also:
Variable

getNewMultiAeppServerID

public java.lang.String getNewMultiAeppServerID()
Specified by:
getNewMultiAeppServerID in interface UtilityService

getAllTimeZones

public java.util.List getAllTimeZones()
Specified by:
getAllTimeZones in interface UtilityService

setProcessMapDao

public void setProcessMapDao(com.flowring.dao.ProcessMapDao processMapDao)

getProcessMapCategory

public Category getProcessMapCategory(java.lang.String id)
Specified by:
getProcessMapCategory in interface UtilityService

updateProcessMapCategory

public boolean updateProcessMapCategory(Category category)
Specified by:
updateProcessMapCategory in interface UtilityService

insertProcessMapCategory

public boolean insertProcessMapCategory(Category category)
Specified by:
insertProcessMapCategory in interface UtilityService

deleteProcessMapCategory

public boolean deleteProcessMapCategory(java.lang.String id)
Specified by:
deleteProcessMapCategory in interface UtilityService

getProcessMapCategoryList

public java.util.List getProcessMapCategoryList()
Specified by:
getProcessMapCategoryList in interface UtilityService

getNewProcessMapCategoryID

public java.lang.String getNewProcessMapCategoryID()
Specified by:
getNewProcessMapCategoryID in interface UtilityService

swapProcessMapCategory

public boolean swapProcessMapCategory(Category category1,
                                      Category category2)
Specified by:
swapProcessMapCategory in interface UtilityService

insertProcessMapLink

public boolean insertProcessMapLink(Link link)
Specified by:
insertProcessMapLink in interface UtilityService

deleteProcessMapLink

public boolean deleteProcessMapLink(Link link)
Specified by:
deleteProcessMapLink in interface UtilityService

updateProcessMapLink

public boolean updateProcessMapLink(Link link)
Specified by:
updateProcessMapLink in interface UtilityService

getProcessMapLink

public Link getProcessMapLink(Link link)
Specified by:
getProcessMapLink in interface UtilityService

getProcessMapLinkList

public java.util.List getProcessMapLinkList(java.lang.String parentId)
Specified by:
getProcessMapLinkList in interface UtilityService

swapProcessMapLink

public boolean swapProcessMapLink(Link link1,
                                  Link link2)
Specified by:
swapProcessMapLink in interface UtilityService

getProcessMapParentIdListByProId

public java.util.List getProcessMapParentIdListByProId(java.lang.String proId)
Specified by:
getProcessMapParentIdListByProId in interface UtilityService

getAuthLDAPConfigs

public java.util.List<AuthLDAPConfig> getAuthLDAPConfigs()
Description copied from interface: UtilityService
Retrieve the ldap configs

Specified by:
getAuthLDAPConfigs in interface UtilityService
Returns:
List each element is AuthLDAPConfig
Since:
V3.1

isOrgManager

public boolean isOrgManager(java.lang.String memID)
Specified by:
isOrgManager in interface UtilityService

isSuperuser

public boolean isSuperuser(java.lang.String memID)
Specified by:
isSuperuser in interface UtilityService

isSuperuser

public boolean isSuperuser(java.lang.String memID,
                           java.lang.String comID)
Specified by:
isSuperuser in interface UtilityService

getCompanyIDListOfSuperuser

public java.util.List getCompanyIDListOfSuperuser(java.lang.String memId,
                                                  boolean subCompnayIncluded)
Specified by:
getCompanyIDListOfSuperuser in interface UtilityService

getComIDListOfMember

public java.util.Vector getComIDListOfMember(java.lang.String memID)
Specified by:
getComIDListOfMember in interface UtilityService

getComIdOfRole

public java.lang.String getComIdOfRole(java.lang.String rolID)
Specified by:
getComIdOfRole in interface UtilityService

getComIdOfDep

public java.lang.String getComIdOfDep(java.lang.String depID)
Specified by:
getComIdOfDep in interface UtilityService

getNewGroupSignID

public java.lang.String getNewGroupSignID()
Description copied from interface: UtilityService
Generate a new GroupSign ID

Specified by:
getNewGroupSignID in interface UtilityService
Returns:
String GroupSign ID

insertTaskGroupSign

public boolean insertTaskGroupSign(java.lang.String taskID,
                                   java.lang.String groupSignID,
                                   long signTime)
Description copied from interface: UtilityService
This method is used for insert into Task_GroupSign. The tasks completed by GroupSign will be set the same id which means these tasks are completed by the same user and at the same time.

Specified by:
insertTaskGroupSign in interface UtilityService
Parameters:
taskID - String the task ID
groupSignID - String the group sign ID generated by system
signTime - long the complete time

getGroupSignIDOfTask

public java.lang.String getGroupSignIDOfTask(java.lang.String taskID)
Description copied from interface: UtilityService
To get the group sign id of the specified task id.

Specified by:
getGroupSignIDOfTask in interface UtilityService
Returns:
String group sign id

getGroupSignTaskIDList

public java.util.List getGroupSignTaskIDList(java.lang.String groupSignID)
Description copied from interface: UtilityService
To get the task id list of the specified group sign id. These task ids are completed at the same time by Group Sign.

Specified by:
getGroupSignTaskIDList in interface UtilityService
Returns:
List task id list

getGroupSignTaskMap

public java.util.HashMap getGroupSignTaskMap(java.lang.String groupSignID)
Description copied from interface: UtilityService
To get a HashMap of the specified group sign id. Each element(key, value) in HashMap is (String taskID, LongcompleteTime). These tasks are completed at the same time by Group Sign.

Specified by:
getGroupSignTaskMap in interface UtilityService
Returns:
HashMap groupSignTaskMap. Each element(key, value) in HashMap is (String taskID, LongcompleteTime).

getDbConnectionCurrentState

public java.lang.String getDbConnectionCurrentState()
Description copied from interface: UtilityService
Get the information about the system database connection : Max. connection size, Min. connection size, Current used connection size.

Specified by:
getDbConnectionCurrentState in interface UtilityService
Returns:
String the information string.

getVendor

public java.lang.String getVendor()
Description copied from interface: UtilityService
Get the Database Vendor

Specified by:
getVendor in interface UtilityService
Returns:
String

getRoleSearchResult

public java.util.Map getRoleSearchResult(java.lang.String keyword,
                                         boolean depNameSearch,
                                         boolean rolNamesearch,
                                         boolean memNameSearch,
                                         boolean loginIdSearch)
Description copied from interface: UtilityService
Get the role search result with the keyword.

Specified by:
getRoleSearchResult in interface UtilityService
Returns:
String the search result string.

getMailLoginTimeStamp

public long getMailLoginTimeStamp(java.lang.String mailId)
Description copied from interface: UtilityService
Gets the time value in milliseconds of TimeStamp.

Examples:

 String mailId = "Mal000000000001";
 long timeStamp = WFCI.getMialLoginTimeStamp(mailId);
 

Specified by:
getMailLoginTimeStamp in interface UtilityService
Returns:
long time value in milliseconds

deleteMailLoginTimeStamp

public boolean deleteMailLoginTimeStamp(java.lang.String mailId)
Description copied from interface: UtilityService
To delete the data from database by the mail id .

Specified by:
deleteMailLoginTimeStamp in interface UtilityService
Returns:
boolean

deleteMailLoginTimeStampByTaskId

public boolean deleteMailLoginTimeStampByTaskId(java.lang.String taskId)
Description copied from interface: UtilityService
To delete the data from database by the task id .

Specified by:
deleteMailLoginTimeStampByTaskId in interface UtilityService
Returns:
boolean

getNewBookingEventID

public java.lang.String getNewBookingEventID()
Specified by:
getNewBookingEventID in interface UtilityService

addToDo

public boolean addToDo(java.lang.String todoId,
                       java.lang.String todoTest,
                       java.lang.String dueDate,
                       java.lang.String memID)
Description copied from interface: UtilityService
add one toDo

Specified by:
addToDo in interface UtilityService
Parameters:
todoId - todoTest dueDate memID
Returns:
if success

deleteToDo

public boolean deleteToDo(java.lang.String todoId,
                          java.lang.String memID)
Description copied from interface: UtilityService
delete Todo

Specified by:
deleteToDo in interface UtilityService
Parameters:
todoId - memID
Returns:
if success

getToDoList

public java.util.List getToDoList(java.lang.String memID)
Description copied from interface: UtilityService
get toDoList

Specified by:
getToDoList in interface UtilityService
Returns:
a list of todo

getCompanyIDListOfLayoutManager

public java.util.List getCompanyIDListOfLayoutManager(java.lang.String memID)
Description copied from interface: UtilityService
Gets the CompanyID List of LayoutManager.

Specified by:
getCompanyIDListOfLayoutManager in interface UtilityService
Returns:
List

isLayoutManager

public boolean isLayoutManager(java.lang.String memID,
                               java.lang.String objID)
Description copied from interface: UtilityService
Check Member is a Layout Manager or not

Specified by:
isLayoutManager in interface UtilityService
objID - : could be any object of layout. ex:LAYxxx, TABxxx, PLTxxx, PLSxxx...
Returns:
boolean true of false

getConfigurationFile

public java.lang.String getConfigurationFile(java.lang.String fileName)
Description copied from interface: UtilityService
Get the configuration file of PASE.

Specified by:
getConfigurationFile in interface UtilityService
Returns:
String the string of configuration file.

getConfigurationFile

public java.lang.String getConfigurationFile(java.lang.String fileName,
                                             java.lang.String characterType)
Description copied from interface: UtilityService
add by yinhui for AF-2767 Get the configuration file of PASE.

Specified by:
getConfigurationFile in interface UtilityService
Returns:
String the string of configuration file.

getLogFileList

public java.lang.String[] getLogFileList()
Description copied from interface: UtilityService
Get the log file list from PASE.

Specified by:
getLogFileList in interface UtilityService
Returns:
String[] the string array of log files list.

getLogFiles

public java.util.List<LogFile> getLogFiles()
Description copied from interface: UtilityService
Get the log file list from PASE.

Specified by:
getLogFiles in interface UtilityService
Returns:
List the LogFile List of log files list.

getMemoryInfo

public java.util.HashMap getMemoryInfo()
Description copied from interface: UtilityService
get the memory information of PASE.

Specified by:
getMemoryInfo in interface UtilityService
Returns:
HashMap the memory information map

insertWebADMACL

public boolean insertWebADMACL(WebADMACL webADMACL)
Description copied from interface: UtilityService
Insert new WebADM access control policy.

Specified by:
insertWebADMACL in interface UtilityService
Returns:
True if success.

updateWebADMACL

public boolean updateWebADMACL(WebADMACL webADMACL)
Description copied from interface: UtilityService
Update the WebADM access control policy.

Specified by:
updateWebADMACL in interface UtilityService
Returns:
True if success.

deleteWebADMACL

public boolean deleteWebADMACL(java.lang.String aclId)
Description copied from interface: UtilityService
Delete the WebADM access control policy.

Specified by:
deleteWebADMACL in interface UtilityService
Returns:
True if success.

getAllWebADMACLListOfRough

public java.util.List getAllWebADMACLListOfRough()
Description copied from interface: UtilityService
get all of the WebADM access control policy list. it is just some messsage

Specified by:
getAllWebADMACLListOfRough in interface UtilityService
Returns:
List aclList, each element of list is WebADMACL.

getAllWebADMACLListOfDetail

public java.util.List getAllWebADMACLListOfDetail()
Description copied from interface: UtilityService
get all of the WebADM access control policy list. it is all message

Specified by:
getAllWebADMACLListOfDetail in interface UtilityService
Returns:
List aclList, each element of list is WebADMACL.

getWebADMACLListOfDetailByAuthorID

public java.util.List getWebADMACLListOfDetailByAuthorID(java.lang.String AuthorID)
Description copied from interface: UtilityService
get all of the WebADM access control policy list by AuthorID. it is all message

Specified by:
getWebADMACLListOfDetailByAuthorID in interface UtilityService
Returns:
List aclList, each element of list is WebADMACL.

getWebADMACLListOfRoughByAuthorID

public java.util.List getWebADMACLListOfRoughByAuthorID(java.lang.String AuthorID)
Description copied from interface: UtilityService
get all of the WebADM access control policy list by AuthorID. it is just some messsage

Specified by:
getWebADMACLListOfRoughByAuthorID in interface UtilityService
Returns:
List aclList, each element of list is WebADMACL.

getWebADMACLListByAclID

public java.util.List getWebADMACLListByAclID(java.lang.String aclID)
Description copied from interface: UtilityService
get all of the WebADM access control policy list by AclID.

Specified by:
getWebADMACLListByAclID in interface UtilityService
Returns:
List aclList, each element of list is WebADMACL.

getNewAclID

public java.lang.String getNewAclID()
Description copied from interface: UtilityService
get new WebADMACL id.

Specified by:
getNewAclID in interface UtilityService
Returns:
String ID, the WebADMACL ID.

getRoleSearchResult

public java.util.Map getRoleSearchResult(java.lang.String keyword,
                                         boolean depNameSearch,
                                         boolean rolNameSearch,
                                         boolean memNameSearch,
                                         boolean loginIdSearch,
                                         boolean isInvisible,
                                         boolean isResign)
Specified by:
getRoleSearchResult in interface UtilityService

getAllMemberIsInvisible

public java.util.List getAllMemberIsInvisible(boolean isInvisible)
Specified by:
getAllMemberIsInvisible in interface UtilityService

getAllMemberIsResign

public java.util.List getAllMemberIsResign(boolean isResign)
Specified by:
getAllMemberIsResign in interface UtilityService

getAllMemberIsNoRole

public java.util.List getAllMemberIsNoRole(boolean isNoRole)
Specified by:
getAllMemberIsNoRole in interface UtilityService

getAllMemberIsNoRole

public java.util.List getAllMemberIsNoRole(java.lang.String keyword,
                                           boolean isNoRole)
Specified by:
getAllMemberIsNoRole in interface UtilityService

getAllSearchResignInvisibleNoRoleResult

public java.util.Map getAllSearchResignInvisibleNoRoleResult(java.lang.String keyword)
Specified by:
getAllSearchResignInvisibleNoRoleResult in interface UtilityService

getServerSystemProperties

public java.util.Properties getServerSystemProperties()
Specified by:
getServerSystemProperties in interface UtilityService

getDatabase

public java.util.Map getDatabase()
Specified by:
getDatabase in interface UtilityService

getRoleSearchResult

public java.util.Map getRoleSearchResult(java.lang.String keyword,
                                         boolean depNameSearch,
                                         boolean rolNameSearch,
                                         boolean memNameSearch,
                                         boolean loginIdSearch,
                                         boolean hasInvisible,
                                         boolean hasDeniedLogin,
                                         boolean hasResign)
Specified by:
getRoleSearchResult in interface UtilityService

portalImageMakeOrder

public boolean portalImageMakeOrder(java.util.HashMap map)
Description copied from interface: UtilityService
update the EIP_IMAGE order of a image

Specified by:
portalImageMakeOrder in interface UtilityService
Returns:
boolean;

releaseTaskCompleteLock

public void releaseTaskCompleteLock(java.lang.String tskID)
Description copied from interface: UtilityService
Release a task lock in taskCompletingMap (taskCompletingMap is used to block duplicate task completing).

Specified by:
releaseTaskCompleteLock in interface UtilityService

registerDeviceRegId

public boolean registerDeviceRegId(java.lang.String memId,
                                   java.lang.String _uuid,
                                   java.lang.String regId)
Register smart device's regId to server.

Specified by:
registerDeviceRegId in interface UtilityService
Parameters:
memId -
_uuid -
regId -
Returns:
boolean success or fail
Since:
V3.7 HotFix

getDeviceInfoListByUUID

public java.util.List<DeviceInfo> getDeviceInfoListByUUID(java.lang.String _uuid)
Get the DeviceInfo object by user's smart device's uuid

Specified by:
getDeviceInfoListByUUID in interface UtilityService
Returns:
List each element is DeviceInfo
Since:
V3.7 HotFix

getDeviceInfoListByMemId

public java.util.List<DeviceInfo> getDeviceInfoListByMemId(java.lang.String memId)
Get the DeviceInfo object by user's member id

Specified by:
getDeviceInfoListByMemId in interface UtilityService
Parameters:
memId -
Returns:
List each element is DeviceInfo
Since:
V3.7 HotFix

createDeviceInfo

public boolean createDeviceInfo(DeviceInfo deviceInfo)
Create a DeviceInfo

Specified by:
createDeviceInfo in interface UtilityService
Parameters:
deviceInfo -
Returns:
boolean success or fail
Since:
V3.7 HotFix

deleteDeviceInfoByUUIDandMemID

public boolean deleteDeviceInfoByUUIDandMemID(java.lang.String _uuid,
                                              java.lang.String memId)
Delete DeviceInfo by the given uuid and memId.

Specified by:
deleteDeviceInfoByUUIDandMemID in interface UtilityService
Parameters:
_uuid -
memId -
Returns:
boolean success or fail
Since:
V3.7 HotFix

getRoleSearchResult

public java.util.Map getRoleSearchResult(java.lang.String keyword,
                                         boolean depNameSearch,
                                         boolean rolNameSearch,
                                         boolean memNameSearch,
                                         boolean loginIdSearch,
                                         boolean englishName,
                                         boolean officePhone,
                                         boolean isInvisible,
                                         boolean hasDeniedLogin,
                                         boolean isResign)
Specified by:
getRoleSearchResult in interface UtilityService

getPortalAccessibleMemRDList

public java.util.Vector getPortalAccessibleMemRDList(java.lang.String orgUnit)
Get list of accessible member records, according to the config of ADM

Specified by:
getPortalAccessibleMemRDList in interface UtilityService
Parameters:
orgUnit -
Returns:
list of accessible member records

getAllNoRoleMemberRecord

public java.util.Vector getAllNoRoleMemberRecord()
Specified by:
getAllNoRoleMemberRecord in interface UtilityService

insertLoginInfo

public boolean insertLoginInfo(LoginInfo loginInfo)
Specified by:
insertLoginInfo in interface UtilityService

updateLoginInfo

public boolean updateLoginInfo(LoginInfo loginInfo)
Specified by:
updateLoginInfo in interface UtilityService

getLoginInfoTryTimes

public int getLoginInfoTryTimes(java.lang.String memID)
Specified by:
getLoginInfoTryTimes in interface UtilityService

getLoginInfoAccountLockStatus

public LoginInfo getLoginInfoAccountLockStatus(java.lang.String memID)
Specified by:
getLoginInfoAccountLockStatus in interface UtilityService

getAllEIPAnnounceBoardByOrgIDs

public java.util.List<BBSBoard> getAllEIPAnnounceBoardByOrgIDs(java.lang.String... orgIDs)
Specified by:
getAllEIPAnnounceBoardByOrgIDs in interface UtilityService

getEIPAnnounceBoardCountByOrgIDs

public java.util.Map<java.lang.String,java.lang.Integer> getEIPAnnounceBoardCountByOrgIDs(java.lang.String... orgIDs)
Specified by:
getEIPAnnounceBoardCountByOrgIDs in interface UtilityService

getEIPAnnounceBoardByBoardManagerID

public java.util.List<BBSBoard> getEIPAnnounceBoardByBoardManagerID(java.lang.String... managerIDs)
Specified by:
getEIPAnnounceBoardByBoardManagerID in interface UtilityService

getCompanyIDListOfAlbumManager

public java.util.List getCompanyIDListOfAlbumManager(java.lang.String memID)
Description copied from interface: UtilityService
UP-4 by Leon 20141201 Gets the CompanyID List of AlbumManager.

Specified by:
getCompanyIDListOfAlbumManager in interface UtilityService
Returns:
List

getCompanyIDListOfAlbumCreator

public java.util.List getCompanyIDListOfAlbumCreator(java.lang.String memID)
Description copied from interface: UtilityService
UP-4 by Leon 20141201 Gets the CompanyID List of AlbumCreator.

Specified by:
getCompanyIDListOfAlbumCreator in interface UtilityService
Returns:
List

getEmailTemplateList

public java.util.Vector getEmailTemplateList(java.lang.String type,
                                             java.util.Vector companyIDs)
Specified by:
getEmailTemplateList in interface UtilityService

insertEmailTemplate

public boolean insertEmailTemplate(pe.pde.EmailTemplate template)
Specified by:
insertEmailTemplate in interface UtilityService

updateEmailTemplate

public boolean updateEmailTemplate(pe.pde.EmailTemplate template)
Specified by:
updateEmailTemplate in interface UtilityService

deleteEmailTemplate

public boolean deleteEmailTemplate(java.lang.String templateID)
Specified by:
deleteEmailTemplate in interface UtilityService

getNewEmailTemplateID

public java.lang.String getNewEmailTemplateID()
Specified by:
getNewEmailTemplateID in interface UtilityService

getAPToEmailTemplate

public pe.pde.EmailTemplate getAPToEmailTemplate(java.lang.String templateID,
                                                 java.lang.String type,
                                                 java.lang.String companyId)
Specified by:
getAPToEmailTemplate in interface UtilityService

getCompanyIDListOfBuyManager

public java.util.List getCompanyIDListOfBuyManager(java.lang.String memID)
Description copied from interface: UtilityService
UP-3 by Tim 20141203 Gets the CompanyID List of BuyManager.

Specified by:
getCompanyIDListOfBuyManager in interface UtilityService
Returns:
List

getCompanyIDListOfBuyCreator

public java.util.List getCompanyIDListOfBuyCreator(java.lang.String memID)
Description copied from interface: UtilityService
UP-3 by Tim 20141203 Gets the CompanyID List of BuyCreator.

Specified by:
getCompanyIDListOfBuyCreator in interface UtilityService
Returns:
List

clearSysSerailMap

public void clearSysSerailMap()
Description copied from interface: UtilityService
clear ORG cache

Specified by:
clearSysSerailMap in interface UtilityService

getRoleSearchResult

public java.util.Map getRoleSearchResult(boolean companyNameSearch,
                                         java.lang.String keyword,
                                         boolean depNameSearch,
                                         boolean rolNameSearch,
                                         boolean memNameSearch,
                                         boolean loginIdSearch,
                                         boolean isInvisible,
                                         boolean isResign)
Description copied from interface: UtilityService
Get the role search result with the keyword, include company.

Specified by:
getRoleSearchResult in interface UtilityService
Returns:
String the search result string.

getAllCompanyNameList

public java.util.Vector getAllCompanyNameList()
Description copied from interface: UtilityService
Get all names of all company.

Specified by:
getAllCompanyNameList in interface UtilityService
Returns:
Vector the names of all company.