private Cmdb requestToCmdb( CmdbRequest request ){
        Cmdb cmdb = new Cmdb();
        cmdb.setConfigurationItem( request.getConfigurationItem() );
        cmdb.setConfigurationItemSubType( request.getConfigurationItemSubType() );
        cmdb.setConfigurationItemType( request.getConfigurationItemType() );
        cmdb.setAssignmentGroup( request.getAssignmentGroup() );
        cmdb.setOwnerDept( request.getOwnerDept() );
        cmdb.setCommonName( request.getCommonName() );
        cmdb.setValidConfigItem( true );
        cmdb.setTimestamp( System.currentTimeMillis() );
        cmdb.setItemType( COMPONENT_TYPE );
        return cmdb;
    }
private Cmdb requestToCmdb ( CmdbRequest request ) { Cmdb cmdb = new Cmdb ( ) ; cmdb . setConfigurationItem ( request . getConfigurationItem ( ) ) ; cmdb . setConfigurationItemSubType ( request . getConfigurationItemSubType ( ) ) ; cmdb . setConfigurationItemType ( request . getConfigurationItemType ( ) ) ; cmdb . setAssignmentGroup ( request . getAssignmentGroup ( ) ) ; cmdb . setOwnerDept ( request . getOwnerDept ( ) ) ; cmdb . setCommonName ( request . getCommonName ( ) ) ; cmdb . setValidConfigItem ( true ) ; cmdb . setTimestamp ( System . currentTimeMillis ( ) ) ; cmdb . setItemType ( COMPONENT_TYPE ) ; return cmdb ; }
Takes CmdbRequest and converts to Cmdb Object
@param request
@return Cmdb item