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

[incubator-kie-issues-1519] Clean Up Task Model #3704

Merged
merged 1 commit into from
Oct 11, 2024
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 @@ -20,9 +20,7 @@

import java.net.URI;

import org.kie.kogito.process.workitem.TaskMetaEntity;

public class Attachment extends TaskMetaEntity<String, URI> {
public class Attachment extends UserTaskEntity<String, URI> {

private static final long serialVersionUID = 1L;
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
*/
package org.kie.kogito.usertask.model;

import org.kie.kogito.process.workitem.TaskMetaEntity;

public class Comment extends TaskMetaEntity<String, String> {
public class Comment extends UserTaskEntity<String, String> {

private static final long serialVersionUID = -9106249675352498780L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.kogito.process.workitem;
package org.kie.kogito.usertask.model;

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

public class TaskMetaEntity<K extends Serializable, T extends Serializable> implements Serializable, Cloneable {
public class UserTaskEntity<K extends Serializable, T extends Serializable> implements Serializable, Cloneable {

private static final long serialVersionUID = 1L;
private K id;
protected T content;
protected Date updatedAt;
protected String updatedBy;

public TaskMetaEntity() {
public UserTaskEntity() {
}

public TaskMetaEntity(K id, String user) {
public UserTaskEntity(K id, String user) {
this.id = id;
this.updatedBy = user;
}
Expand Down Expand Up @@ -81,7 +81,7 @@ public boolean equals(Object obj) {
return false;
if (getClass() != obj.getClass())
return false;
return id.equals(((TaskMetaEntity<K, T>) obj).id);
return id.equals(((UserTaskEntity<K, T>) obj).id);
}

@Override
Expand Down
Loading