method to import mocked data to testing app after startz. It is called only
+ in dev profile. Note that tests are written to this app state so if you
+ change ConfigData it can have an impact to other tests like
+ CommisionControllerTest
public static finaljava.util.List<AssignmentResponse>mapToResponse(java.util.List<com.plannaplan.entities.Assignment> assignments)
+
+
Parameters:
+
assignments - lsit of assignments to be maped
+
Returns:
+
list of api responses
+
+
+
+
+
+
mapToResponse
+
public static finaljava.util.List<AssignmentResponse>mapToResponse(java.util.List<com.plannaplan.entities.Assignment> assignments,
+java.util.HashMap<java.lang.Long,java.lang.Integer> ammounts)
+
+
Parameters:
+
assignments - lsit of assignments to be maped
+
ammounts - ammounts to be take into account
+
Returns:
+
list of api responses
+
+
+
+
+
+
mapAssignmetnToDetialedResponse
+
public static finaljava.util.List<AssignmentDetailedResponse>mapAssignmetnToDetialedResponse(java.util.List<com.plannaplan.entities.Assignment> assignments)
public static finaljava.util.List<CommisionResponse>mapToResponse(java.util.List<com.plannaplan.entities.Commision> commisions)
+
+
Parameters:
+
commisions - list of commisions to be mapped
+
Returns:
+
list of api responses
+
+
+
+
+
+
mapToResponseWithGroups
+
public static finaljava.util.List<CommisionWithGroupsResponse>mapToResponseWithGroups(java.util.List<com.plannaplan.entities.Commision> commisions)
+
+
Parameters:
+
commisions - list of commisions to be mapped
+
Returns:
+
list of api responses
+
+
+
+
+
+
mapToResponseWithExtraInforGroups
+
public static finaljava.util.List<CommisionWithAcceptedGroupsResponse>mapToResponseWithExtraInforGroups(java.util.List<com.plannaplan.entities.Commision> commisions)
public staticjava.util.List<GroupDefaultResponse>mapToDefaultResponse(java.util.List<com.plannaplan.entities.Groups> groups,
+java.util.HashMap<java.lang.Long,java.lang.Integer> taken)
+
+
Parameters:
+
groups - list of groups to be mapped
+
taken - ammoints to be take into account
+
Returns:
+
list of api responses
+
+
+
+
+
+
mapToDefaultResponse
+
public staticjava.util.List<GroupDefaultResponse>mapToDefaultResponse(java.util.List<com.plannaplan.entities.Groups> groups)
+
+
Parameters:
+
groups - list of groups to be mapped
+
Returns:
+
ammoints to be take into account
+
+
+
+
+
+
mapToCapacityResponse
+
public staticjava.util.List<GroupWithCapacityResponse>mapToCapacityResponse(java.util.List<com.plannaplan.entities.Groups> groups,
+java.util.HashMap<java.lang.Long,java.lang.Integer> taken)
+
+
Parameters:
+
groups - list of groups to be mapped
+
taken - ammoints to be take into account
+
Returns:
+
list of api responses
+
+
+
+
+
+
mapToCapacityResponse
+
public staticjava.util.List<GroupWithCapacityResponse>mapToCapacityResponse(java.util.List<com.plannaplan.entities.Groups> groups)
+
+
Parameters:
+
groups - list of groups to be mapped
+
Returns:
+
ammoints to be take into account
+
+
+
+
+
+
mapToGetCourseGroupsDefaultResponse
+
public staticCourseWithGroupsResponse<GroupDefaultResponse>mapToGetCourseGroupsDefaultResponse(java.util.List<com.plannaplan.entities.Groups> groups,
+java.util.HashMap<java.lang.Long,java.lang.Integer> taken)
public staticCourseWithGroupsResponse<GroupWithCapacityResponse>mapToGetCourseGroupsWithCapacityResponse(java.util.List<com.plannaplan.entities.Groups> groups,
+java.util.HashMap<java.lang.Long,java.lang.Integer> taken)
public class CourseWithGroupsResponse<T>
+extends java.lang.Object
+
Course respose with all realted groups as api response. Alse needs to specify
+ what type of Groups api response will be kept here. For excmaple it can be
+ GroupDefaultRespnse
public class CoursesDefaultResponse
+extends CoursesResponse
+
Courses Default Api Response. It extends abstract response - CoursesResponse.
+ It was one of first repsones created in system. Later we resigned from
+ asbstract and used settig
+ spring.jackson.default-property-inclusion = NON_NULL in
+ properties instead.
public class CoursesWithGroupsResponse
+extends CoursesResponse
+
Courses With Groups Api Response . It extends abstract response -
+ CoursesResponse. It was one of first repsones created in system. Later we
+ resigned from asbstract and used settig
+ spring.jackson.default-property-inclusion = NON_NULL in
+ properties instead.
Returns an array containing the constants of this enum type, in
+the order they are declared.
+
+
Returns:
+
an array containing the constants of this enum type, in the order they are declared
+
+
+
+
+
+
valueOf
+
public staticAuthorityRolesvalueOf(java.lang.String name)
+
Returns the enum constant of this type with the specified name.
+The string must match exactly an identifier used to declare an
+enum constant in this type. (Extraneous whitespace characters are
+not permitted.)
+
+
Parameters:
+
name - the name of the enum constant to be returned.
+
Returns:
+
the enum constant with the specified name
+
Throws:
+
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
+
java.lang.NullPointerException - if the argument is null
+
+
+
+
+
+
getAuthority
+
publicjava.lang.StringgetAuthority()
+
+
Specified by:
+
getAuthority in interface org.springframework.security.core.GrantedAuthority
+
+
+
+
+
+
getAuthorityRole
+
public static finaljava.util.Optional<AuthorityRoles>getAuthorityRole(com.plannaplan.types.UserRoles role)
configure in interface org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
+
Overrides:
+
configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
public class CasUserIdentity
+extends java.lang.Object
+
Model to keep data from Cas response. It's important to remember that wee
+ need to register our domain name in CAS in order to get this data. Otherwise
+ CAS will retuned what user typed as login.
We can authorize in different contexts. For example if we rgister our domain
+ we will get more info than on localhost. This abstraction let's us handle
+ both cases based on spring profile
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+
Overview
+
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+
+
+
Package
+
Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain six categories:
+
+
Interfaces
+
Classes
+
Enums
+
Exceptions
+
Errors
+
Annotation Types
+
+
+
+
Class or Interface
+
Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+
Class Inheritance Diagram
+
Direct Subclasses
+
All Known Subinterfaces
+
All Known Implementing Classes
+
Class or Interface Declaration
+
Class or Interface Description
+
+
+
+
Nested Class Summary
+
Field Summary
+
Property Summary
+
Constructor Summary
+
Method Summary
+
+
+
+
Field Details
+
Property Details
+
Constructor Details
+
Method Details
+
+
The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+
+
+
Annotation Type
+
Each annotation type has its own separate page with the following sections:
+
+
Annotation Type Declaration
+
Annotation Type Description
+
Required Element Summary
+
Optional Element Summary
+
Element Details
+
+
+
+
Enum
+
Each enum has its own separate page with the following sections:
+
+
Enum Declaration
+
Enum Description
+
Enum Constant Summary
+
Enum Constant Details
+
+
+
+
Use
+
Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its "Use" page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+
+
+
Tree (Class Hierarchy)
+
There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.
+
+
When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
+
When viewing a particular package, class or interface page, clicking on "Tree" displays the hierarchy for only that package.
+
+
+
+
Deprecated API
+
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to shortcomings, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+
+
+
Index
+
The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields, as well as lists of all packages and all classes.
+
+
+
Serialized Form
+
Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to those who implement rather than use the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See Also" section of the class description.
You can search for definitions of modules, packages, types, fields, methods, system properties and other terms defined in the API, using some or all of the name, optionally using "camel-case" abbreviations. For example:
+
+
j.l.obj will match "java.lang.Object"
+
InpStr will match "java.io.InputStream"
+
HM.cK will match "java.util.HashMap.containsKey(Object)"
All calsses realted to authorizing user with CAS system.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dokumentacja-backendu/restservice/java/jquery-ui.overrides.css b/dokumentacja-backendu/restservice/java/jquery-ui.overrides.css
new file mode 100644
index 0000000..f89acb6
--- /dev/null
+++ b/dokumentacja-backendu/restservice/java/jquery-ui.overrides.css
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+.ui-state-active,
+.ui-widget-content .ui-state-active,
+.ui-widget-header .ui-state-active,
+a.ui-button:active,
+.ui-button:active,
+.ui-button.ui-state-active:hover {
+ /* Overrides the color of selection used in jQuery UI */
+ background: #F8981D;
+}
diff --git a/dokumentacja-backendu/restservice/java/member-search-index.js b/dokumentacja-backendu/restservice/java/member-search-index.js
new file mode 100644
index 0000000..7f13bc9
--- /dev/null
+++ b/dokumentacja-backendu/restservice/java/member-search-index.js
@@ -0,0 +1 @@
+memberSearchIndex = [{"p":"com.plannaplan.controllers","c":"UsersController","l":"addAdmin(String)","u":"addAdmin(java.lang.String)"},{"p":"com.plannaplan.controllers","c":"CommisionController","l":"addCommision(List, Long)","u":"addCommision(java.util.List,java.lang.Long)"},{"p":"com.plannaplan.controllers","c":"UsersController","l":"addDeanery(String)","u":"addDeanery(java.lang.String)"},{"p":"com.plannaplan.security","c":"AuthenticationProvider","l":"additionalAuthenticationChecks(UserDetails, UsernamePasswordAuthenticationToken)","u":"additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails,org.springframework.security.authentication.UsernamePasswordAuthenticationToken)"},{"p":"com.plannaplan","c":"Swagger2Config","l":"addResourceHandlers(ResourceHandlerRegistry)","u":"addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry)"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"ADMIN"},{"p":"com.plannaplan","c":"Logo","l":"ANSI_BLACK"},{"p":"com.plannaplan","c":"Logo","l":"ANSI_BLUE"},{"p":"com.plannaplan","c":"Logo","l":"ANSI_RESET"},{"p":"com.plannaplan","c":"Logo","l":"ANSI_YELLOW"},{"p":"com.plannaplan","c":"App","l":"API_VERSION"},{"p":"com.plannaplan","c":"App","l":"App()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"AssignmentDetailedResponse(Assignment)","u":"%3Cinit%3E(com.plannaplan.entities.Assignment)"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"AssignmentResponse(Course, Assignment)","u":"%3Cinit%3E(com.plannaplan.entities.Course,com.plannaplan.entities.Assignment)"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"AssignmentResponse(Course, Assignment, Assignment)","u":"%3Cinit%3E(com.plannaplan.entities.Course,com.plannaplan.entities.Assignment,com.plannaplan.entities.Assignment)"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"AssignmentResponse(Course, Assignment, Assignment, HashMap)","u":"%3Cinit%3E(com.plannaplan.entities.Course,com.plannaplan.entities.Assignment,com.plannaplan.entities.Assignment,java.util.HashMap)"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"AssignmentResponse(Course, Assignment, HashMap)","u":"%3Cinit%3E(com.plannaplan.entities.Course,com.plannaplan.entities.Assignment,java.util.HashMap)"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"AssignmentResponse(Course, Groups)","u":"%3Cinit%3E(com.plannaplan.entities.Course,com.plannaplan.entities.Groups)"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"AssignmentResponse(Course, Groups, Groups)","u":"%3Cinit%3E(com.plannaplan.entities.Course,com.plannaplan.entities.Groups,com.plannaplan.entities.Groups)"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"AssignmentResponse(Course, Groups, Groups, HashMap)","u":"%3Cinit%3E(com.plannaplan.entities.Course,com.plannaplan.entities.Groups,com.plannaplan.entities.Groups,java.util.HashMap)"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"AssignmentResponse(Course, Groups, HashMap)","u":"%3Cinit%3E(com.plannaplan.entities.Course,com.plannaplan.entities.Groups,java.util.HashMap)"},{"p":"com.plannaplan.responses.mappers","c":"AssignmentResponseMappers","l":"AssignmentResponseMappers()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.controllers","c":"AssignmentsController","l":"AssignmentsController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"AssignmentsSingleResponse","l":"AssignmentsSingleResponse(Assignment)","u":"%3Cinit%3E(com.plannaplan.entities.Assignment)"},{"p":"com.plannaplan.security","c":"AuthenticationFilter","l":"attemptAuthentication(HttpServletRequest, HttpServletResponse)","u":"attemptAuthentication(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)"},{"p":"com.plannaplan.security","c":"AuthenticationProvider","l":"AuthenticationProvider()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.security.cas","c":"CasUserIdentity","l":"CasUserIdentity(String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String)"},{"p":"com.plannaplan.security.cas","c":"CasValidationExcepiton","l":"CasValidationExcepiton(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"com.plannaplan.controllers","c":"CommisionController","l":"CommisionController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"CommisionResponse","l":"CommisionResponse(Commision)","u":"%3Cinit%3E(com.plannaplan.entities.Commision)"},{"p":"com.plannaplan.responses.mappers","c":"CommisionResponseMappers","l":"CommisionResponseMappers()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"CommisionWithAcceptedGroupsResponse","l":"CommisionWithAcceptedGroupsResponse(Commision)","u":"%3Cinit%3E(com.plannaplan.entities.Commision)"},{"p":"com.plannaplan.responses.models","c":"CommisionWithGroupsResponse","l":"CommisionWithGroupsResponse(Commision)","u":"%3Cinit%3E(com.plannaplan.entities.Commision)"},{"p":"com.plannaplan.controllers","c":"ConfigController","l":"configApp(MultipartFile, Date, Date, Date, Date)","u":"configApp(org.springframework.web.multipart.MultipartFile,java.util.Date,java.util.Date,java.util.Date,java.util.Date)"},{"p":"com.plannaplan.controllers","c":"ConfigController","l":"configAppChangeCources(MultipartFile)","u":"configAppChangeCources(org.springframework.web.multipart.MultipartFile)"},{"p":"com.plannaplan.controllers","c":"ConfigController","l":"ConfigController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"ConfigTourResponse","l":"ConfigTourResponse(AppState)","u":"%3Cinit%3E(com.plannaplan.types.AppState)"},{"p":"com.plannaplan.controllers","c":"ConfigController","l":"configToursApp(Date, Date, Date, Date)","u":"configToursApp(java.util.Date,java.util.Date,java.util.Date,java.util.Date)"},{"p":"com.plannaplan.security","c":"WebSecurityConfig","l":"configure(AuthenticationManagerBuilder)","u":"configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder)"},{"p":"com.plannaplan.security","c":"WebSecurityConfig","l":"configure(HttpSecurity)","u":"configure(org.springframework.security.config.annotation.web.builders.HttpSecurity)"},{"p":"com.plannaplan.security","c":"WebSecurityConfig","l":"configure(WebSecurity)","u":"configure(org.springframework.security.config.annotation.web.builders.WebSecurity)"},{"p":"com.plannaplan.controllers","c":"CoursesController","l":"CoursesController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"CoursesDefaultResponse","l":"CoursesDefaultResponse(Course)","u":"%3Cinit%3E(com.plannaplan.entities.Course)"},{"p":"com.plannaplan.responses.models.abstracts","c":"CoursesResponse","l":"CoursesResponse(Course)","u":"%3Cinit%3E(com.plannaplan.entities.Course)"},{"p":"com.plannaplan.responses.mappers","c":"CoursesResponseMappers","l":"CoursesResponseMappers()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"CoursesWithGroupsResponse","l":"CoursesWithGroupsResponse(Course)","u":"%3Cinit%3E(com.plannaplan.entities.Course)"},{"p":"com.plannaplan.responses.models","c":"CoursesWithGroupsResponse","l":"CoursesWithGroupsResponse(Course, List, List)","u":"%3Cinit%3E(com.plannaplan.entities.Course,java.util.List,java.util.List)"},{"p":"com.plannaplan.responses.models","c":"CourseWithGroupsResponse","l":"CourseWithGroupsResponse(List, List)","u":"%3Cinit%3E(java.util.List,java.util.List)"},{"p":"com.plannaplan.controllers","c":"ExchangeController","l":"createExchange(Map)","u":"createExchange(java.util.Map)"},{"p":"com.plannaplan","c":"Swagger2Config","l":"createRestApi()"},{"p":"com.plannaplan.security.cas","c":"CustomUAMCasValidator","l":"CustomUAMCasValidator(String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String)"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"DEANERY"},{"p":"com.plannaplan.security.cas","c":"DefaultUAMCasValidator","l":"DefaultUAMCasValidator(String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String)"},{"p":"com.plannaplan.controllers","c":"ExchangeController","l":"deleteExchange(Long)","u":"deleteExchange(java.lang.Long)"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"DEVELOPER"},{"p":"com.plannaplan.controllers","c":"DeveloperController","l":"DeveloperController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.controllers","c":"ExchangeController","l":"ExchangeController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"ExchangeResponse","l":"ExchangeResponse(Exchange)","u":"%3Cinit%3E(com.plannaplan.entities.Exchange)"},{"p":"com.plannaplan.responses.mappers","c":"ExchangeResponseMappers","l":"ExchangeResponseMappers()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.controllers","c":"StatisticsController","l":"getAcceptedAmmounts()"},{"p":"com.plannaplan.controllers","c":"StatisticsController","l":"getAcceptedPartlyAmmounts()"},{"p":"com.plannaplan.controllers","c":"CommisionController","l":"getAlCommisions(Boolean, Boolean)","u":"getAlCommisions(java.lang.Boolean,java.lang.Boolean)"},{"p":"com.plannaplan.controllers","c":"CommisionController","l":"getAllAssignmets()"},{"p":"com.plannaplan.controllers","c":"UsersController","l":"getAllStudents()"},{"p":"com.plannaplan.responses.models","c":"StatisticSimpleNumberResponse","l":"getAmmount()"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"getAuthority()"},{"p":"com.plannaplan.responses.models","c":"TokenResponse","l":"getAuthorityRole()"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"getAuthorityRole(UserRoles)","u":"getAuthorityRole(com.plannaplan.types.UserRoles)"},{"p":"com.plannaplan.responses.models","c":"GroupWithCapacityResponse","l":"getCapacity()"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"getClasses()"},{"p":"com.plannaplan.responses.models","c":"CourseWithGroupsResponse","l":"getClasses()"},{"p":"com.plannaplan.responses.models","c":"CoursesWithGroupsResponse","l":"getClasses()"},{"p":"com.plannaplan.controllers","c":"CommisionController","l":"getCommision(Long, Boolean)","u":"getCommision(java.lang.Long,java.lang.Boolean)"},{"p":"com.plannaplan.responses.models","c":"CommisionResponse","l":"getCommisionDate()"},{"p":"com.plannaplan.controllers","c":"StatisticsController","l":"getCommisionsAmmounts()"},{"p":"com.plannaplan.responses.models","c":"CommisionResponse","l":"getCommiter()"},{"p":"com.plannaplan.responses.models","c":"ExchangeResponse","l":"getCourseName()"},{"p":"com.plannaplan.controllers","c":"GroupController","l":"getCourses(Long, Boolean, Boolean)","u":"getCourses(java.lang.Long,java.lang.Boolean,java.lang.Boolean)"},{"p":"com.plannaplan.controllers","c":"AssignmentsController","l":"getCurrentAssignments()"},{"p":"com.plannaplan.controllers","c":"CommisionController","l":"getCurrentAssignments()"},{"p":"com.plannaplan.controllers","c":"CommisionController","l":"getCurrentAssignmentsDeanery(Long)","u":"getCurrentAssignmentsDeanery(java.lang.Long)"},{"p":"com.plannaplan.responses.models","c":"ConfigTourResponse","l":"getCurrentTour()"},{"p":"com.plannaplan.controllers","c":"ConfigController","l":"getCurrentTourDate()"},{"p":"com.plannaplan.controllers","c":"TokenBasedController","l":"getCurrentUser()"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"getDay()"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getDay()"},{"p":"com.plannaplan.responses.models","c":"ExchangeResponse","l":"getDesiredGroup()"},{"p":"com.plannaplan.responses.models","c":"TokenResponse","l":"getEmail()"},{"p":"com.plannaplan.responses.models","c":"UserResponse","l":"getEmail()"},{"p":"com.plannaplan.security.cas","c":"CasUserIdentity","l":"getEmail()"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"getEndTime()"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getEndTime()"},{"p":"com.plannaplan.controllers","c":"ExchangeController","l":"getExchange()"},{"p":"com.plannaplan.controllers","c":"ExchangeController","l":"getExchangeById(Long)","u":"getExchangeById(java.lang.Long)"},{"p":"com.plannaplan.controllers","c":"CommisionController","l":"getFile(HttpServletResponse)","u":"getFile(javax.servlet.http.HttpServletResponse)"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getGrNr()"},{"p":"com.plannaplan.responses.models","c":"CommisionWithAcceptedGroupsResponse","l":"getGroups()"},{"p":"com.plannaplan.responses.models","c":"CommisionWithGroupsResponse","l":"getGroups()"},{"p":"com.plannaplan.controllers","c":"StatisticsController","l":"getGroupsAmmounts()"},{"p":"com.plannaplan.controllers","c":"StatisticsController","l":"getGroupsFullAmmounts()"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"getId()"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"getId()"},{"p":"com.plannaplan.responses.models","c":"AssignmentsSingleResponse","l":"getId()"},{"p":"com.plannaplan.responses.models","c":"CommisionResponse","l":"getId()"},{"p":"com.plannaplan.responses.models","c":"ExchangeResponse","l":"getId()"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getId()"},{"p":"com.plannaplan.responses.models","c":"TokenResponse","l":"getId()"},{"p":"com.plannaplan.responses.models","c":"UserResponse","l":"getId()"},{"p":"com.plannaplan.responses.models.abstracts","c":"CoursesResponse","l":"getId()"},{"p":"com.plannaplan","c":"Logo","l":"getInitInfo(boolean)"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getIsAccepted()"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"getLecture()"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"getLecturer()"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getLecturer()"},{"p":"com.plannaplan.responses.models","c":"CourseWithGroupsResponse","l":"getLectures()"},{"p":"com.plannaplan.responses.models","c":"CoursesWithGroupsResponse","l":"getLectures()"},{"p":"com.plannaplan","c":"Logo","l":"getLogo()"},{"p":"com.plannaplan.controllers","c":"CoursesController","l":"getMethodName(Boolean, Boolean)","u":"getMethodName(java.lang.Boolean,java.lang.Boolean)"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"getName()"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"getName()"},{"p":"com.plannaplan.responses.models","c":"UserResponse","l":"getName()"},{"p":"com.plannaplan.responses.models.abstracts","c":"CoursesResponse","l":"getName()"},{"p":"com.plannaplan.controllers","c":"StatisticsController","l":"getNonCommisionsAmmounts()"},{"p":"com.plannaplan.responses.models","c":"ExchangeResponse","l":"getOwnedAssignment()"},{"p":"com.plannaplan.responses.models","c":"CommisionResponse","l":"getOwner()"},{"p":"com.plannaplan.responses.models","c":"TokenResponse","l":"getRefreshToken()"},{"p":"com.plannaplan.controllers","c":"TokenController","l":"getRefreshToken(String)","u":"getRefreshToken(java.lang.String)"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getRoom()"},{"p":"com.plannaplan","c":"Logo","l":"getStartedInfo(boolean)"},{"p":"com.plannaplan.responses.models","c":"UserResponse","l":"getSurname()"},{"p":"com.plannaplan.responses.models","c":"AssignmentResponse","l":"getSymbol()"},{"p":"com.plannaplan.responses.models.abstracts","c":"CoursesResponse","l":"getSymbol()"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getTakenPlaces()"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"getTime()"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getTime()"},{"p":"com.plannaplan.responses.models","c":"TokenResponse","l":"getToken()"},{"p":"com.plannaplan.controllers","c":"TokenController","l":"getToken(String)","u":"getToken(java.lang.String)"},{"p":"com.plannaplan.controllers","c":"ConfigController","l":"getTourDate()"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"getType()"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"getType()"},{"p":"com.plannaplan.security.cas","c":"CasUserIdentity","l":"getUsosId()"},{"p":"com.plannaplan.controllers","c":"GroupController","l":"GroupController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"GroupDefaultResponse(Assignment)","u":"%3Cinit%3E(com.plannaplan.entities.Assignment)"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"GroupDefaultResponse(Assignment, int)","u":"%3Cinit%3E(com.plannaplan.entities.Assignment,int)"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"GroupDefaultResponse(Groups)","u":"%3Cinit%3E(com.plannaplan.entities.Groups)"},{"p":"com.plannaplan.responses.models","c":"GroupDefaultResponse","l":"GroupDefaultResponse(Groups, int)","u":"%3Cinit%3E(com.plannaplan.entities.Groups,int)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"GroupsMappers()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"GroupWithCapacityResponse","l":"GroupWithCapacityResponse(Assignment)","u":"%3Cinit%3E(com.plannaplan.entities.Assignment)"},{"p":"com.plannaplan.responses.models","c":"GroupWithCapacityResponse","l":"GroupWithCapacityResponse(Assignment, int)","u":"%3Cinit%3E(com.plannaplan.entities.Assignment,int)"},{"p":"com.plannaplan.responses.models","c":"GroupWithCapacityResponse","l":"GroupWithCapacityResponse(Groups)","u":"%3Cinit%3E(com.plannaplan.entities.Groups)"},{"p":"com.plannaplan.responses.models","c":"GroupWithCapacityResponse","l":"GroupWithCapacityResponse(Groups, int)","u":"%3Cinit%3E(com.plannaplan.entities.Groups,int)"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"id"},{"p":"com.plannaplan","c":"App","l":"importData()"},{"p":"com.plannaplan.controllers","c":"ConfigController","l":"initAdmin(String)","u":"initAdmin(java.lang.String)"},{"p":"com.plannaplan.responses.models","c":"AssignmentsSingleResponse","l":"isAccepted()"},{"p":"com.plannaplan","c":"Logo","l":"Logo(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"com.plannaplan","c":"App","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"com.plannaplan.responses.mappers","c":"AssignmentResponseMappers","l":"mapAssignmetnToDetialedResponse(List)","u":"mapAssignmetnToDetialedResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"mapToCapacityResponse(List)","u":"mapToCapacityResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"mapToCapacityResponse(List, HashMap)","u":"mapToCapacityResponse(java.util.List,java.util.HashMap)"},{"p":"com.plannaplan.responses.mappers","c":"ExchangeResponseMappers","l":"mapToDefaultResponse(List)","u":"mapToDefaultResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"mapToDefaultResponse(List)","u":"mapToDefaultResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"mapToDefaultResponse(List, HashMap)","u":"mapToDefaultResponse(java.util.List,java.util.HashMap)"},{"p":"com.plannaplan.responses.mappers","c":"UserResponseMappers","l":"mapToDefaultResponse(List)","u":"mapToDefaultResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"mapToGetCourseGroupsDefaultResponse(List)","u":"mapToGetCourseGroupsDefaultResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"mapToGetCourseGroupsDefaultResponse(List, HashMap)","u":"mapToGetCourseGroupsDefaultResponse(java.util.List,java.util.HashMap)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"mapToGetCourseGroupsWithCapacityResponse(List)","u":"mapToGetCourseGroupsWithCapacityResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"GroupsMappers","l":"mapToGetCourseGroupsWithCapacityResponse(List, HashMap)","u":"mapToGetCourseGroupsWithCapacityResponse(java.util.List,java.util.HashMap)"},{"p":"com.plannaplan.responses.mappers","c":"CoursesResponseMappers","l":"mapToGetCoursesResponse(List)","u":"mapToGetCoursesResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"CoursesResponseMappers","l":"mapToGetCoursesWithGroupsResponse(List)","u":"mapToGetCoursesWithGroupsResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"AssignmentResponseMappers","l":"mapToResponse(List)","u":"mapToResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"AssignmentResponseMappers","l":"mapToResponse(List, HashMap)","u":"mapToResponse(java.util.List,java.util.HashMap)"},{"p":"com.plannaplan.responses.mappers","c":"CommisionResponseMappers","l":"mapToResponse(List)","u":"mapToResponse(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"CommisionResponseMappers","l":"mapToResponseWithExtraInforGroups(List)","u":"mapToResponseWithExtraInforGroups(java.util.List)"},{"p":"com.plannaplan.responses.mappers","c":"CommisionResponseMappers","l":"mapToResponseWithGroups(List)","u":"mapToResponseWithGroups(java.util.List)"},{"p":"com.plannaplan.responses.models","c":"AssignmentDetailedResponse","l":"name"},{"p":"com.plannaplan.controllers","c":"DeveloperController","l":"performAcceptAlgorythm()"},{"p":"com.plannaplan.controllers","c":"DeveloperController","l":"performExchangeAlgorythm()"},{"p":"com.plannaplan.security","c":"AuthenticationProvider","l":"retrieveUser(String, UsernamePasswordAuthenticationToken)","u":"retrieveUser(java.lang.String,org.springframework.security.authentication.UsernamePasswordAuthenticationToken)"},{"p":"com.plannaplan.controllers","c":"UsersController","l":"searchForStudent(String)","u":"searchForStudent(java.lang.String)"},{"p":"com.plannaplan.responses.models","c":"ExchangeResponse","l":"setDesiredGroup(GroupDefaultResponse)","u":"setDesiredGroup(com.plannaplan.responses.models.GroupDefaultResponse)"},{"p":"com.plannaplan.controllers","c":"DeveloperController","l":"setFirstTour()"},{"p":"com.plannaplan.responses.models","c":"ExchangeResponse","l":"setId(Long)","u":"setId(java.lang.Long)"},{"p":"com.plannaplan.controllers","c":"DeveloperController","l":"setNoTour()"},{"p":"com.plannaplan.responses.models","c":"ExchangeResponse","l":"setOwnedAssignment(GroupDefaultResponse)","u":"setOwnedAssignment(com.plannaplan.responses.models.GroupDefaultResponse)"},{"p":"com.plannaplan.controllers","c":"DeveloperController","l":"setSecondTour()"},{"p":"com.plannaplan.controllers","c":"StatisticsController","l":"StatisticsController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"StatisticSimpleNumberResponse","l":"StatisticSimpleNumberResponse(Integer)","u":"%3Cinit%3E(java.lang.Integer)"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"STUDENT"},{"p":"com.plannaplan.security","c":"AuthenticationFilter","l":"successfulAuthentication(HttpServletRequest, HttpServletResponse, FilterChain, Authentication)","u":"successfulAuthentication(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.servlet.FilterChain,org.springframework.security.core.Authentication)"},{"p":"com.plannaplan","c":"Swagger2Config","l":"Swagger2Config()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"TEST_USER"},{"p":"com.plannaplan.controllers","c":"TokenBasedController","l":"TokenBasedController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.controllers","c":"TokenController","l":"TokenController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.responses.models","c":"TokenResponse","l":"TokenResponse(User)","u":"%3Cinit%3E(com.plannaplan.entities.User)"},{"p":"com.plannaplan.controllers","c":"GroupController","l":"updateCapacity(Long, Integer)","u":"updateCapacity(java.lang.Long,java.lang.Integer)"},{"p":"com.plannaplan.responses.models","c":"UserResponse","l":"UserResponse(User)","u":"%3Cinit%3E(com.plannaplan.entities.User)"},{"p":"com.plannaplan.responses.mappers","c":"UserResponseMappers","l":"UserResponseMappers()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.controllers","c":"UsersController","l":"UsersController()","u":"%3Cinit%3E()"},{"p":"com.plannaplan.controllers","c":"TokenBasedController","l":"userService"},{"p":"com.plannaplan.security.cas","c":"CasValidator","l":"validate()"},{"p":"com.plannaplan.security.cas","c":"CustomUAMCasValidator","l":"validate()"},{"p":"com.plannaplan.security.cas","c":"DefaultUAMCasValidator","l":"validate()"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"com.plannaplan.security","c":"AuthorityRoles","l":"values()"},{"p":"com.plannaplan.security","c":"WebSecurityConfig","l":"WebSecurityConfig(AuthenticationProvider)","u":"%3Cinit%3E(com.plannaplan.security.AuthenticationProvider)"}];updateSearchResults();
\ No newline at end of file
diff --git a/dokumentacja-backendu/restservice/java/module-search-index.js b/dokumentacja-backendu/restservice/java/module-search-index.js
new file mode 100644
index 0000000..0d59754
--- /dev/null
+++ b/dokumentacja-backendu/restservice/java/module-search-index.js
@@ -0,0 +1 @@
+moduleSearchIndex = [];updateSearchResults();
\ No newline at end of file
diff --git a/dokumentacja-backendu/restservice/java/overview-summary.html b/dokumentacja-backendu/restservice/java/overview-summary.html
new file mode 100644
index 0000000..952c704
--- /dev/null
+++ b/dokumentacja-backendu/restservice/java/overview-summary.html
@@ -0,0 +1,26 @@
+
+
+
+
+
+restservice 1.0-SNAPSHOT API
+
+
+
+
+
+
+
+
+
+
+
+
+
").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("
").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete});
\ No newline at end of file
diff --git a/dokumentacja-backendu/restservice/java/script-dir/jquery-ui.structure.min.css b/dokumentacja-backendu/restservice/java/script-dir/jquery-ui.structure.min.css
new file mode 100644
index 0000000..e880892
--- /dev/null
+++ b/dokumentacja-backendu/restservice/java/script-dir/jquery-ui.structure.min.css
@@ -0,0 +1,5 @@
+/*! jQuery UI - v1.12.1 - 2018-12-06
+* http://jqueryui.com
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+
+.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}
\ No newline at end of file
diff --git a/dokumentacja-backendu/restservice/java/script.js b/dokumentacja-backendu/restservice/java/script.js
new file mode 100644
index 0000000..4428408
--- /dev/null
+++ b/dokumentacja-backendu/restservice/java/script.js
@@ -0,0 +1,103 @@
+/*
+ * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+var moduleSearchIndex;
+var packageSearchIndex;
+var typeSearchIndex;
+var memberSearchIndex;
+var tagSearchIndex;
+function loadScripts(doc, tag) {
+ createElem(doc, tag, 'search.js');
+
+ createElem(doc, tag, 'module-search-index.js');
+ createElem(doc, tag, 'package-search-index.js');
+ createElem(doc, tag, 'type-search-index.js');
+ createElem(doc, tag, 'member-search-index.js');
+ createElem(doc, tag, 'tag-search-index.js');
+}
+
+function createElem(doc, tag, path) {
+ var script = doc.createElement(tag);
+ var scriptElement = doc.getElementsByTagName(tag)[0];
+ script.src = pathtoroot + path;
+ scriptElement.parentNode.insertBefore(script, scriptElement);
+}
+
+function show(type) {
+ count = 0;
+ for (var key in data) {
+ var row = document.getElementById(key);
+ if ((data[key] & type) !== 0) {
+ row.style.display = '';
+ row.className = (count++ % 2) ? rowColor : altColor;
+ }
+ else
+ row.style.display = 'none';
+ }
+ updateTabs(type);
+}
+
+function updateTabs(type) {
+ var firstRow = document.getElementById(Object.keys(data)[0]);
+ var table = firstRow.closest('table');
+ for (var value in tabs) {
+ var tab = document.getElementById(tabs[value][0]);
+ if (value == type) {
+ tab.className = activeTableTab;
+ tab.innerHTML = tabs[value][1];
+ tab.setAttribute('aria-selected', true);
+ tab.setAttribute('tabindex',0);
+ table.setAttribute('aria-labelledby', tabs[value][0]);
+ }
+ else {
+ tab.className = tableTab;
+ tab.setAttribute('aria-selected', false);
+ tab.setAttribute('tabindex',-1);
+ tab.setAttribute('onclick', "show("+ value + ")");
+ tab.innerHTML = tabs[value][1];
+ }
+ }
+}
+
+function switchTab(e) {
+ if (e.keyCode == 37 || e.keyCode == 38) {
+ $("[aria-selected=true]").prev().click().focus();
+ e.preventDefault();
+ }
+ if (e.keyCode == 39 || e.keyCode == 40) {
+ $("[aria-selected=true]").next().click().focus();
+ e.preventDefault();
+ }
+}
+
+var updateSearchResults = function() {};
+
+function indexFilesLoaded() {
+ return moduleSearchIndex
+ && packageSearchIndex
+ && typeSearchIndex
+ && memberSearchIndex
+ && tagSearchIndex;
+}
diff --git a/dokumentacja-backendu/restservice/java/search.js b/dokumentacja-backendu/restservice/java/search.js
new file mode 100644
index 0000000..9d19ba1
--- /dev/null
+++ b/dokumentacja-backendu/restservice/java/search.js
@@ -0,0 +1,378 @@
+/*
+ * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+var noResult = {l: "No results found"};
+var loading = {l: "Loading search index..."};
+var catModules = "Modules";
+var catPackages = "Packages";
+var catTypes = "Types";
+var catMembers = "Members";
+var catSearchTags = "SearchTags";
+var highlight = "$&";
+var searchPattern = "";
+var RANKING_THRESHOLD = 2;
+var NO_MATCH = 0xffff;
+var MAX_RESULTS_PER_CATEGORY = 500;
+var UNNAMED = "";
+function escapeHtml(str) {
+ return str.replace(//g, ">");
+}
+function getHighlightedText(item, matcher) {
+ var escapedItem = escapeHtml(item);
+ return escapedItem.replace(matcher, highlight);
+}
+function getURLPrefix(ui) {
+ var urlPrefix="";
+ var slash = "/";
+ if (ui.item.category === catModules) {
+ return ui.item.l + slash;
+ } else if (ui.item.category === catPackages && ui.item.m) {
+ return ui.item.m + slash;
+ } else if (ui.item.category === catTypes || ui.item.category === catMembers) {
+ if (ui.item.m) {
+ urlPrefix = ui.item.m + slash;
+ } else {
+ $.each(packageSearchIndex, function(index, item) {
+ if (item.m && ui.item.p === item.l) {
+ urlPrefix = item.m + slash;
+ }
+ });
+ }
+ return urlPrefix;
+ }
+ return urlPrefix;
+}
+function makeCamelCaseRegex(term) {
+ var pattern = "";
+ var isWordToken = false;
+ term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index) {
+ if (index > 0) {
+ // whitespace between identifiers is significant
+ pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*";
+ }
+ var tokens = w.split(/(?=[A-Z,.()<>[\/])/);
+ for (var i = 0; i < tokens.length; i++) {
+ var s = tokens[i];
+ if (s === "") {
+ continue;
+ }
+ pattern += $.ui.autocomplete.escapeRegex(s);
+ isWordToken = /\w$/.test(s);
+ if (isWordToken) {
+ pattern += "([a-z0-9_$<>\\[\\]]*?)";
+ }
+ }
+ });
+ return pattern;
+}
+function createMatcher(pattern, flags) {
+ var isCamelCase = /[A-Z]/.test(pattern);
+ return new RegExp(pattern, flags + (isCamelCase ? "" : "i"));
+}
+var watermark = 'Search';
+$(function() {
+ $("#search").val('');
+ $("#search").prop("disabled", false);
+ $("#reset").prop("disabled", false);
+ $("#search").val(watermark).addClass('watermark');
+ $("#search").blur(function() {
+ if ($(this).val().length == 0) {
+ $(this).val(watermark).addClass('watermark');
+ }
+ });
+ $("#search").on('click keydown paste', function() {
+ if ($(this).val() == watermark) {
+ $(this).val('').removeClass('watermark');
+ }
+ });
+ $("#reset").click(function() {
+ $("#search").val('');
+ $("#search").focus();
+ });
+ $("#search").focus();
+ $("#search")[0].setSelectionRange(0, 0);
+});
+$.widget("custom.catcomplete", $.ui.autocomplete, {
+ _create: function() {
+ this._super();
+ this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)");
+ },
+ _renderMenu: function(ul, items) {
+ var rMenu = this;
+ var currentCategory = "";
+ rMenu.menu.bindings = $();
+ $.each(items, function(index, item) {
+ var li;
+ if (item.category && item.category !== currentCategory) {
+ ul.append("