public class TimeAccountingScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements com.accela.aa.emse.dom.service.TimeAccountingScriptService
Accela Automation File: TimeAccountingScript.java Accela, Inc. Copyright (C): 2008-2014 Description: TODO Notes: $Id: TimeAccountingScript.java 270462 2014-04-28 10:05:58Z ..\rain.wang $ Revision History <Date>, <Who>, <What> May 6, 2008 hawk.liu Initial.
| Constructor and Description |
|---|
TimeAccountingScript()
Instantiates a new time accounting script.
|
TimeAccountingScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
com.accela.aa.emse.dom.service.CachedService cachedService)
Instantiates a new time accounting script.
|
| Modifier and Type | Method and Description |
|---|---|
ScriptResult |
addTimeLogModel(TimeAccountingScriptModel timeAccountingModel)
Adds the time log model.
|
ScriptResult |
convGenericCostingToCosting(com.accela.orm.model.costing.GenericCostingModel genericCosting,
java.lang.String reference,
java.lang.String entityType,
java.lang.String entityId)
Convert generic costing to costing.
|
ScriptResult |
convTimeAccountingToGenericCosting(com.accela.aa.finance.timeAccount.TimeLogModel timeLogModel)
Convert time accounting to generic costing.
|
ScriptResult |
convTimeAccountingToHumaning(com.accela.aa.finance.timeAccount.TimeLogModel timeLogModel)
Convert time accounting to humaning.
|
ScriptResult |
createTimeAccountingSyncMapping(java.lang.String entityTypeFrom,
java.lang.String entityIDFrom,
java.lang.String entityTypeTo,
java.lang.String entityIDTo)
Creates the time accounting sync mapping.
|
ScriptResult |
deleteTimeAccountingSyncMapping(java.lang.String entityTypeFrom,
java.lang.String entityIDFrom,
java.lang.String entityTypeTo,
java.lang.String entityIDTo)
Delete time accounting sync mapping.
|
ScriptResult |
getTimeAccountingSyncMappingList(java.lang.String entityTypeFrom,
java.lang.String entityIDFrom,
java.lang.String entityTypeTo,
java.lang.String entityIDTo)
Gets the time accounting sync mapping list.
|
ScriptResult |
getTimeGroupByTimeGroupName(java.lang.String timeGroupName)
get time group by time group name.
|
ScriptResult |
getTimeGroupTypeModel()
Get an initialized TimeGroupTypeScriptModel instance
|
ScriptResult |
getTimeGroupTypeModels(java.lang.String groupName,
java.lang.String typeName)
Get the time accounting group type models by specific group name and type name
|
ScriptResult |
getTimeGroupTypeModels(TimeGroupTypeScriptModel timeGrpTypModel)
Get the time accounting group type models
|
ScriptResult |
getTimeLogModel()
Get a new empty Time Account message.
|
ScriptResult |
getTimeLogModel(long timeLogSeq)
Get Time Account message.
|
ScriptResult |
getTimeLogModelByEntity(com.accela.aa.aamain.cap.CapIDModel capIDModel,
java.lang.String entityId,
java.lang.String entityType,
java.lang.Long taTypeSeq,
java.lang.Long taGroupSeq)
Get time account by entity..
|
ScriptResult |
getTimeTypeByTimeTypeName(java.lang.String timeTypeName)
get time type by time type name.
|
ScriptResult |
updateTimeLogModel(TimeAccountingScriptModel timeAccountingModel)
update the time log model.
|
public TimeAccountingScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
com.accela.aa.emse.dom.service.CachedService cachedService)
throws com.accela.aa.exception.AAException
serviceProviderCode - the service provider codeauditID - the audit idcom.accela.aa.exception.AAException - the AA exceptionpublic TimeAccountingScript()
throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException - the AA exceptionpublic ScriptResult getTimeLogModel(long timeLogSeq)
com.accela.aa.emse.dom.service.TimeAccountingScriptServicegetTimeLogModel in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicetimeLogSeq - the time log seqpublic ScriptResult getTimeLogModel()
com.accela.aa.emse.dom.service.TimeAccountingScriptServicegetTimeLogModel in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicepublic ScriptResult addTimeLogModel(TimeAccountingScriptModel timeAccountingModel)
com.accela.aa.emse.dom.service.TimeAccountingScriptServiceaddTimeLogModel in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicetimeAccountingModel - the time accounting modelpublic ScriptResult updateTimeLogModel(TimeAccountingScriptModel timeAccountingModel)
com.accela.aa.emse.dom.service.TimeAccountingScriptServiceupdateTimeLogModel in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicetimeAccountingModel - the time accounting modelpublic ScriptResult getTimeGroupTypeModels(TimeGroupTypeScriptModel timeGrpTypModel)
com.accela.aa.emse.dom.service.TimeAccountingScriptServicegetTimeGroupTypeModels in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicepublic ScriptResult getTimeGroupTypeModels(java.lang.String groupName, java.lang.String typeName)
com.accela.aa.emse.dom.service.TimeAccountingScriptServicegetTimeGroupTypeModels in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicegroupName - The specific group nametypeName - The specific type namepublic ScriptResult getTimeGroupTypeModel()
getTimeGroupTypeModel in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicepublic ScriptResult getTimeLogModelByEntity(com.accela.aa.aamain.cap.CapIDModel capIDModel, java.lang.String entityId, java.lang.String entityType, java.lang.Long taTypeSeq, java.lang.Long taGroupSeq)
getTimeLogModelByEntity in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicecapIDModel - cap identityId - workflow/inspection id etc.entityType - entity typetaTypeSeq - time accounting type sequencetaGroupSeq - time accounting group sequencepublic ScriptResult getTimeTypeByTimeTypeName(java.lang.String timeTypeName)
getTimeTypeByTimeTypeName in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicetimeTypeName - time accounting type namepublic ScriptResult getTimeGroupByTimeGroupName(java.lang.String timeGroupName)
getTimeGroupByTimeGroupName in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicetimeGroupName - time accounting group namepublic ScriptResult getTimeAccountingSyncMappingList(java.lang.String entityTypeFrom, java.lang.String entityIDFrom, java.lang.String entityTypeTo, java.lang.String entityIDTo)
getTimeAccountingSyncMappingList in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServiceentityTypeFrom - the entity type fromentityIDFrom - the entity id fromentityTypeTo - the entity type toentityIDTo - the entity id topublic ScriptResult createTimeAccountingSyncMapping(java.lang.String entityTypeFrom, java.lang.String entityIDFrom, java.lang.String entityTypeTo, java.lang.String entityIDTo)
createTimeAccountingSyncMapping in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServiceentityTypeFrom - the entity type fromentityIDFrom - the entity id fromentityTypeTo - the entity type toentityIDTo - the entity id topublic ScriptResult deleteTimeAccountingSyncMapping(java.lang.String entityTypeFrom, java.lang.String entityIDFrom, java.lang.String entityTypeTo, java.lang.String entityIDTo)
deleteTimeAccountingSyncMapping in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServiceentityTypeFrom - the entity type fromentityIDFrom - the entity id fromentityTypeTo - the entity type toentityIDTo - the entity id topublic ScriptResult convTimeAccountingToGenericCosting(com.accela.aa.finance.timeAccount.TimeLogModel timeLogModel)
convTimeAccountingToGenericCosting in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicetimeLogModel - the time log modelpublic ScriptResult convTimeAccountingToHumaning(com.accela.aa.finance.timeAccount.TimeLogModel timeLogModel)
convTimeAccountingToHumaning in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicetimeLogModel - the time log modelpublic ScriptResult convGenericCostingToCosting(com.accela.orm.model.costing.GenericCostingModel genericCosting, java.lang.String reference, java.lang.String entityType, java.lang.String entityId)
convGenericCostingToCosting in interface com.accela.aa.emse.dom.service.TimeAccountingScriptServicegenericCosting - the generic costingreference - the cap identityType - the entity typeentityId - the entity id