X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjshopcore%2Fmodel%2Fcustomer%2FCustomer.java;h=d2bd2b356744ba42ad66cdb9e0eb3bd971be99c9;hb=2f41e66470201a3057be8757cc53f737d53e2c82;hp=cbfe4263b392e3684c8d20ebc86c9c82b2875ec2;hpb=e8f0175feb8e5dd1d5ba09054400f6df6b2f2804;p=jproduct-core.git diff --git a/src/org/mxchange/jshopcore/model/customer/Customer.java b/src/org/mxchange/jshopcore/model/customer/Customer.java index cbfe426..d2bd2b3 100644 --- a/src/org/mxchange/jshopcore/model/customer/Customer.java +++ b/src/org/mxchange/jshopcore/model/customer/Customer.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Roland Haeder + * Copyright (C) 2016 Roland Haeder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,131 +18,138 @@ package org.mxchange.jshopcore.model.customer; import java.io.Serializable; import java.util.Calendar; -import org.mxchange.jcore.model.contact.Contact; +import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jshopcore.model.customer.status.CustomerAccountStatus; /** * A customer interface - * + *

* @author Roland Haeder */ public interface Customer extends Serializable { /** * Copies all attributes from other customer object to this - * + *

* @param customer Source instance */ - public void copyAll (final Customer customer); + void copyAll (final Customer customer); /** * Getter for contact instance - * + *

* @return Contact id number */ - public Contact getContact (); + Contact getContact (); /** * Setter for contact instance - * + *

* @param contact Contact instance */ - public void setContact (final Contact contact); + void setContact (final Contact contact); /** * Getter for confirmation key - * + *

* @return Confirmation key */ - public String getCustomerConfirmKey (); + String getCustomerConfirmKey (); /** * Setter for confirmation key - * + *

* @param customerConfirmKey Confirmation key */ - public void setCustomerConfirmKey (final String customerConfirmKey); + void setCustomerConfirmKey (final String customerConfirmKey); /** * Getter for "created" timestamp - * + *

* @return "created" timestamp */ - public Calendar getCustomerCreated (); + Calendar getCustomerCreated (); /** * Setter for "created" timestamp - * + *

* @param customerCreated "created" timestamp */ - public void setCustomerCreated (final Calendar customerCreated); + void setCustomerCreated (final Calendar customerCreated); /** * Getter for customer id number - * + *

* @return Customer id number */ - public Long getCustomerId (); + Long getCustomerId (); /** * Settte for customer id number - * + *

* @param customerId Customer id number */ - public void setCustomerId (final Long customerId); + void setCustomerId (final Long customerId); /** * Getter for "locked" timestamp - * + *

* @return "locked" timestamp */ - public Calendar getCustomerLocked (); + Calendar getCustomerLocked (); /** * Getter for "locked" timestamp - * + *

* @param customerLocked "locked" timestamp */ - public void setCustomerLocked (final Calendar customerLocked); + void setCustomerLocked (final Calendar customerLocked); /** * Getter for customer number - * + *

* @return Customer number */ - public String getCustomerNumber (); + String getCustomerNumber (); /** * Setter for customer number - * + *

* @param customerNumber Customer number */ - public void setCustomerNumber (final String customerNumber); + void setCustomerNumber (final String customerNumber); /** * Getter for password hash - * + *

* @return Password hash */ - public String getCustomerPasswordHash (); + String getCustomerPasswordHash (); /** * Setter for password hash - * + *

* @param customerPasswordHash Password hash */ - public void setCustomerPasswordHash (final String customerPasswordHash); + void setCustomerPasswordHash (final String customerPasswordHash); /** * Getter for account status - * + *

* @return Account status */ - public String getCustomerStatus (); + CustomerAccountStatus getCustomerAccountStatus (); /** * Setter for account status - * + *

* @param customerStatus Account status */ - public void setCustomerStatus (final String customerStatus); + void setCustomerAccountStatus (final CustomerAccountStatus customerStatus); + + @Override + boolean equals (final Object object); + + @Override + int hashCode (); }