package com.eactive.eai.rms.common.acl.audit.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuditPoint {

	private static final String LOGGING_POINT_KEY_FORMAT = "%s_%s_%s";

	private String systemCode;

	private String logType;

	private String command;
	
	private String logTypeText;

	public static String generateKey(String logType, String systemCode, String command) {
		return String.format(LOGGING_POINT_KEY_FORMAT, logType, systemCode, command);
	}
}
