Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.flexdbserver.services.checkincheckout
Class CheckInService  view CheckInService download CheckInService.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.checkincheckout.CheckInService
All Implemented Interfaces:
com.flexstor.flexdbserver.services.Service, com.flexstor.common.threadmgr.ThreadCallbackI

public class CheckInService
extends java.lang.Object
implements com.flexstor.flexdbserver.services.Service, com.flexstor.common.threadmgr.ThreadCallbackI

CheckInService

Checks in new versions of assets after modifications, making such assets the current assets in the system. Older versions are kept in the system.

Input Data Object

com.flexstor.common.data.ActionData

Output Data Object

com.flexstor.common.dataActionResult

Programmable Properties (passed inside data object)

Specific Properties (apply to each individual asset)

MacBinaryFormat: Indicates whether the file represented by this asset is in MacBinary format or not (defaults to false).
Data type: Boolean
Legal values: true or false

RegenerateThumbnails: Indicates if the CheckInService needs to call the ImportActionDataService to regenerate the thumbnail (defaults to false).
Data type: Boolean
Legal values: true or false

VersionNo: The version number of the asset to check in.
Data type: String
Legal values: any String

VersionNoPrevious: The version number of the asset, previous to being checked in.
Data type: String
Legal values: Any String

CheckInDateTime: The date and time this asset was checked in.
Data type: String
Legal values: String of the form MM-DD-YYYY hh24:mi:ss

SourceLocation: Full path, including name, of file to be checked in.
Data type: String
Legal values: Full path to the file, including name

KeepLowres: If set to true, it will preserve the old low resolution asset synchronized with the old asset prior being to checked in (defaults to true).
Data type: Boolean
Legal values: true or false


Field Summary
protected  com.flexstor.common.data.ActionData data
           
private  int id
           
static java.lang.String IDENTIFIER
           
protected  int nManagerRunning
           
protected  com.flexstor.common.data.ActionResult result
           
protected  java.lang.String sThisService
           
protected  java.util.Vector vBadRecords
           
protected  java.util.Vector vRecords
           
 
Constructor Summary
CheckInService()
           
 
Method Summary
private  java.util.Hashtable createSubSets()
          create a Hashtable containing a list of objects to be sent to the service manager.
 com.flexstor.common.data.ActionResult go()
          The start of the CheckIn Service.
 void initData(com.flexstor.common.data.ActionData actionData)
          A data initialization method called at the beginning of the service.
private  void notify(com.flexstor.common.data.ActionResult result)
          update the ImportData after the set of services are executed for a ImportData sub set.
 void setServiceContext(com.flexstor.flexdbserver.services.ServiceContext context)
          Calls before the service is initialized (before initData is called) to pass information about the environment in which the service is running.
 void threadTaskEnd(com.flexstor.common.threadmgr.ThreadConsumerI consumer, java.lang.Object obj)
          Called when a thread task has just finished.
 void threadTaskStart(com.flexstor.common.threadmgr.ThreadConsumerI consumer, java.lang.Object obj)
          Called when a thread task is about to begin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values

data

protected com.flexstor.common.data.ActionData data

result

protected com.flexstor.common.data.ActionResult result

vRecords

protected java.util.Vector vRecords

vBadRecords

protected java.util.Vector vBadRecords

nManagerRunning

protected int nManagerRunning

sThisService

protected java.lang.String sThisService

id

private int id
Constructor Detail

CheckInService

public CheckInService()
Method Detail

setServiceContext

public void setServiceContext(com.flexstor.flexdbserver.services.ServiceContext context)
Calls before the service is initialized (before initData is called) to pass information about the environment in which the service is running. This environment consists of information about the properties set for the service in one of these files (services.config, roletype_services.config, or *.ctl), plus methods to access other information such as an instance of the service broker to invoke other services, the transaction id for the service, file separator character and local path for the installation directory and configuration directory.

Specified by:
setServiceContext in interface com.flexstor.flexdbserver.services.Service

initData

public void initData(com.flexstor.common.data.ActionData actionData)
A data initialization method called at the beginning of the service. The input argument, ActionData must be cast into its subclass in order to extract the CheckInService specific data from it.

Specified by:
initData in interface com.flexstor.flexdbserver.services.Service

go

public com.flexstor.common.data.ActionResult go()
The start of the CheckIn Service.

Specified by:
go in interface com.flexstor.flexdbserver.services.Service

createSubSets

private java.util.Hashtable createSubSets()
create a Hashtable containing a list of objects to be sent to the service manager. key = server name; value = ServiceManagerData


notify

private void notify(com.flexstor.common.data.ActionResult result)
update the ImportData after the set of services are executed for a ImportData sub set.


threadTaskStart

public void threadTaskStart(com.flexstor.common.threadmgr.ThreadConsumerI consumer,
                            java.lang.Object obj)
Called when a thread task is about to begin.

Specified by:
threadTaskStart in interface com.flexstor.common.threadmgr.ThreadCallbackI

threadTaskEnd

public void threadTaskEnd(com.flexstor.common.threadmgr.ThreadConsumerI consumer,
                          java.lang.Object obj)
Called when a thread task has just finished.

Specified by:
threadTaskEnd in interface com.flexstor.common.threadmgr.ThreadCallbackI