// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.06.07 at 02:07:29 PM EDT
-//
package org.onap.portalsdk.analytics.xmlobj;
*/
public List<DataSourceType> getDataSource() {
if (dataSource == null) {
- dataSource = new ArrayList<DataSourceType>();
+ dataSource = new ArrayList<>();
}
return this.dataSource;
}
*/
public List<FormFieldType> getFormField() {
if (formField == null) {
- formField = new ArrayList<FormFieldType>();
+ formField = new ArrayList<>();
}
return this.formField;
}
*/
public List<FormatType> getFormat() {
if (format == null) {
- format = new ArrayList<FormatType>();
+ format = new ArrayList<>();
}
return this.format;
}
*/
public List<JavascriptItemType> getJavascriptItem() {
if (javascriptItem == null) {
- javascriptItem = new ArrayList<JavascriptItemType>();
+ javascriptItem = new ArrayList<>();
}
return this.javascriptItem;
}
*/
@XmlElementDecl(namespace = "", name = "customReport")
public JAXBElement<CustomReportType> createCustomReport(CustomReportType value) {
- return new JAXBElement<CustomReportType>(_CustomReport_QNAME, CustomReportType.class, null, value);
+ return new JAXBElement<>(_CustomReport_QNAME, CustomReportType.class, null, value);
}
/**
*/
@XmlElementDecl(namespace = "", name = "comment")
public JAXBElement<String> createComment(String value) {
- return new JAXBElement<String>(_Comment_QNAME, String.class, null, value);
+ return new JAXBElement<>(_Comment_QNAME, String.class, null, value);
}
}
*/
public List<String> getPredefinedValue() {
if (predefinedValue == null) {
- predefinedValue = new ArrayList<String>();
+ predefinedValue = new ArrayList<>();
}
return this.predefinedValue;
}
*/
public List<Marker> getMarkers() {
if (markers == null) {
- markers = new ArrayList<Marker>();
+ markers = new ArrayList<>();
}
return this.markers;
}
*/
public List<SemaphoreType> getSemaphore() {
if (semaphore == null) {
- semaphore = new ArrayList<SemaphoreType>();
+ semaphore = new ArrayList<>();
}
return this.semaphore;
}
@RequestMapping(value = {"/collaborate_list" }, method = RequestMethod.GET)
public ModelAndView ProfileSearch(HttpServletRequest request) {
- Map<String, Object> model = new HashMap<String, Object>();
+ Map<String, Object> model = new HashMap<>();
ObjectMapper mapper = new ObjectMapper();
User user = UserUtils.getUserSession(request);
@RequestMapping(value = { "/ds2_sample" }, method = RequestMethod.GET)
public ModelAndView ProfileSearch(HttpServletRequest request) {
- Map<String, Object> model = new HashMap<String, Object>();
+ Map<String, Object> model = new HashMap<>();
return new ModelAndView("ds2_sample", "model", model);
}
String restUrl = PortalApiProperties.getProperty(PortalApiConstants.ECOMP_REST_URL);
if (restUrl == null || restUrl.length() == 0)
throw new IllegalArgumentException("getSharedContextUrl: no property " + PortalApiConstants.ECOMP_REST_URL);
- String contextUrl = restUrl + (restUrl.endsWith("/") ? "" : "/") + "context/";
- return contextUrl;
+
+ return restUrl + (restUrl.endsWith("/") ? "" : "/") + "context/";
}
/**
if (currentFirstUrl != null) {
- List<Criterion> restrictionsList = new ArrayList<Criterion>();
+ List<Criterion> restrictionsList = new ArrayList<>();
Criterion criterion1 = Restrictions.like("urlsAccessibleKey.url", currentFirstUrl + "%");
restrictionsList.add(criterion1);
list = dataAccessService.getList(UrlsAccessible.class, null, restrictionsList, null);
@SuppressWarnings("unchecked")
public User getUserByLoginId(String loginId) {
User user = null;
- List<Criterion> restrictionsList = new ArrayList<Criterion>();
+ List<Criterion> restrictionsList = new ArrayList<>();
Criterion criterion1 = Restrictions.eq("loginId", loginId);
restrictionsList.add(criterion1);
List<User> users = (List<User>) getDataAccessService().getList(User.class, null, restrictionsList, null);