com.netgrif.application.engine.settings.domain.Preferences Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.settings.domain;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* User application preferences. Contains:
*
* - locale
* - task filters for each task view
* - case filters for each case view
* - case view flex fields
*
*/
@Document
@Data
@NoArgsConstructor
public class Preferences implements Serializable {
@Id
private String userId;
private String locale;
private int drawerWidth;
/**
* taskViewId: [filterIds]
*/
@Field
private Map> taskFilters = new HashMap<>();
/**
* caseViewId: [filterIds]
*/
@Field
private Map> caseFilters = new HashMap<>();
/**
* caseViewId: [headersIds]
*/
@Field
private Map> headers = new HashMap<>();
public Preferences(String userId) {
this.userId = userId;
this.drawerWidth = 200;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy