Hello raja,
here is a pice of code which i didi for a custom check-in, so u can add on that!
###########
IDfId checkinDocument(IDfSession docbaseSession,SearchAndReplaceResult resultObj,String filename) throws DfException{
//Construct a new checkin operation
IDfCheckinOperation checkin = clientX.getCheckinOperation();
//creating a checkin node
IDfCheckinNode checkinNode=null;
//obtaining an IDfSys object from the object on the file system
IDfId id=resultObj.getId();
IDfSysObject sysObj = (IDfSysObject)docbaseSession.getObjectByQualification(resultObj.getType()+ " where r_object_id='"+ id +"'");
//adding the object to the operation
checkinNode = (IDfCheckinNode)checkin.add(sysObj);
//configuring the settings for the checkin node
checkinNode.setFilePath(filename);
checkinNode.setKeepLocalFile(false);
checkinNode.setCheckinVersion(IDfCheckinOperation.NEXT_MINOR);
checkinNode.setVersionLabels("CURRENT,WIP");
checkinNode.setRetainLock(false);
if(checkinNode == null ){
return null;
}
//Execute the operation
if( !checkin.execute() ) {
return null;
}
sysObj.refreshReference();
return checkinNode.getNewObjectId();
}
#########3
Raja <bhanuar-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
Hi,
I have a require
ment where I need to truncate few
properties of an object if the object is checked-in as
next minor version. For this i need to have
customization on top of webcompoment libry check-in.
Has any body done this kind of rquirement before? Any
solution highly appreciated.
Thanks
Raja
__________________________________________________________
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
Luggage? GPS? Comic books?
Check out fitting
gifts for grads at Yahoo! Search.
__._,_.___
SPONSORED LINKS
__,_._,___