NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Map Workspace User Entity---

/*
* Copyright 2006-2021 HighRadius Corporation
*/
package com.highradius.g4.redline.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
import javax.persistence.CascadeType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
* The Class MapWorkspaceUser
* @author shouvik.ch
*
*/
@Entity
@Table(name = "map_workspace_user")
@SQLDelete(sql = "UPDATE map_workspace_user SET is_deleted = 1, update_time=now(), update_user='system' WHERE pk_map_workspace_user_id = ?")
@Where(clause = "is_deleted = 0")
public class MapWorkspaceUser {

/** The pk map workspace user id. */
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name ="pk_map_workspace_user_id")
private Long pkMapWorkspaceUserId;

/** The fk workspace id. */
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "fk_workspace_id")
private G4Workspace fkWorkspaceId;

/** The fk user id. */
@Column(name = "fk_user_id")
private Integer fkUserId;

/** The is deleted. */
@Column(name ="is_deleted")
private boolean isDeleted = false;

/** The user role. */
@Column(name = "user_role")
private String userRole;

/** The create user. */
@Column(name = "create_user")
private String createUser;

/** The create date. */
@Column(name = "create_time")
private Timestamp createTime;

/** The update user. */
@Column(name = "update_user")
private String updateUser;

/** The update date. */
@Column(name = "update_time")
private Timestamp updateTime;

/**
* Gets the pk map workspace user id.
*
* @return the pkWorkspaceUserId
*/
public Long getPkMapWorkspaceUserId() {
return pkMapWorkspaceUserId;
}

/**
* Sets the pk map workspace user id.
*
* @param pkWorkspaceUserId the pkMapWorkspaceId to set
*/
public void setPkMapWorkspaceUserId(Long pkMapWorkspaceUserId) {
this.pkMapWorkspaceUserId = pkMapWorkspaceUserId;
}

/**
* Gets the fk workspace id.
*
* @return the fkWorkspaceId
*/
public G4Workspace getFkWorkspaceId() {
return fkWorkspaceId;
}

/**
* Sets the fk workspace id id.
*
* @param fkWorkspaceId the fkWorkspaceId to set
*/
public void setFkWorkspaceId(G4Workspace fkWorkspaceId) {
this.fkWorkspaceId = fkWorkspaceId;
}

/**
* Gets the fk user id.
*
* @return the fkUserId
*/
public Integer getFkUserId() {
return fkUserId;
}

/**
* Sets the fk user id.
*
* @param fkUserId the fkUserId to set
*/
public void setFkUserId(Integer fkUserId) {
this.fkUserId = fkUserId;
}

/**
* Checks if is deleted.
*
* @return the isDeleted
*/
public boolean isDeleted() {
return isDeleted;
}

/**
* Sets the deleted.
*
* @param isDeleted the isDeleted to set
*/
public void setDeleted(boolean isDeleted) {
this.isDeleted = isDeleted;
}

/**
* Gets the user role.
*
* @return the userRole
*/
public String getUserRole() {
return userRole;
}

/**
* Sets the user role.
*
* @param useRole the userRole to set
*/
public void setUserRole(String userRole) {
this.userRole = userRole;
}

/**
* Gets the creates the user.
*
* @return the createUser
*/
public String getCreateUser() {
return createUser;
}


/**
* Sets the creates the user.
*
* @param createUser the createUser to set
*/
public void setCreateUser(String createUser) {
this.createUser = createUser;
}

/**
* Gets the creates the time.
*
* @return the createTime
*/
public Timestamp getCreateTime() {
return createTime;
}

/**
* Sets the creates the time.
*
* @param createTime the createTime to set
*/
public void setCreateTime(Timestamp createTime) {
this.createTime = createTime;
}

/**
* Gets the update user.
*
* @return the updateUser
*/
public String getUpdateUser() {
return updateUser;
}

/**
* Sets the update user.
*
* @param updateUser the updateUser to set
*/
public void setUpdateUser(String updateUser) {
this.updateUser = updateUser;
}

/**
* Gets the update time.
*
* @return the updateTime
*/
public Timestamp getUpdateTime() {
return updateTime;
}

/**
* Sets the update time.
*
* @param updateTime the updateTime to set
*/
public void setUpdateDate(Timestamp updateTime) {
this.updateTime = updateTime;
}

}


Map Workspace User DTO---
/*
* Copyright 2006-2021 HighRadius Corporation
*/

package com.highradius.g4.redline.dto;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlRootElement;

/**
* The Class MapWorkspaceUSerDTO represents the resource map_workspace_user
*
* @author shouvik.ch
*
*/
@XmlRootElement(name="workspaceUser")

public class MapWorkspaceUserDTO {



/** Id of workspace. */
private Long pkWorkspaceId;
/** Name of the workspace. */
private String name;
/** The count of users mapped to the workspace. */
private Integer usersMapped;

/** The description of the workspace */
private String description;

/** The list of user ids mapped to workspace */
private ArrayList<Integer> userIds;


/**
* Gets the users mapped.
*
* @return the users mapped.
*/
public Integer getUsersMapped() {
return usersMapped;
}

/**
* Sets the users mapped.
*
* @param usersMapped the new usersMapped
*/
public void setUsersMapped(Integer usersMapped) {
this.usersMapped = usersMapped;
}

/**
* Gets the workspace id
*
* @return the workspace id
*/
public Long getPkWorkspaceId() {
return pkWorkspaceId;
}
/**
* Sets the workspace id
*
* @param pkWorkspaceId the new pkWorkspaceId
*/

public void setPkWorkspaceId(Long pkWorkspaceId) {
this.pkWorkspaceId = pkWorkspaceId;
}

/**
* Gets the workspace name
*
* @return the workspace name
*/
public String getName() {
return name;
}

/**
* Sets the workspace name
*
* @param name the new name
*/
public void setName(String name) {
this.name = name;
}

/**
* Gets the workspace description
*
* @return the workspace description
*/
public String getDescription() {
return description;
}

/**
* Sets the workspace description
*
* @param name the new description
*/
public void setDescription(String description) {
this.description = description;
}

/**
* Gets the list of user ids mapped to workspace
*
* @return the list of user ids
*/
public ArrayList<Integer> getUserIds() {
return userIds;
}

/**
* Sets the user ids mapped
*
* @param userid the new userIds
*/

public void setUserIds(ArrayList<Integer> userid) {
this.userIds = userid;
}




}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.