Package com.dotcms.publisher.business

Examples of com.dotcms.publisher.business.PublishQueueElement


            assets.add( assetBuffer.toString() + " +live:true" );
            assets.add( assetBuffer.toString() + " +working:true" );

        } else {
            int counter = 1;
            PublishQueueElement c;
            for ( int ii = 0; ii < bundle.size(); ii++ ) {
                c = bundle.get( ii );

                if ( !c.getType().equals( "contentlet" ) ) {
                    if ( (counter == _ASSET_LENGTH_LIMIT || (ii + 1 == bundle.size())) && !assetBuffer.toString().isEmpty() ) {
                        assets.add( "+(" + assetBuffer.toString() + ") +live:true" );
                        assets.add( "+(" + assetBuffer.toString() + ") +working:true" );
                    }
                    continue;
                }

                assetBuffer.append( IDENTIFIER ).append( c.getAsset() );
                assetBuffer.append( " " );

                if ( counter == _ASSET_LENGTH_LIMIT || (ii + 1 == bundle.size()) ) {
                    assets.add( "+(" + assetBuffer.toString() + ") +live:true" );
                    assets.add( "+(" + assetBuffer.toString() + ") +working:true" );
View Full Code Here


public class PublishQueueMapper extends CommonRowMapper<PublishQueueElement> {

  @Override
  public PublishQueueElement mapObject(Map<String, Object> row) {
    PublishQueueElement objToReturn = new PublishQueueElement();
   
    objToReturn.setId(getIntegerFromObj(row.get("id")));
    objToReturn.setAsset((String) row.get("asset"));
    objToReturn.setBundleId((String) row.get("bundle_id"));
    objToReturn.setEnteredDate((Date) row.get("entered_date"));
    objToReturn.setOperation(getIntegerFromObj(row.get("operation")));
    objToReturn.setPublishDate((Date) row.get("publish_date"));
    objToReturn.setLanguageId(getIntegerFromObj(row.get("language_id")));
    objToReturn.setType((String) row.get("type"));
   
   
   
    return objToReturn;
  }
View Full Code Here

TOP

Related Classes of com.dotcms.publisher.business.PublishQueueElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.