645 lines
19 KiB
Java
645 lines
19 KiB
Java
package com.nttdata.calender.changes;
|
|
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* The {@link ChangeItem} class defines a model for a change item. A change item
|
|
* is an object that represents a specific change in the Gantt system, and
|
|
* contains information about the change such as the resource id, name, state,
|
|
* contract, support group, coordinator, provider cluster, approval status, and
|
|
* implementation details.
|
|
*/
|
|
public class ChangeItem {
|
|
private String resourceId;
|
|
private String resourceName;
|
|
private String changeNr;
|
|
private int state;
|
|
private String contract;
|
|
private String supportGroup;
|
|
private String coordinatorSgId;
|
|
private String coordinatorSg;
|
|
private String supportGroupId;
|
|
private String providerCluster;
|
|
private String approvalStatus;
|
|
private String statusReason;
|
|
private String changeImplementer;
|
|
private String changeImplementerLogin;
|
|
private String changeImplementerPersonId;
|
|
private boolean implementerEdit;
|
|
private String packageType;
|
|
private Date D1;
|
|
private Date D2;
|
|
private Date D3;
|
|
private Date D4;
|
|
private boolean flagPermit;
|
|
private boolean flagApprove;
|
|
private boolean flagReject;
|
|
private boolean flagCancel;
|
|
|
|
/**
|
|
*
|
|
* Constructs a new ChangeItem object with a given resourceId.
|
|
*
|
|
* @param resourceId a string that represents the resource id of the change
|
|
* item.
|
|
*/
|
|
public ChangeItem(String resourceId) {
|
|
this.resourceId = resourceId;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Constructs a new ChangeItem object with a given resourceId, resourceName and
|
|
* D2.
|
|
*
|
|
* @param resourceId a string that represents the resource id of the change
|
|
* item.
|
|
* @param resourceName a string that represents the resource name of the change
|
|
* item.
|
|
* @param D2 a date that represents a date related to the change item.
|
|
*/
|
|
public ChangeItem(String resourceId, String resourceName, Date D2) {
|
|
this.resourceId = resourceName;
|
|
this.resourceName = resourceName;
|
|
this.D2 = D2;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Constructs a new ChangeItem object with a given resourceId, resourceName,
|
|
* state,
|
|
* contract, supportGroup, tasks, and D2.
|
|
*
|
|
* @param resourceId a string that represents the resource id of the change
|
|
* item.
|
|
* @param resourceName a string that represents the resource name of the change
|
|
* item.
|
|
* @param state an integer that represents the state of the change item.
|
|
* @param contract a string that represents the contract of the change item.
|
|
* @param supportGroup a string that represents the support group of the change
|
|
* item.
|
|
* @param tasks a string that represents the tasks of the change item.
|
|
* @param D2 a date that represents a date related to the change item.
|
|
*/
|
|
public ChangeItem(String resourceId, String resourceName, int state, String contract, String supportGroup,
|
|
String tasks,
|
|
Date D2) {
|
|
this.resourceId = resourceId;
|
|
this.resourceName = resourceName;
|
|
this.state = state;
|
|
this.contract = contract;
|
|
this.supportGroup = supportGroup;
|
|
this.D2 = D2;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Constructs a new ChangeItem object with a given set of member variables.
|
|
*
|
|
* @param resourceId a string that represents the resource id of
|
|
* the change item.
|
|
* @param resourceName a string that represents the resource name
|
|
* of the change item.
|
|
* @param changeNr a string that represents the change number
|
|
* of the change item.
|
|
* @param state an integer that represents the state of the
|
|
* change item.
|
|
* @param contract a string that represents the contract of the
|
|
* change item.
|
|
* @param supportGroup a string that represents the support group
|
|
* of the change item.
|
|
* @param coordinatorSgId a string that represents the coordinator
|
|
* support group id of the change item.
|
|
* @param coordinatorSg a string that represents the coordinator
|
|
* support group of the change item.
|
|
* @param supportGroupId a string that represents the support group
|
|
* id of the change item.
|
|
* @param providerCluster a string that represents the provider
|
|
* cluster of the change item.
|
|
* @param approvalStatus a string that represents the approval status
|
|
* of the change item.
|
|
* @param statusReason a string that represents the status reason
|
|
* of the change item.
|
|
* @param D1 a date that represents a date related to the
|
|
* change item.
|
|
* @param D2 a date that represents a date related to the
|
|
* change item.
|
|
* @param D3 a date that represents a date related to the
|
|
* change item.
|
|
* @param D4 a date that represents a date related to the
|
|
* change item.
|
|
* @param changeImplementer a string that represents the change
|
|
* implementer of the change item.
|
|
* @param changeImplementerLogin a string that represents the login of the
|
|
* change implementer of the change item.
|
|
* @param changeImplementerPersonId a string that represents the person id of
|
|
* the change implementer of the change item.
|
|
*/
|
|
public ChangeItem(String resourceId, String resourceName, String changeNr, int state, String contract,
|
|
String supportGroup, String coordinatorSgId, String coordinatorSg, String supportGroupId,
|
|
String providerCluster, String approvalStatus, String statusReason, Date D1, Date D2, Date D3, Date D4,
|
|
String changeImplementer, String changeImplementerLogin, String changeImplementerPersonId) {
|
|
this.resourceId = resourceId;
|
|
this.resourceName = resourceName;
|
|
this.changeNr = changeNr;
|
|
this.state = state;
|
|
this.contract = contract;
|
|
this.supportGroup = supportGroup;
|
|
this.coordinatorSgId = coordinatorSgId;
|
|
this.coordinatorSg = coordinatorSg;
|
|
this.supportGroupId = supportGroupId;
|
|
this.providerCluster = providerCluster;
|
|
this.approvalStatus = approvalStatus;
|
|
this.statusReason = statusReason;
|
|
this.D1 = D1;
|
|
this.D2 = D2;
|
|
this.D3 = D3;
|
|
this.D4 = D4;
|
|
this.changeImplementer = changeImplementer;
|
|
this.changeImplementerLogin = changeImplementerLogin;
|
|
this.changeImplementerPersonId = changeImplementerPersonId;
|
|
}
|
|
|
|
/**
|
|
* Retrieves the flag indicating whether the change item has a permit.
|
|
*
|
|
* @return {@code true} if the change item has a permit, {@code false}
|
|
* otherwise.
|
|
*/
|
|
public boolean getFlagPermit() {
|
|
return this.flagPermit;
|
|
}
|
|
|
|
/**
|
|
* Sets the flag indicating whether the change item has a permit.
|
|
*
|
|
* @param flagPermit {@code true} if the change item has a permit, {@code false}
|
|
* otherwise.
|
|
*/
|
|
public void setFlagPermit(boolean flagPermit) {
|
|
this.flagPermit = flagPermit;
|
|
}
|
|
|
|
/**
|
|
* Retrieves the flag indicating whether the change item has been approved.
|
|
*
|
|
* @return {@code true} if the change item has been approved, {@code false}
|
|
* otherwise.
|
|
*/
|
|
public boolean getFlagApprove() {
|
|
return this.flagApprove;
|
|
}
|
|
|
|
/**
|
|
* Sets the flag indicating whether the change item has been approved.
|
|
*
|
|
* @param flagApprove {@code true} if the change item has been approved,
|
|
* {@code false} otherwise.
|
|
*/
|
|
public void setFlagApprove(boolean flagApprove) {
|
|
this.flagApprove = flagApprove;
|
|
}
|
|
|
|
/**
|
|
* Retrieves the flag indicating whether the change item has been rejected.
|
|
*
|
|
* @return {@code true} if the change item has been rejected, {@code false}
|
|
* otherwise.
|
|
*/
|
|
public boolean getFlagReject() {
|
|
return this.flagReject;
|
|
}
|
|
|
|
/**
|
|
* Sets the flag indicating whether the change item has been rejected.
|
|
*
|
|
* @param flagReject {@code true} if the change item has been rejected,
|
|
* {@code false} otherwise.
|
|
*/
|
|
public void setFlagReject(boolean flagReject) {
|
|
this.flagReject = flagReject;
|
|
}
|
|
|
|
/**
|
|
* Retrieves the flag indicating whether the change item has been canceled.
|
|
*
|
|
* @return {@code true} if the change item has been canceled, {@code false}
|
|
* otherwise.
|
|
*/
|
|
public boolean getFlagCancel() {
|
|
return this.flagCancel;
|
|
}
|
|
|
|
/**
|
|
* Sets the flag indicating whether the change item has been canceled.
|
|
*
|
|
* @param flagCancel {@code true} if the change item has been canceled,
|
|
* {@code false} otherwise.
|
|
*/
|
|
public void setFlagCancel(boolean flagCancel) {
|
|
this.flagCancel = flagCancel;
|
|
}
|
|
|
|
/**
|
|
* Gets the status reason of the change item.
|
|
*
|
|
* @return String that represents the status reason of the change item.
|
|
*/
|
|
public String getStatusReason() {
|
|
return this.statusReason;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sets the status reason of the change item.
|
|
*
|
|
* @param statusReason String that represents the status reason of the change
|
|
* item.
|
|
*/
|
|
public void setStatusReason(String statusReason) {
|
|
this.statusReason = statusReason;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Gets the approval status of the change item.
|
|
*
|
|
* @return String that represents the approval status of the change item.
|
|
*/
|
|
public String getApprovalStatus() {
|
|
return this.approvalStatus;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sets the approval status of the change item.
|
|
*
|
|
* @param approvalStatus String that represents the approval status of the
|
|
* change item.
|
|
*/
|
|
public void setApprovalStatus(String approvalStatus) {
|
|
this.approvalStatus = approvalStatus;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Gets the change number of the change item.
|
|
*
|
|
* @return String that represents the change number of the change item.
|
|
*/
|
|
public String getChangeNr() {
|
|
return this.changeNr;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sets the change number of the change item.
|
|
*
|
|
* @param changeNr String that represents the change number of the change
|
|
* item.
|
|
*/
|
|
public void setChangeNr(String changeNr) {
|
|
this.changeNr = changeNr;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Gets the resource id of the change item.
|
|
*
|
|
* @return String that represents the resource id of the change item.
|
|
*/
|
|
public String getResourceId() {
|
|
return this.resourceId;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sets the resource id of the change item.
|
|
*
|
|
* @param resourceId String that represents the resource id of the change
|
|
* item.
|
|
*/
|
|
public void setResourceId(String resourceId) {
|
|
this.resourceId = resourceId;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Gets the resource name of the change item.
|
|
*
|
|
* @return String that represents the resource name of the change item.
|
|
*/
|
|
public String getResourceName() {
|
|
return this.resourceName;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sets the resource name of the change item.
|
|
*
|
|
* @param resourceName String that represents the resource name of the change
|
|
* item.
|
|
*/
|
|
public void setResourceName(String resourceName) {
|
|
this.resourceName = resourceName;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Gets a date related to the change item.
|
|
*
|
|
* @return Date that represents a date related to the change item.
|
|
*/
|
|
public Date getD1() {
|
|
return this.D1;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sets a date related to the change item.
|
|
*
|
|
* @param D1 Date that represents a date related to the change item.
|
|
*/
|
|
public void setD1(Date D1) {
|
|
this.D1 = D1;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Gets a date related to the change item.
|
|
*
|
|
* @return Date that represents a date related to the change item.
|
|
*/
|
|
public Date getD3() {
|
|
return this.D3;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sets a date related to the change item.
|
|
*
|
|
* @param D3 Date that represents a date related to the change item.
|
|
*/
|
|
public void setD3(Date D3) {
|
|
this.D3 = D3;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Gets a date related to the change item.
|
|
*
|
|
* @return Date that represents a date related to the change item.
|
|
*/
|
|
public Date getD4() {
|
|
return this.D4;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sets a date related to the change item.
|
|
*
|
|
* @param D4 Date that represents a date related to the change item.
|
|
*/
|
|
public void setD4(Date D4) {
|
|
this.D4 = D4;
|
|
}
|
|
|
|
/**
|
|
* Returns the implementer edit status.
|
|
*
|
|
* @return true if the implementer is allowed to edit, false otherwise.
|
|
*/
|
|
public boolean getImplementerEdit() {
|
|
return this.implementerEdit;
|
|
}
|
|
|
|
/**
|
|
* Sets the implementer edit status.
|
|
*
|
|
* @param implementerEdit Boolean representing the implementer edit status.
|
|
*/
|
|
public void setImplementerEdit(boolean implementerEdit) {
|
|
this.implementerEdit = implementerEdit;
|
|
}
|
|
|
|
/**
|
|
* Returns the state of the object.
|
|
*
|
|
* @return an int representing the state.
|
|
*/
|
|
public int getState() {
|
|
return this.state;
|
|
}
|
|
|
|
/**
|
|
* Sets the state of the object.
|
|
*
|
|
* @param state an int representing the state.
|
|
*/
|
|
public void setState(int state) {
|
|
this.state = state;
|
|
}
|
|
|
|
/**
|
|
* Returns the contract associated with the object.
|
|
*
|
|
* @return String representing the contract.
|
|
*/
|
|
public String getContract() {
|
|
return this.contract;
|
|
}
|
|
|
|
/**
|
|
* Sets the contract associated with the object.
|
|
*
|
|
* @param vertrag String representing the contract.
|
|
*/
|
|
public void setContract(String vertrag) {
|
|
this.contract = vertrag;
|
|
}
|
|
|
|
/**
|
|
* Returns the support group associated with the object.
|
|
*
|
|
* @return String representing the support group.
|
|
*/
|
|
public String getSupportGroup() {
|
|
return this.supportGroup;
|
|
}
|
|
|
|
/**
|
|
* Sets the support group associated with the object.
|
|
*
|
|
* @param supportGroup String representing the support group.
|
|
*/
|
|
public void setSupportGroup(String supportGroup) {
|
|
this.supportGroup = supportGroup;
|
|
}
|
|
|
|
/**
|
|
* Returns the coordinator support group ID.
|
|
*
|
|
* @return String representing the coordinator support group ID.
|
|
*/
|
|
public String getCoordinatorSgId() {
|
|
return this.coordinatorSgId;
|
|
}
|
|
|
|
/**
|
|
* Sets the coordinator support group ID.
|
|
*
|
|
* @param coordinatorSgId String representing the coordinator support group
|
|
* ID.
|
|
*/
|
|
public void setCoordinatorSgId(String coordinatorSgId) {
|
|
this.coordinatorSgId = coordinatorSgId;
|
|
}
|
|
|
|
/**
|
|
* Returns the coordinator support group.
|
|
*
|
|
* @return String representing the coordinator support group.
|
|
*/
|
|
public String getCoordinatorSg() {
|
|
return this.coordinatorSg;
|
|
}
|
|
|
|
/**
|
|
* Sets the coordinator support group.
|
|
*
|
|
* @param coordinatorSg String representing the coordinator support group.
|
|
*/
|
|
public void setCoordinatorSg(String coordinatorSg) {
|
|
this.coordinatorSg = coordinatorSg;
|
|
}
|
|
|
|
/**
|
|
* Returns the support group ID.
|
|
*
|
|
* @return String representing the support group ID.
|
|
*/
|
|
public String getSupportGroupId() {
|
|
return this.supportGroupId;
|
|
}
|
|
|
|
/**
|
|
* Sets the support group ID.
|
|
*
|
|
* @param supportGroupId String representing the support group ID.
|
|
*/
|
|
public void setSupportGroupId(String supportGroupId) {
|
|
this.supportGroupId = supportGroupId;
|
|
}
|
|
|
|
/**
|
|
* Returns the provider cluster.
|
|
*
|
|
* @return String representing the provider cluster.
|
|
*/
|
|
public String getProviderCluster() {
|
|
return this.providerCluster;
|
|
}
|
|
|
|
/**
|
|
* Sets the provider cluster.
|
|
*
|
|
* @param providerCluster String representing the provider cluster.
|
|
*/
|
|
public void setProviderCluster(String providerCluster) {
|
|
this.providerCluster = providerCluster;
|
|
}
|
|
|
|
/**
|
|
* Returns the D2 date.
|
|
*
|
|
* @return Date object representing the D2 date.
|
|
*/
|
|
public Date getD2() {
|
|
return this.D2;
|
|
}
|
|
|
|
/**
|
|
* Sets the D2 date.
|
|
*
|
|
* @param D2 Date object representing the D2 date.
|
|
*/
|
|
public void setD2(Date D2) {
|
|
this.D2 = D2;
|
|
}
|
|
|
|
/**
|
|
* Returns the change implementer.
|
|
*
|
|
* @return String representing the change implementer.
|
|
*/
|
|
public String getChangeImplementer() {
|
|
return this.changeImplementer;
|
|
}
|
|
|
|
/**
|
|
* Sets the change implementer.
|
|
*
|
|
* @param changeImplementer String representing the change implementer.
|
|
*/
|
|
public void setChangeImplementer(String changeImplementer) {
|
|
this.changeImplementer = changeImplementer;
|
|
}
|
|
|
|
/**
|
|
* Returns the change implementer login.
|
|
*
|
|
* @return String representing the change implementer login.
|
|
*/
|
|
public String getChangeImplementerLogin() {
|
|
return this.changeImplementerLogin;
|
|
}
|
|
|
|
/**
|
|
* Sets the change implementer login.
|
|
*
|
|
* @param changeImplementerLogin String representing the change implementer
|
|
* login.
|
|
*/
|
|
public void setChangeImplementerLogin(String changeImplementerLogin) {
|
|
this.changeImplementerLogin = changeImplementerLogin;
|
|
}
|
|
|
|
/**
|
|
* Returns the change implementer person ID.
|
|
*
|
|
* @return String representing the change implementer person ID.
|
|
*/
|
|
public String getChangeImplementerPersonId() {
|
|
return this.changeImplementerPersonId;
|
|
}
|
|
|
|
/**
|
|
* Sets the change implementer person ID.
|
|
*
|
|
* @param changeImplementerPersonId String representing the change implementer
|
|
* person ID.
|
|
*/
|
|
public void setChangeImplementerPersonId(String changeImplementerPersonId) {
|
|
this.changeImplementerPersonId = changeImplementerPersonId;
|
|
}
|
|
|
|
/**
|
|
* Returns the package type.
|
|
*
|
|
* @return String representing the package type.
|
|
*/
|
|
public String getPackageType() {
|
|
return this.packageType;
|
|
}
|
|
|
|
/**
|
|
* Sets the package type.
|
|
*
|
|
* @param packageType String representing the package type.
|
|
*/
|
|
public void setPackageType(String packageType) {
|
|
this.packageType = packageType;
|
|
}
|
|
|
|
}
|