@PersistenceConstructor public Document( String id, String name, LocalDate deadline, DocumentStatus status, String projectId, String notificationSchemaId, String assigneeId) { super(); this.id = id; this.name = name; this.deadline = deadline; this.status = status; this.projectId = projectId; this.notificationSchemaId = notificationSchemaId; this.assigneeId = assigneeId; }
/** * Construct an access token. */ @PersistenceConstructor public OAuth2AuthenticationAccessToken(OAuth2AccessToken oauth2AccessToken, OAuth2Authentication authentication, String authenticationId) { this.id = UUID.randomUUID() .toString(); this.tokenId = oauth2AccessToken.getValue(); this.oauth2AccessToken = oauth2AccessToken; this.authenticationId = authenticationId; this.userName = authentication.getName(); this.clientId = authentication.getOAuth2Request() .getClientId(); this.authentication = authentication; this.refreshToken = oauth2AccessToken.getRefreshToken() .getValue(); }
@PersistenceConstructor public User(final String id, String userName, long createTime, long lastLoginTime, double[] location, String firstName, String lastName, String emailAddress, String imageUrl, String displayName, final String credential) { this.userName = userName; this.id = id; this.createTime = createTime; this.lastLoginTime = lastLoginTime; this.location = location; this.firstName = firstName; this.lastName = lastName; this.emailAddress = emailAddress; this.imageUrl = imageUrl; this.displayName = displayName; this.credential = credential; }
@PersistenceConstructor public MongoClientDetails(final String clientId, final String clientSecret, final Set<String> scope, final Set<String> resourceIds, final Set<String> authorizedGrantTypes, final Set<String> registeredRedirectUris, final List<GrantedAuthority> authorities, final Integer accessTokenValiditySeconds, final Integer refreshTokenValiditySeconds, final Map<String, Object> additionalInformation, final Set<String> autoApproveScopes) { this.clientId = clientId; this.clientSecret = clientSecret; this.scope = scope; this.resourceIds = resourceIds; this.authorizedGrantTypes = authorizedGrantTypes; this.registeredRedirectUris = registeredRedirectUris; this.authorities = authorities; this.accessTokenValiditySeconds = accessTokenValiditySeconds; this.refreshTokenValiditySeconds = refreshTokenValiditySeconds; this.additionalInformation = additionalInformation; this.autoApproveScopes = autoApproveScopes; }
@PersistenceConstructor public MongoApproval(final String id, final String userId, final String clientId, final String scope, final ApprovalStatus status, final LocalDate expiresAt, final LocalDate lastUpdatedAt) { this.id = id; this.userId = userId; this.clientId = clientId; this.scope = scope; this.status = status; this.expiresAt = expiresAt; this.lastUpdatedAt = lastUpdatedAt; }
@PersistenceConstructor public MongoOAuth2AccessToken(final String tokenId, final byte[] token, final String authenticationId, final String username, final String clientId, final byte[] authentication, final String refreshToken) { this.tokenId = tokenId; this.token = token; this.authenticationId = authenticationId; this.username = username; this.clientId = clientId; this.authentication = authentication; this.refreshToken = refreshToken; }
@PersistenceConstructor public User(final String password, final String username, final UUID userUUID, final Set<GrantedAuthority> authorities, final boolean accountNonExpired, final boolean accountNonLocked, final boolean credentialsNonExpired, final boolean enabled) { this.password = password; this.username = username; this.userUUID = userUUID; this.authorities = authorities; this.accountNonExpired = accountNonExpired; this.accountNonLocked = accountNonLocked; this.credentialsNonExpired = credentialsNonExpired; this.enabled = enabled; }
@PersistenceConstructor public User(String userId, String username, String password, String name, String email, Date registrationDate, Set<String> roles, boolean accountNonExpired, boolean accountNonLocked, boolean enabled, boolean credentialsNonExpired) { this.userId = userId; this.username = username; this.password = password; this.name = name; this.email = email; this.registrationDate = registrationDate; this.roles = roles; this.accountNonExpired = accountNonExpired; this.accountNonLocked = accountNonLocked; this.enabled = enabled; this.credentialsNonExpired = credentialsNonExpired; }
@PersistenceConstructor public Employee(Long id, BigInteger _id, Long empid, String firstname, String lastname, Long age, String email, Date birthday, Long deptid) { super(); this.id = id; this._id = _id; this.empid = empid; this.firstname = firstname; this.lastname = lastname; this.age = age; this.email = email; this.birthday = birthday; this.deptid = deptid; }
@PersistenceConstructor public Department(BigInteger _id, Long id, Long deptid, String name) { super(); this._id = _id; this.id = id; this.deptid = deptid; this.name = name; }
@PersistenceConstructor public CalendarUser(Integer id, String email, String password, String firstName, String lastName) { this.id = id; this.firstName = firstName; this.lastName = lastName; this.email = email; this.password = password; }
/** * Event Constructor * @param id * @param summary * @param description * @param when * @param owner * @param attendee */ @PersistenceConstructor public Event(Integer id, String summary, String description, Calendar when, CalendarUser owner, CalendarUser attendee) { this.id = id; this.summary = summary; this.description = description; this.when = when; this.owner = owner; this.attendee = attendee; }
/** * Creates a new {@link Order} for the given {@link Customer}, shipping and billing {@link Address}. * * @param customer must not be {@literal null}. * @param shippingAddress must not be {@literal null}. * @param billingAddress can be {@literal null}. */ @PersistenceConstructor public Order(Customer customer, Address shippingAddress, Address billingAddress) { Assert.notNull(customer); Assert.notNull(shippingAddress); this.customer = customer; this.shippingAddress = shippingAddress; this.billingAddress = billingAddress; }
/** * Creates a new {@link Product} from the given name and description. * * @param name must not be {@literal null} or empty. * @param price must not be {@literal null} or less than or equal to zero. * @param description */ @PersistenceConstructor public Product(String name, BigDecimal price, String description) { Assert.hasText(name, "Name must not be null or empty!"); Assert.isTrue(BigDecimal.ZERO.compareTo(price) < 0, "Price must be greater than zero!"); this.name = name; this.price = price; this.description = description; }
@PersistenceConstructor public OAuth2AuthenticationAccessToken(OAuth2AccessToken oAuth2AccessToken, OAuth2Authentication authentication, String authenticationId) { this.id = UUID.randomUUID().toString(); this.tokenId = oAuth2AccessToken.getValue(); this.oAuth2AccessToken = oAuth2AccessToken; this.authenticationId = authenticationId; this.userName = authentication.getName(); this.clientId = authentication.getOAuth2Request().getClientId(); this.authentication = authentication; if(oAuth2AccessToken.getRefreshToken() != null) { this.refreshToken = oAuth2AccessToken.getRefreshToken().getValue(); } }
@PersistenceConstructor public OAuth2AuthenticationAccessToken(OAuth2AccessToken oAuth2AccessToken, OAuth2Authentication authentication, String authenticationId) { this.id = UUID.randomUUID().toString(); this.tokenId = oAuth2AccessToken.getValue(); this.oAuth2AccessToken = oAuth2AccessToken; this.authenticationId = authenticationId; this.userName = authentication.getName(); this.clientId = authentication.getOAuth2Request().getClientId(); this.authentication = authentication; this.refreshToken = oAuth2AccessToken.getRefreshToken().getValue(); }
/** * User persistence constructor. * @param id Id * @param username Username * @param authorities Authorities */ @PersistenceConstructor @JsonCreator public User(@JsonProperty ("id") final String id, @JsonProperty ("username") final String username, @JsonProperty ("authorities") final Set<String> authorities) { this.id = id; this.username = username; this.authorities = authorities; }
@PersistenceConstructor public Client(String randomId, String apiKey, String apiSecret, BigDecimal limit, BigDecimal amount, Transfer.Type type) { this.randomId = randomId; this.apiKey = apiKey; this.apiSecret = apiSecret; this.limit = limit; this.amount = amount; this.type = type; coinbase = new CoinbaseBuilder() .withApiKey(apiKey, apiSecret) .build(); }
@PersistenceConstructor public MongoOAuth2ClientToken(final String id, final String tokenId, final byte[] token, final String authenticationId, final String username, final String clientId) { this.id = id; this.tokenId = tokenId; this.token = token; this.authenticationId = authenticationId; this.username = username; this.clientId = clientId; }
@PersistenceConstructor public MongoOAuth2RefreshToken(final String tokenId, final byte[] token, final byte[] authentication) { this.tokenId = tokenId; this.token = token; this.authentication = authentication; }
@PersistenceConstructor public BlogPost(String postId, String title, String slug, String content, Date postDate, String status, boolean enableComments, Set<String> tags) { this.postId = postId; this.title = title; this.slug = slug; this.content = content; this.postDate = postDate; this.status = status; this.enableComments = enableComments; this.tags = tags; }
@PersistenceConstructor public MarkdownContent(Long id, String text) { this.id = id; this.text = text; }
@PersistenceConstructor public Role(Integer id, String name) { this.id = id; this.name = name; }
@PersistenceConstructor private DbVersion(String id) { this.id = id; }
@PersistenceConstructor public Conversation(ObjectId id, ObjectId owner){ this.id = id; this.owner = owner; }
@PersistenceConstructor protected Query(String creator, Date created) { this.creator = creator; this.created = created; }
@PersistenceConstructor private AuthToken(String id, ObjectId clientId) { this.id = id; this.clientId = clientId; }
/** * Creates an optional QuerySlot */ @JsonCreator @PersistenceConstructor public Slot(@JsonProperty("role") String role, @JsonProperty("tokenType") Token.Type tokenType) { this(role, tokenType, null, false); }
@PersistenceConstructor public Configuration(ObjectId id) { this.id = id; }
@PersistenceConstructor public Booking(Long userId) { this.userId = userId; }
@PersistenceConstructor public Pizza(String pizzaName, Sauce sauce, Set<Topping> pizzaToppings) { this.pizzaName = pizzaName; this.sauce = sauce; this.pizzaToppings = pizzaToppings; }
@PersistenceConstructor public Person(String name, String description) { this.name = name; }
@PersistenceConstructor public Post(String personId, String text) { this.id = new PostId(personId); this.text = text; this.date = new Date(); }
@PersistenceConstructor public PostId(String person) { this.person = person; this.postId = UUID.randomUUID(); }
@PersistenceConstructor public Venue(String name, Point location) { super(); this.name = name; this.location = location; }
@PersistenceConstructor public Country(String name, List<Language> languages) { super(); this.name = name; this.languages = languages; }