View Javadoc
1   package com.srv4pos.server.api.seller;
2   
3   import com.srv4pos.server.api.infrastructure.Info;
4   import org.springframework.roo.addon.javabean.RooJavaBean;
5   import org.springframework.roo.addon.json.RooJson;
6   import org.springframework.roo.addon.tostring.RooToString;
7   
8   /**
9    * Information about availability of local control units and activation expiration.
10   * <p>User: Pavel Abizyaev, Date: 16.07.14 19:07</p>
11   */
12  @RooJavaBean
13  @RooToString
14  @RooJson(deepSerialize = true)
15  public class SellerStatsInfo implements Info {
16  
17      /** true if at least one used activation has local control unit.  */
18      private boolean hasLocalControlUnits;
19  
20      /** amount of "latest installations" (Device.latest) with latest activation date < TODAY .*/
21      private int expiredActivations;
22  
23      /* amount of "latest installations" (Device.latest) with latest activation date > TODAY and < TODAY + 1 MONTH .*/
24      private int expireSoonActivations;
25  
26      /* always false */
27      private boolean hasTables;
28  
29      /* always false */
30      private boolean hasAdditives;
31  
32      /* always false */
33      private boolean hasAdditiveClasses;
34  }