Skip to content

Commit ed9f143

Browse files
authored
Get rid of soft-delete
1 parent 76294e9 commit ed9f143

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/Constants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ private Constants() {
2727
public static final String NUMBER = "number";
2828
public static final String NAME = "name";
2929
public static final String VERSION = "version";
30-
public static final String DELETED = "deleted";
3130
public static final String CASCADE = "forceCascade";
3231
public static final String PRICE = "price";
3332
public static final String DISCOUNT = "discount";

NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/entity/License.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* <b>active</b> - If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,
3232
* the license is excluded from the validation process.
3333
* <p>
34-
* <b>price</b> - price for the license. If more than 0, it must always be accompanied by the currency specification. Read-only,
35-
* set from license template on creation.
34+
* <b>price</b> - price for the license. If more than 0, it must always be accompanied by the currency specification.
35+
* Read-only, set from license template on creation.
3636
* <p>
3737
* <b>currency</b> - specifies currency for the license price. Check data types to discover which currencies are
3838
* supported. Read-only, set from license template on creation.
@@ -41,7 +41,7 @@
4141
* template on creation, if not specified explicitly.
4242
* <p>
4343
* Arbitrary additional user properties of string type may be associated with each license. The name of user property
44-
* must not be equal to any of the fixed property names listed above and must be none of <b>id, deleted, licenseeNumber,
44+
* must not be equal to any of the fixed property names listed above and must be none of <b>id, licenseeNumber,
4545
* licenseTemplateNumber</b>. See {@link com.labs64.netlicensing.schema.context.Property} for details.
4646
*/
4747
public interface License extends BaseEntity {

NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/entity/Licensee.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
* disabled (tbd).
2929
* <p>
3030
* Arbitrary additional user properties of string type may be associated with each licensee. The name of user property
31-
* must not be equal to any of the fixed property names listed above and must be none of <b>id, deleted,
32-
* productNumber</b>.
31+
* must not be equal to any of the fixed property names listed above and must be none of <b>id, productNumber</b>.
3332
*/
3433
public interface Licensee extends BaseEntity {
3534

NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/entity/Product.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* <b>licensingInfo</b> - Licensing information. Optional.
3939
* <p>
4040
* Arbitrary additional user properties of string type may be associated with each product. The name of user property
41-
* must not be equal to any of the fixed property names listed above and must be none of <b>id, deleted</b>.
41+
* must not be equal to any of the fixed property names listed above and must not be <b>id</b>.
4242
*/
4343
public interface Product extends BaseEntity {
4444

NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/entity/impl/BaseEntityImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public static List<String> getReservedProps() {
5252
reserved.add(Constants.ID);
5353
reserved.add(Constants.NUMBER);
5454
reserved.add(Constants.ACTIVE);
55-
reserved.add(Constants.DELETED);
5655
return reserved;
5756
}
5857

@@ -130,7 +129,7 @@ protected String toString(final MultivaluedMap<String, Object> propMap) {
130129
boolean firstProp = true;
131130
for (final String propKey : propMap.keySet()) {
132131
final Object propValue = propMap.get(propKey);
133-
if (propValue != null && (!(propValue instanceof Collection<?>) || ((Collection<?>) propValue).size() > 0)) {
132+
if ((propValue != null) && (!(propValue instanceof Collection<?>) || (((Collection<?>) propValue).size() > 0))) {
134133
builder.append(firstProp ? "" : ", ");
135134
firstProp = false;
136135

0 commit comments

Comments
 (0)