Package mks.ci.server
Class DeleteAllTimeEntryOp
- java.lang.Object
-
- mks.ci.server.BaseBulkOp
-
- mks.ci.server.BaseTimeEntryOp
-
- mks.ci.server.DeleteAllTimeEntryOp
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,mks.ci.server.BulkOp
,mks.ci.server.ITriggerExposedOp
,mks.frame.server.audit.IAuditable
public class DeleteAllTimeEntryOp extends mks.ci.server.BaseTimeEntryOp
A bulk operation for deleting a batch of time entries- Since:
- Bentley
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteAllTimeEntryOp.ScriptDeleteAllTimeEntryOpBean
A bean that encapsulates a single request to delete time entries that match a filter.
-
Constructor Summary
Constructors Constructor Description DeleteAllTimeEntryOp()
Default constructor, should only be used for serialization.DeleteAllTimeEntryOp(mks.ci.common.DeleteAllTEInfo info)
Construct an operation to delete a batch of time entries
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkPermission(int requestingUserID, int clientVersion)
Test permissions to determine if this operation can be performed.java.lang.String
getDisplayString()
LocalTriggerManager.ScriptOperationBean
getScriptBean(int userId, java.sql.Connection connection)
Get the bean that wraps this op in trigger scripts.mks.frame.triggers.TriggerEvent
getTriggerEvent()
Get the trigger event the operation participates in.mks.ci.server.BulkOpResult
performOp(mks.ci.server.CacheUpdate cacheUpdate, int currentUserID)
Perform the operation.void
readExternal(java.io.ObjectInput in)
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
getDisplayString
public java.lang.String getDisplayString()
- Specified by:
getDisplayString
in interfacemks.ci.server.BulkOp
- Specified by:
getDisplayString
in classmks.ci.server.BaseBulkOp
- Returns:
- The display string for the object that is being operated on.
- See Also:
BulkOp.getDisplayString()
-
checkPermission
public void checkPermission(int requestingUserID, int clientVersion) throws mks.ci.exception.CIException
Description copied from class:mks.ci.server.BaseBulkOp
Test permissions to determine if this operation can be performed.- Specified by:
checkPermission
in interfacemks.ci.server.BulkOp
- Overrides:
checkPermission
in classmks.ci.server.BaseBulkOp
- Parameters:
requestingUserID
- - the ID of the user performing the operationclientVersion
- the version of the client protocol. This method also checks if this client protocol is legal.- Throws:
mks.ci.exception.PermissionDeniedException
- if the user doesn't have permissions.mks.ci.exception.CIException
- See Also:
BulkOp.checkPermission(int, int)
-
performOp
public mks.ci.server.BulkOpResult performOp(mks.ci.server.CacheUpdate cacheUpdate, int currentUserID) throws mks.ci.exception.CIException
Description copied from interface:mks.ci.server.BulkOp
Perform the operation.- Parameters:
cacheUpdate
- The container which accumulates cache update information, processed after the transaction is committed.currentUserID
- The ID of the user performing the operation.- Returns:
- The BulkOpResult specific to the operation.
- Throws:
mks.ci.exception.CIException
- See Also:
BulkOp.performOp(mks.ci.server.CacheUpdate, int)
-
getTriggerEvent
public mks.frame.triggers.TriggerEvent getTriggerEvent()
Description copied from interface:mks.ci.server.ITriggerExposedOp
Get the trigger event the operation participates in.- Returns:
- The trigger event of the operation.
- See Also:
ITriggerExposedOp.getTriggerEvent()
-
getScriptBean
public LocalTriggerManager.ScriptOperationBean getScriptBean(int userId, java.sql.Connection connection)
Description copied from interface:mks.ci.server.ITriggerExposedOp
Get the bean that wraps this op in trigger scripts.- Parameters:
userId
- the current userconnection
- our database connection- Returns:
- The bean that wraps the operation.
- See Also:
ITriggerExposedOp.getScriptBean(int, Connection)
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classmks.ci.server.BaseTimeEntryOp
- Throws:
java.io.IOException
- See Also:
Externalizable.writeExternal(ObjectOutput)
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classmks.ci.server.BaseTimeEntryOp
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
- See Also:
Externalizable.readExternal(ObjectInput)
-
-