summaryrefslogtreecommitdiff
path: root/src/main/java/com/android/vts/entity/RoleEntity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/android/vts/entity/RoleEntity.java')
-rw-r--r--src/main/java/com/android/vts/entity/RoleEntity.java43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/main/java/com/android/vts/entity/RoleEntity.java b/src/main/java/com/android/vts/entity/RoleEntity.java
deleted file mode 100644
index 508a9ca..0000000
--- a/src/main/java/com/android/vts/entity/RoleEntity.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.android.vts.entity;
-
-import static com.googlecode.objectify.ObjectifyService.ofy;
-
-import com.googlecode.objectify.Key;
-import com.googlecode.objectify.annotation.Cache;
-import com.googlecode.objectify.annotation.Entity;
-import com.googlecode.objectify.annotation.Id;
-import java.util.Date;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-
-@Cache
-@Entity
-@EqualsAndHashCode(of = "role")
-@NoArgsConstructor
-public class RoleEntity implements DashboardEntity {
-
- private static final long serialVersionUID = 1L;
-
- @Id private String role;
-
- /** When this record was created or updated */
- @Getter Date updated;
-
- /** Construction function for UserEntity Class */
- public RoleEntity(String roleName) {
- this.role = roleName;
- }
-
- /** Get role by email */
- public static RoleEntity getRole(String role) {
- return ofy().load().type(RoleEntity.class).id(role).now();
- }
-
- /** Saving function for the instance of this class */
- @Override
- public Key<RoleEntity> save() {
- this.updated = new Date();
- return ofy().save().entity(this).now();
- }
-}