View Javadoc
1   package com.srv4pos.server.api.softwareVendor;
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   import javax.validation.Valid;
9   import javax.validation.constraints.NotNull;
10  import javax.validation.constraints.Size;
11  
12  /**
13   * Represents a company who has a cash register software and integrates the software with this server.
14   * List of software represented by software vendor is under
15   * {@link com.srv4pos.server.api.applicationDescription.ApplicationDescriptionInfo}
16   * <p>User: Sergey, Date: 21.05.2014 22:05</p>
17   */
18  @RooJavaBean
19  @RooToString
20  @RooJson(deepSerialize = true)
21  public class SoftwareVendorInfo implements Info {
22  
23      /**
24       * Identifier of software vendor in the database.
25       */
26      private long id;
27  
28      /**
29       * Identifier of software vendor.
30       */
31      @NotNull
32      @Size(max = 32, min = 1)
33      private String name;
34  
35      /**
36       * Information about email account.
37       */
38      @NotNull
39      @Valid
40      private EmailAccountInfo salesEmailInfo;
41  
42      /**
43       * Information about email server.
44       */
45      @NotNull
46      @Valid
47      private MailSettingsInfo mailSettingsInfo;
48  
49      private boolean canManageControlUnit;
50  }