Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Support created date for tenant. #35

Merged
merged 1 commit into from
Jul 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package com.sitewhere.rest.model.tenant;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -60,6 +61,9 @@ public class Tenant implements ITenant {
/** Metadata map */
private Map<String, String> metadata;

/** Created date */
private Date createdDate;

/*
* @see com.sitewhere.spi.tenant.ITenant#getToken()
*/
Expand Down Expand Up @@ -207,4 +211,16 @@ public Map<String, String> getMetadata() {
public void setMetadata(Map<String, String> metadata) {
this.metadata = metadata;
}

/*
* @see com.sitewhere.spi.tenant.ITenant#getCreatedDate()
*/
@Override
public Date getCreatedDate() {
return createdDate;
}

public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package com.sitewhere.spi.tenant;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.sitewhere.spi.common.IColorProvider;
Expand Down Expand Up @@ -61,4 +62,11 @@ public interface ITenant extends IColorProvider, IIconProvider, IImageProvider,
* @return
*/
String getDatasetTemplateId();

/**
* Get date tenant was created.
*
* @return
*/
Date getCreatedDate();
}