diff --git a/Pilka/zapisy-studentow/Prezentacja.pdf b/Pilka/zapisy-studentow/Prezentacja.pdf new file mode 100644 index 0000000..ae06ccf Binary files /dev/null and b/Pilka/zapisy-studentow/Prezentacja.pdf differ diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/allclasses-index.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/allclasses-index.html new file mode 100644 index 0000000..77aedfb --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/allclasses-index.html @@ -0,0 +1,401 @@ + + + + + +All Classes (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

All Classes

+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ClassDescription
AppConfig +
entity that keeps app configurations
+
AppConfigRepository +
Repository for app config
+
AppState 
Assignment +
Entity of Assignment grouping of state associated about group_id and + commision_id
+
AssignmentRepository +
AssignmentRepository.getByCommision: + Return list of: + SELECT * FROM Assignment WHERE commision_id = i .
+
AssignmentService +
Service of Assignment which can save assignments, diplay assignments, get + ammount of assigments.
+
Commision +
Entity of Commision grouping of state associated about commison and owner_id
+
CommisionRepository +
CommisionRepository.getUsers: Return list of: SELECT * FROM Commision WHERE + owner_id = i .
+
CommisionService +
Service of CommisionService which can save commision, get user's commisions, + get newest user's commision, get ammount of commisions.
+
ConfigData +
Config data copntainer to keep tours dates and stream of dasta to import
+
ConfiguratorService +
FileReader is used for reading xls file from input stream.
+
Course +
Entity of Course grouping of state of course
+
CourseRepository +
CourseRepository.findByName: + Return list of: + SELECT * FROM Course WHERE name = i .
+
CourseService +
Service of CourseService which can get(Course By Name, All Courses, Courses + Ammount ), save, delete course.
+
EmailAcceptedData +
Instance to keep data to send in mail about accepted courses results
+
EmailExchangesData +
Class to keepm data to be send after exchanges being accept
+
EmailService +
Service to send emails
+
EventService +
Service to manage app events
+
Exchange +
Entity that keeps user exchange offer.
+
ExchangeRepository 
ExchangeService +
Service to manage Exchanges
+
ExportData +
Container to keep data to export
+
FileData +
Wrapper for data readed from file
+
FileReader +
FileReader is used for reading xls file from input stream.
+
FileToDatabaseMigrator +
FileToDatabaseMigrator is used for migrate data from file (it reads line by + line) and push it into database
+
GroupRepository +
GroupRepository.find: + Return list of: + SELECT * FROM Groups WHERE time = i AND room = j AND capacity = k .
+
Groups +
Entity of Groups grouping of state ssociated about + course,time,room,capacity,type,day
+
GroupService +
Service of GroupService which can find(optional), get(By Course, Groups + Ammount, Group By Id, find Not Existing Group), save, delete group.
+
GroupType +
GroupType contains types: LECTURE, CLASS, LAB, SEMINAR, CONSERVATORY, PRATICE
+
Lecturer +
Entity of Lecturer grouping of state ssociated about id,title,name,surname
+
LecturerRepository +
LecturerRepository.find: + Return list of: + SELECT * FROM Lecturer WHERE title = i AND name = j AND surname = k.
+
LecturerService +
Service of LecturerService which can get(Lecturer, Lecturers Ammount), save, delete lecturers.
+
MatchData +
Match of users Exchange's to be performed
+
TokenExpiredException +
Excepction to be thrown when provided token is expired
+
TourData +
Container for Tours dates
+
User +
Entity of User grouping of state ssociated about + id,name,surname,email,role,token,tokenCreatedDate
+
UserApiResponse +
Model to keep data from /services/users/user response called in + UsosApiService
+
UserNotFoundException +
Exception to be thrown when provided user does not exist in database
+
UserRepository +
UserRepository.getByAuthority: Return list of: SELECT * FROM User WHERE email + = i.
+
UserRoles +
UserRoles contains types: STUDENT, DEANERY, ADMIN, TEST_USER
+
UserService +
Service of UserService which can get(By Email), login, save user.
+
UsosApiService +
service to call usos api endpoints
+
UsosOauth1Service +
singleton class to sign usos api requests with oauth
+
WeekDay +
WeekDay contains types: MONDAY(0), TUESDAY(1), WEDNESDAY(2), THURSDAY(3), FRIDAY(4), SATURDAY(5), SUNDAY(6).
+
+
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/allpackages-index.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/allpackages-index.html new file mode 100644 index 0000000..5c6b35d --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/allpackages-index.html @@ -0,0 +1,164 @@ + + + + + +All Packages (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Package Summary 
PackageDescription
com.plannaplan.api +
Provides the classes necessary to obtain usos authentication with Oauth1
+
com.plannaplan.configutils +
Provides the classes necessary to to config and import related operations in + the app
+
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.exceptions +
Provides custom for our app exceptions to get more accutrate errors info
+
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
com.plannaplan.types +
Provides enums for different goals.
+
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/UsosOauth1Service.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/UsosOauth1Service.html new file mode 100644 index 0000000..7e64fda --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/UsosOauth1Service.html @@ -0,0 +1,335 @@ + + + + + +UsosOauth1Service (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UsosOauth1Service

+
+
+
java.lang.Object +
com.github.scribejava.core.builder.api.DefaultApi10a +
com.plannaplan.api.UsosOauth1Service
+
+
+
+
+
public class UsosOauth1Service
+extends com.github.scribejava.core.builder.api.DefaultApi10a
+
singleton class to sign usos api requests with oauth
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + + + + +
    Constructors 
    ModifierConstructorDescription
    protected UsosOauth1Service() 
    protected UsosOauth1Service​(java.lang.String... scopes) 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.lang.StringgetAccessTokenEndpoint() 
    protected java.lang.StringgetAuthorizationBaseUrl() 
    java.lang.StringgetRequestTokenEndpoint() 
    static UsosOauth1Serviceinstance() 
    static UsosOauth1Serviceinstance​(java.lang.String... scopes) +
    get instance withj scopes
    +
    +
    +
    +
    +

    Methods inherited from class com.github.scribejava.core.builder.api.DefaultApi10a

    + + +createService, getAccessTokenExtractor, getAccessTokenVerb, getAuthorizationUrl, getBaseStringExtractor, getHeaderExtractor, getRequestTokenExtractor, getRequestTokenVerb, getSignatureService, getSignatureType, getTimestampService, isEmptyOAuthTokenParamIsRequired
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      instance

      +
      public static UsosOauth1Service instance()
      +
      +
    • +
    • +
      +

      instance

      +
      public static UsosOauth1Service instance​(java.lang.String... scopes)
      +
      get instance withj scopes
      +
      +
      Parameters:
      +
      scopes - to get instance with
      +
      Returns:
      +
      UsosOauth1Service instance
      +
      +
      +
    • +
    • +
      +

      getRequestTokenEndpoint

      +
      public java.lang.String getRequestTokenEndpoint()
      +
      +
      Specified by:
      +
      getRequestTokenEndpoint in class com.github.scribejava.core.builder.api.DefaultApi10a
      +
      +
      +
    • +
    • +
      +

      getAccessTokenEndpoint

      +
      public java.lang.String getAccessTokenEndpoint()
      +
      +
      Specified by:
      +
      getAccessTokenEndpoint in class com.github.scribejava.core.builder.api.DefaultApi10a
      +
      +
      +
    • +
    • +
      +

      getAuthorizationBaseUrl

      +
      protected java.lang.String getAuthorizationBaseUrl()
      +
      +
      Specified by:
      +
      getAuthorizationBaseUrl in class com.github.scribejava.core.builder.api.DefaultApi10a
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/class-use/UsosOauth1Service.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/class-use/UsosOauth1Service.html new file mode 100644 index 0000000..fa54942 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/class-use/UsosOauth1Service.html @@ -0,0 +1,157 @@ + + + + + +Uses of Class com.plannaplan.api.UsosOauth1Service (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.api.UsosOauth1Service

+
+
+
+ + + + + + + + + + + + + + +
Packages that use UsosOauth1Service 
PackageDescription
com.plannaplan.api +
Provides the classes necessary to obtain usos authentication with Oauth1
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-summary.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-summary.html new file mode 100644 index 0000000..fac31bf --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-summary.html @@ -0,0 +1,135 @@ + + + + + +com.plannaplan.api (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Package com.plannaplan.api

+
+
+
+ + +
Provides the classes necessary to obtain usos authentication with Oauth1
+
+
Since:
+
1.0
+
+
+
+
    +
  • +
    + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    UsosOauth1Service +
    singleton class to sign usos api requests with oauth
    +
    +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-tree.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-tree.html new file mode 100644 index 0000000..c2ab0fa --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-tree.html @@ -0,0 +1,119 @@ + + + + + +com.plannaplan.api Class Hierarchy (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.plannaplan.api

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • com.github.scribejava.core.builder.api.DefaultApi10a + +
    • +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-use.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-use.html new file mode 100644 index 0000000..c564939 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/api/package-use.html @@ -0,0 +1,149 @@ + + + + + +Uses of Package com.plannaplan.api (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.plannaplan.api

+
+
+
+ + + + + + + + + + + + + + +
Packages that use com.plannaplan.api 
PackageDescription
com.plannaplan.api +
Provides the classes necessary to obtain usos authentication with Oauth1
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/FileReader.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/FileReader.html new file mode 100644 index 0000000..c8083e5 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/FileReader.html @@ -0,0 +1,266 @@ + + + + + +FileReader (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FileReader

+
+
+
java.lang.Object +
com.plannaplan.configutils.FileReader
+
+
+
+
public class FileReader
+extends java.lang.Object
+
FileReader is used for reading xls file from input stream.
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    FileReader​(java.io.InputStream fileInputStream) 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    FileDataread() +
    read data rom file
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      FileReader

      +
      public FileReader​(java.io.InputStream fileInputStream)
      +
      +
      Parameters:
      +
      fileInputStream - stream of stadarized file contains courses and gropups + to import. File needs to be .xlsx file that has + fields: zaj_cyk_id, typ, sym, nazwa, gr_nr, Mc, dzien, + godz_od, sala, tytul, nazwisko, imie. Order doesn't + have impact on import. Any change name of given field + can be performed in FileToDatabaseMigrator class
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      read

      +
      public FileData read()
      +
      read data rom file
      +
      +
      Returns:
      +
      instance of class FileData
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/FileToDatabaseMigrator.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/FileToDatabaseMigrator.html new file mode 100644 index 0000000..bb06862 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/FileToDatabaseMigrator.html @@ -0,0 +1,259 @@ + + + + + +FileToDatabaseMigrator (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FileToDatabaseMigrator

+
+
+
java.lang.Object +
com.plannaplan.configutils.FileToDatabaseMigrator
+
+
+
+
@Component
+public class FileToDatabaseMigrator
+extends java.lang.Object
+
FileToDatabaseMigrator is used for migrate data from file (it reads line by + line) and push it into database
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    FileToDatabaseMigrator() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voidmigrate​(FileData data) +
    insert data to database
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      migrate

      +
      public void migrate​(FileData data)
      +
      insert data to database
      +
      +
      Parameters:
      +
      data - FileData imported from file
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/class-use/FileReader.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/class-use/FileReader.html new file mode 100644 index 0000000..658afba --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/class-use/FileReader.html @@ -0,0 +1,100 @@ + + + + + +Uses of Class com.plannaplan.configutils.FileReader (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.configutils.FileReader

+
+
No usage of com.plannaplan.configutils.FileReader
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/class-use/FileToDatabaseMigrator.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/class-use/FileToDatabaseMigrator.html new file mode 100644 index 0000000..937a2c8 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/class-use/FileToDatabaseMigrator.html @@ -0,0 +1,100 @@ + + + + + +Uses of Class com.plannaplan.configutils.FileToDatabaseMigrator (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.configutils.FileToDatabaseMigrator

+
+
No usage of com.plannaplan.configutils.FileToDatabaseMigrator
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-summary.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-summary.html new file mode 100644 index 0000000..0c87c8f --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-summary.html @@ -0,0 +1,143 @@ + + + + + +com.plannaplan.configutils (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Package com.plannaplan.configutils

+
+
+
+ + +
Provides the classes necessary to to config and import related operations in + the app
+
+
Since:
+
1.0
+
+
+
+
    +
  • +
    + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    FileReader +
    FileReader is used for reading xls file from input stream.
    +
    FileToDatabaseMigrator +
    FileToDatabaseMigrator is used for migrate data from file (it reads line by + line) and push it into database
    +
    +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-tree.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-tree.html new file mode 100644 index 0000000..6dc198d --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-tree.html @@ -0,0 +1,116 @@ + + + + + +com.plannaplan.configutils Class Hierarchy (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.plannaplan.configutils

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-use.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-use.html new file mode 100644 index 0000000..64a2729 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/configutils/package-use.html @@ -0,0 +1,100 @@ + + + + + +Uses of Package com.plannaplan.configutils (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.plannaplan.configutils

+
+
No usage of com.plannaplan.configutils
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/AppConfig.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/AppConfig.html new file mode 100644 index 0000000..e3ea2c5 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/AppConfig.html @@ -0,0 +1,443 @@ + + + + + +AppConfig (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AppConfig

+
+
+
java.lang.Object +
com.plannaplan.entities.AppConfig
+
+
+
+
@Entity
+public class AppConfig
+extends java.lang.Object
+
entity that keeps app configurations
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    AppConfig() +
    no parameter construcotor
    +
    AppConfig​(TourData firstTour, +TourData scondTour) +
    constructor
    +
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.sql.TimestampgetConfigDate() +
    config date getter
    +
    AppStategetCurrentState() +
    current state getter
    +
    java.sql.DategetFirstTourEnd() +
    first tour end getter
    +
    org.springframework.scheduling.support.CronTriggergetFirstTourEndCron() +
    get cron expression of first tour end
    +
    java.sql.DategetFirstTourStart() +
    first tour start getter
    +
    org.springframework.scheduling.support.CronTriggergetFirstTourStartCron() +
    get cron expression of first tour start
    +
    java.sql.DategetSecondTourEnd() +
    second tour end getter
    +
    org.springframework.scheduling.support.CronTriggergetSecondTourEndCron() +
    get cron expression of second tour end
    +
    java.sql.DategetSecondTourStart() +
    first second start getter
    +
    org.springframework.scheduling.support.CronTriggergetSecondTourStartCron() +
    get cron expression of second tour start
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      AppConfig

      +
      public AppConfig()
      +
      no parameter construcotor
      +
      +
    • +
    • +
      +

      AppConfig

      +
      public AppConfig​(TourData firstTour, +TourData scondTour)
      +
      constructor
      +
      +
      Parameters:
      +
      firstTour - first TourData instacne
      +
      scondTour - second TourData instacne
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getSecondTourEnd

      +
      public java.sql.Date getSecondTourEnd()
      +
      second tour end getter
      +
      +
      Returns:
      +
      Date inforamtion when second tour ends
      +
      +
      +
    • +
    • +
      +

      getSecondTourStart

      +
      public java.sql.Date getSecondTourStart()
      +
      first second start getter
      +
      +
      Returns:
      +
      Date inforamtion when second tour start
      +
      +
      +
    • +
    • +
      +

      getFirstTourEnd

      +
      public java.sql.Date getFirstTourEnd()
      +
      first tour end getter
      +
      +
      Returns:
      +
      Date inforamtion when first tour end
      +
      +
      +
    • +
    • +
      +

      getFirstTourStart

      +
      public java.sql.Date getFirstTourStart()
      +
      first tour start getter
      +
      +
      Returns:
      +
      Date inforamtion when first tour start
      +
      +
      +
    • +
    • +
      +

      getConfigDate

      +
      public java.sql.Timestamp getConfigDate()
      +
      config date getter
      +
      +
      Returns:
      +
      Timestamp when configuration took place
      +
      +
      +
    • +
    • +
      +

      getCurrentState

      +
      public AppState getCurrentState()
      +
      current state getter
      +
      +
      Returns:
      +
      AppState of app at the moment of calling method
      +
      +
      +
    • +
    • +
      +

      getFirstTourEndCron

      +
      public org.springframework.scheduling.support.CronTrigger getFirstTourEndCron()
      +
      get cron expression of first tour end
      +
      +
      Returns:
      +
      spring cron expression
      +
      +
      +
    • +
    • +
      +

      getSecondTourEndCron

      +
      public org.springframework.scheduling.support.CronTrigger getSecondTourEndCron()
      +
      get cron expression of second tour end
      +
      +
      Returns:
      +
      spring cron expression
      +
      +
      +
    • +
    • +
      +

      getFirstTourStartCron

      +
      public org.springframework.scheduling.support.CronTrigger getFirstTourStartCron()
      +
      get cron expression of first tour start
      +
      +
      Returns:
      +
      spring cron expression
      +
      +
      +
    • +
    • +
      +

      getSecondTourStartCron

      +
      public org.springframework.scheduling.support.CronTrigger getSecondTourStartCron()
      +
      get cron expression of second tour start
      +
      +
      Returns:
      +
      spring cron expression
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Assignment.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Assignment.html new file mode 100644 index 0000000..93944d8 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Assignment.html @@ -0,0 +1,425 @@ + + + + + +Assignment (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Assignment

+
+
+
java.lang.Object +
com.plannaplan.entities.Assignment
+
+
+
+
@Entity
+public class Assignment
+extends java.lang.Object
+
Entity of Assignment grouping of state associated about group_id and + commision_id
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    Assignment() 
    Assignment​(Groups group, +Commision commision) +
    Assignment
    +
    Assignment​(Groups group, +Commision commision, +boolean isPastAssignment) +
    Assignment
    +
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    CommisiongetCommision() +
    Getter of commision
    +
    GroupsgetGroup() +
    getGroup
    +
    java.lang.LonggetId() +
    Id getter
    +
    static AssignmentgetNewFromAssignment​(Assignment oldAssignment, +Commision newCommision) 
    booleanisAccepted() +
    If it returns trues it mesans u are assigned to group accepted by algorythm
    +
    booleanisPastAssignment() +
    isPastAssignment getter
    +
    voidsetCommision​(Commision commision) 
    voidsetPastAssignment​(boolean isPastAssignment) +
    setter isPastAssignment
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      Assignment

      +
      public Assignment​(Groups group, +Commision commision, +boolean isPastAssignment)
      +
      Assignment
      +
      +
      Parameters:
      +
      group - group we would like to assign
      +
      commision - commision that assignment belongs to
      +
      isPastAssignment - is assignment past or no
      +
      +
      +
    • +
    • +
      +

      Assignment

      +
      public Assignment​(Groups group, +Commision commision)
      +
      Assignment
      +
      +
      Parameters:
      +
      group - group we would like to assign
      +
      commision - commision that assignment belongs to
      +
      +
      +
    • +
    • +
      +

      Assignment

      +
      public Assignment()
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getNewFromAssignment

      +
      public static Assignment getNewFromAssignment​(Assignment oldAssignment, +Commision newCommision)
      +
      +
      Parameters:
      +
      oldAssignment - old assignment that we want to move to new commision
      +
      newCommision - commsion to move assiongment
      +
      +
      +
    • +
    • +
      +

      isAccepted

      +
      public boolean isAccepted()
      +
      If it returns trues it mesans u are assigned to group accepted by algorythm
      +
      +
      Returns:
      +
      boolean isAccepted
      +
      +
      +
    • +
    • +
      +

      getCommision

      +
      public Commision getCommision()
      +
      Getter of commision
      +
      +
      Returns:
      +
      Commision Commision of given assignments
      +
      +
      +
    • +
    • +
      +

      setCommision

      +
      public void setCommision​(Commision commision)
      +
      +
      Parameters:
      +
      commision - commision to set
      +
      +
      +
    • +
    • +
      +

      getId

      +
      public java.lang.Long getId()
      +
      Id getter
      +
      +
      Returns:
      +
      id id of assignment
      +
      +
      +
    • +
    • +
      +

      getGroup

      +
      public Groups getGroup()
      +
      getGroup
      +
      +
      Returns:
      +
      group
      +
      +
      +
    • +
    • +
      +

      isPastAssignment

      +
      public boolean isPastAssignment()
      +
      isPastAssignment getter
      +
      +
      Returns:
      +
      isPastAssignment
      +
      +
      +
    • +
    • +
      +

      setPastAssignment

      +
      public void setPastAssignment​(boolean isPastAssignment)
      +
      setter isPastAssignment
      +
      +
      Parameters:
      +
      isPastAssignment - is assignment past or not
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Commision.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Commision.html new file mode 100644 index 0000000..a7b33b5 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Commision.html @@ -0,0 +1,359 @@ + + + + + +Commision (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Commision

+
+
+
java.lang.Object +
com.plannaplan.entities.Commision
+
+
+
+
@Entity
+public class Commision
+extends java.lang.Object
+
Entity of Commision grouping of state associated about commison and owner_id
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    Commision() 
    Commision​(User user) 
    Commision​(User user, +User commiter) 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.List<Assignment>getAssignments() +
    Assigments getter
    +
    UsergetCommisionCommiter() 
    java.sql.TimestampgetCommisionDate() +
    CommisionDate getter
    +
    UsergetCommisionOwner() +
    User of given commision getter
    +
    java.lang.LonggetId() +
    Id getter
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      Commision

      +
      public Commision​(User user)
      +
      +
      Parameters:
      +
      user - owner of commission. Can not be null otherwise saving commision + will fail.
      +
      +
      +
    • +
    • +
      +

      Commision

      +
      public Commision​(User user, +User commiter)
      +
      +
      Parameters:
      +
      user - user whose shedule is being commited
      +
      commiter - user that commited new schedule
      +
      +
      +
    • +
    • +
      +

      Commision

      +
      public Commision()
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getId

      +
      public java.lang.Long getId()
      +
      Id getter
      +
      +
      Returns:
      +
      id id of commision
      +
      +
      +
    • +
    • +
      +

      getCommisionDate

      +
      public java.sql.Timestamp getCommisionDate()
      +
      CommisionDate getter
      +
      +
      Returns:
      +
      commisionDate
      +
      +
      +
    • +
    • +
      +

      getCommisionOwner

      +
      public User getCommisionOwner()
      +
      User of given commision getter
      +
      +
      Returns:
      +
      User commisionOwner
      +
      +
      +
    • +
    • +
      +

      getCommisionCommiter

      +
      public User getCommisionCommiter()
      +
      +
      Returns:
      +
      User entity that created commision (can be owner or deanery user)
      +
      +
      +
    • +
    • +
      +

      getAssignments

      +
      public java.util.List<Assignment> getAssignments()
      +
      Assigments getter
      +
      +
      Returns:
      +
      List of assignments
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Course.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Course.html new file mode 100644 index 0000000..7e067c7 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Course.html @@ -0,0 +1,368 @@ + + + + + +Course (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Course

+
+
+
java.lang.Object +
com.plannaplan.entities.Course
+
+
+
+
@Entity
+public class Course
+extends java.lang.Object
+
Entity of Course grouping of state of course
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    Course() 
    Course​(java.lang.String name, +java.lang.String symbol) +
    Course
    +
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.List<Groups>getGroups() +
    getGroups
    +
    java.lang.LonggetId() +
    getId
    +
    java.lang.StringgetName() +
    getName
    +
    java.lang.StringgetSymbol() +
    getSymbol
    +
    voidsetName​(java.lang.String name) +
    setName
    +
    voidsetSymbol​(java.lang.String symbol) +
    setSymbol
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      Course

      +
      public Course()
      +
      +
    • +
    • +
      +

      Course

      +
      public Course​(java.lang.String name, +java.lang.String symbol)
      +
      Course
      +
      +
      Parameters:
      +
      name - name given to the course
      +
      symbol - symbol given to the course
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getId

      +
      public java.lang.Long getId()
      +
      getId
      +
      +
      Returns:
      +
      id
      +
      +
      +
    • +
    • +
      +

      getName

      +
      public java.lang.String getName()
      +
      getName
      +
      +
      Returns:
      +
      name
      +
      +
      +
    • +
    • +
      +

      getSymbol

      +
      public java.lang.String getSymbol()
      +
      getSymbol
      +
      +
      Returns:
      +
      symbol
      +
      +
      +
    • +
    • +
      +

      setSymbol

      +
      public void setSymbol​(java.lang.String symbol)
      +
      setSymbol
      +
      +
      Parameters:
      +
      symbol - set symbol in the course
      +
      +
      +
    • +
    • +
      +

      setName

      +
      public void setName​(java.lang.String name)
      +
      setName
      +
      +
      Parameters:
      +
      name - set name in the course
      +
      +
      +
    • +
    • +
      +

      getGroups

      +
      public java.util.List<Groups> getGroups()
      +
      getGroups
      +
      +
      Returns:
      +
      groups return list groups
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Exchange.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Exchange.html new file mode 100644 index 0000000..01e3671 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Exchange.html @@ -0,0 +1,373 @@ + + + + + +Exchange (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Exchange

+
+
+
java.lang.Object +
com.plannaplan.entities.Exchange
+
+
+
+
@Entity
+public class Exchange
+extends java.lang.Object
+
Entity that keeps user exchange offer.
+
+
+ +
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      Exchange

      +
      public Exchange()
      +
      +
    • +
    • +
      +

      Exchange

      +
      public Exchange​(Assignment ownedAssignment, +Groups desiredAssignment)
      +
      +
      Parameters:
      +
      ownedAssignment - Assignment which owner would like to trade
      +
      desiredAssignment - Groups instance that trader wants
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getOwnerId

      +
      public java.lang.Long getOwnerId()
      +
      +
      Returns:
      +
      Long ID of exchange trader
      +
      +
      +
    • +
    • +
      +

      setOwnerId

      +
      public void setOwnerId​(java.lang.Long ownerId)
      +
      +
      Parameters:
      +
      ownerId - ID of exchange trader
      +
      +
      +
    • +
    • +
      +

      getDataExchange

      +
      public java.sql.Timestamp getDataExchange()
      +
      +
    • +
    • +
      +

      getId

      +
      public java.lang.Long getId()
      +
      +
      Returns:
      +
      Long ID in database
      +
      +
      +
    • +
    • +
      +

      getDesiredAssignment

      +
      public Groups getDesiredAssignment()
      +
      +
      Returns:
      +
      Groups Target group
      +
      +
      +
    • +
    • +
      +

      setDesiredAssignment

      +
      public void setDesiredAssignment​(Groups desiredAssignment)
      +
      +
      Parameters:
      +
      desiredAssignment - Target group
      +
      +
      +
    • +
    • +
      +

      getOwnedAssignment

      +
      public Assignment getOwnedAssignment()
      +
      +
      Returns:
      +
      Assignment Owned assignment
      +
      +
      +
    • +
    • +
      +

      setOwnedAssignment

      +
      public void setOwnedAssignment​(Assignment ownedAssignment)
      +
      +
      Parameters:
      +
      ownedAssignment - Owned assignment
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Groups.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Groups.html new file mode 100644 index 0000000..341ef59 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Groups.html @@ -0,0 +1,901 @@ + + + + + +Groups (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Groups

+
+
+
java.lang.Object +
com.plannaplan.entities.Groups
+
+
+
+
@Entity
+public class Groups
+extends java.lang.Object
+
Entity of Groups grouping of state ssociated about + course,time,room,capacity,type,day
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    Groups() 
    Groups​(int capacity, +java.lang.String room, +Course course, +int time, +int endTime, +WeekDay day, +Lecturer lecturer) +
    Groups
    +
    Groups​(int capacity, +java.lang.String room, +Course course, +int time, +int endTime, +WeekDay day, +Lecturer lecturer, +java.lang.Integer zajCykId, +java.lang.Integer grNr) +
    Groups
    +
    Groups​(int capacity, +java.lang.String room, +Course course, +int time, +int endTime, +WeekDay day, +Lecturer lecturer, +java.lang.Integer zajCykId, +java.lang.Integer grNr, +GroupType type) +
    Groups
    +
    Groups​(int capacity, +java.lang.String room, +Course course, +int time, +WeekDay day, +Lecturer lecturer) +
    Create groups with default class duration
    +
    Groups​(int capacity, +java.lang.String room, +Course course, +int time, +WeekDay day, +Lecturer lecturer, +java.lang.Integer zajCykId, +java.lang.Integer grNr) +
    Groups
    +
    Groups​(int capacity, +java.lang.String room, +Course course, +int time, +WeekDay day, +Lecturer lecturer, +java.lang.Integer zajCykId, +java.lang.Integer grNr, +GroupType type) +
    Groups
    +
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voidassignUser​(User user) 
    intgetCapacity() +
    getCapacity
    +
    CoursegetCourseId() +
    getCourseId
    +
    WeekDaygetDay() +
    WeekDay
    +
    intgetEndTime() +
    get time of class end
    +
    java.lang.StringgetEndTimeString() +
    gets end time formated strins
    +
    java.lang.IntegergetGrNr() 
    java.lang.LonggetId() +
    getId
    +
    LecturergetLecturer() +
    getLecturer
    +
    java.util.Set<User>getRegisteredStudents() 
    java.lang.StringgetRoom() +
    getRoom
    +
    intgetTime() +
    getTime
    +
    java.lang.StringgetTimeString() +
    getTimeString
    +
    GroupTypegetType() +
    GroupType
    +
    java.lang.IntegergetZajCykId() 
    voidsetCapacity​(int capacity) +
    setCapacity
    +
    voidsetCourseId​(Course courseId) +
    setCourseId
    +
    voidsetDay​(WeekDay day) +
    setLecturer
    +
    voidsetGrNr​(java.lang.Integer grNr) 
    voidsetLecturer​(Lecturer lecturer) +
    setLecturer
    +
    voidsetRoom​(java.lang.String room) +
    setRoom
    +
    voidsetTime​(int time) +
    setTime
    +
    voidsetType​(GroupType type) +
    setType
    +
    voidsetZajCykId​(java.lang.Integer zajCykId) 
    voidupdate​(java.lang.Integer capacity, +java.lang.String room, +Course course, +java.lang.Integer time, +java.lang.Integer endTime, +WeekDay day, +Lecturer lecturer, +GroupType type) +
    Updates given values other that are not null
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      Groups

      +
      public Groups()
      +
      +
    • +
    • +
      +

      Groups

      +
      public Groups​(int capacity, +java.lang.String room, +Course course, +int time, +int endTime, +WeekDay day, +Lecturer lecturer)
      +
      Groups
      +
      +
      Parameters:
      +
      capacity - capacity given to the groups
      +
      room - room given to the groups
      +
      course - course given to the groups
      +
      time - time given to the groups
      +
      endTime - end time of class in minutes
      +
      day - day given to the groups
      +
      lecturer - lecturer given to the groups
      +
      +
      +
    • +
    • +
      +

      Groups

      +
      public Groups​(int capacity, +java.lang.String room, +Course course, +int time, +int endTime, +WeekDay day, +Lecturer lecturer, +java.lang.Integer zajCykId, +java.lang.Integer grNr, +GroupType type)
      +
      Groups
      +
      +
      Parameters:
      +
      capacity - capacity given to the groups
      +
      room - room given to the groups
      +
      course - course given to the groups
      +
      time - time given to the groups
      +
      endTime - end time of class in minutes
      +
      day - day given to the groups
      +
      lecturer - lecturer given to the groups
      +
      zajCykId - number of class in the term
      +
      grNr - Number of class/course
      +
      type - type of class/cource
      +
      +
      +
    • +
    • +
      +

      Groups

      +
      public Groups​(int capacity, +java.lang.String room, +Course course, +int time, +WeekDay day, +Lecturer lecturer, +java.lang.Integer zajCykId, +java.lang.Integer grNr, +GroupType type)
      +
      Groups
      +
      +
      Parameters:
      +
      capacity - capacity given to the groups
      +
      room - room given to the groups
      +
      course - course given to the groups
      +
      time - time given to the groups
      +
      day - day given to the groups
      +
      lecturer - lecturer given to the groups
      +
      zajCykId - number of class in the term
      +
      grNr - Number of class/course
      +
      type - type of class/cource
      +
      +
      +
    • +
    • +
      +

      Groups

      +
      public Groups​(int capacity, +java.lang.String room, +Course course, +int time, +int endTime, +WeekDay day, +Lecturer lecturer, +java.lang.Integer zajCykId, +java.lang.Integer grNr)
      +
      Groups
      +
      +
      Parameters:
      +
      capacity - capacity given to the groups
      +
      room - room given to the groups
      +
      course - course given to the groups
      +
      time - time given to the groups
      +
      endTime - end time of class in minutes
      +
      day - day given to the groups
      +
      lecturer - lecturer given to the groups
      +
      zajCykId - number of class in the term
      +
      grNr - Number of class/course
      +
      +
      +
    • +
    • +
      +

      Groups

      +
      public Groups​(int capacity, +java.lang.String room, +Course course, +int time, +WeekDay day, +Lecturer lecturer, +java.lang.Integer zajCykId, +java.lang.Integer grNr)
      +
      Groups
      +
      +
      Parameters:
      +
      capacity - capacity given to the groups
      +
      room - room given to the groups
      +
      course - course given to the groups
      +
      time - time given to the groups
      +
      day - day given to the groups
      +
      lecturer - lecturer given to the groups
      +
      zajCykId - number of class in the term
      +
      grNr - Number of class/course
      +
      +
      +
    • +
    • +
      +

      Groups

      +
      public Groups​(int capacity, +java.lang.String room, +Course course, +int time, +WeekDay day, +Lecturer lecturer)
      +
      Create groups with default class duration
      +
      +
      Parameters:
      +
      capacity - capacity given to the groups
      +
      room - room given to the groups
      +
      course - course given to the groups
      +
      time - time given to the groups
      +
      day - day given to the groups
      +
      lecturer - lecturer given to the groups
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getRegisteredStudents

      +
      public java.util.Set<User> getRegisteredStudents()
      +
      +
    • +
    • +
      +

      assignUser

      +
      public void assignUser​(User user)
      +
      +
    • +
    • +
      +

      getGrNr

      +
      public java.lang.Integer getGrNr()
      +
      +
    • +
    • +
      +

      setGrNr

      +
      public void setGrNr​(java.lang.Integer grNr)
      +
      +
    • +
    • +
      +

      getZajCykId

      +
      public java.lang.Integer getZajCykId()
      +
      +
    • +
    • +
      +

      setZajCykId

      +
      public void setZajCykId​(java.lang.Integer zajCykId)
      +
      +
    • +
    • +
      +

      update

      +
      public void update​(java.lang.Integer capacity, +java.lang.String room, +Course course, +java.lang.Integer time, +java.lang.Integer endTime, +WeekDay day, +Lecturer lecturer, +GroupType type)
      +
      Updates given values other that are not null
      +
      +
      Parameters:
      +
      capacity - capacity given to the groups
      +
      room - room given to the groups
      +
      course - course given to the groups
      +
      time - time given to the groups
      +
      endTime - end time of class in minutes
      +
      day - day given to the groups
      +
      lecturer - lecturer given to the groups
      +
      type - type given to the groups
      +
      +
      +
    • +
    • +
      +

      getEndTime

      +
      public int getEndTime()
      +
      get time of class end
      +
      +
      Returns:
      +
      hour of class finish time in minutes
      +
      +
      +
    • +
    • +
      +

      getId

      +
      public java.lang.Long getId()
      +
      getId
      +
      +
      Returns:
      +
      id
      +
      +
      +
    • +
    • +
      +

      getLecturer

      +
      public Lecturer getLecturer()
      +
      getLecturer
      +
      +
      Returns:
      +
      lecturer
      +
      +
      +
    • +
    • +
      +

      setLecturer

      +
      public void setLecturer​(Lecturer lecturer)
      +
      setLecturer
      +
      +
      Parameters:
      +
      lecturer - set lecturer into groups
      +
      +
      +
    • +
    • +
      +

      getDay

      +
      public WeekDay getDay()
      +
      WeekDay
      +
      +
      Returns:
      +
      day
      +
      +
      +
    • +
    • +
      +

      setDay

      +
      public void setDay​(WeekDay day)
      +
      setLecturer
      +
      +
      Parameters:
      +
      day - set day into groups
      +
      +
      +
    • +
    • +
      +

      getType

      +
      public GroupType getType()
      +
      GroupType
      +
      +
      Returns:
      +
      type
      +
      +
      +
    • +
    • +
      +

      setType

      +
      public void setType​(GroupType type)
      +
      setType
      +
      +
      Parameters:
      +
      type - set type into groups
      +
      +
      +
    • +
    • +
      +

      getCapacity

      +
      public int getCapacity()
      +
      getCapacity
      +
      +
      Returns:
      +
      capacity
      +
      +
      +
    • +
    • +
      +

      setCapacity

      +
      public void setCapacity​(int capacity)
      +
      setCapacity
      +
      +
      Parameters:
      +
      capacity - set capacity into groups
      +
      +
      +
    • +
    • +
      +

      getRoom

      +
      public java.lang.String getRoom()
      +
      getRoom
      +
      +
      Returns:
      +
      room
      +
      +
      +
    • +
    • +
      +

      setRoom

      +
      public void setRoom​(java.lang.String room)
      +
      setRoom
      +
      +
      Parameters:
      +
      room - set room into groups
      +
      +
      +
    • +
    • +
      +

      getTime

      +
      public int getTime()
      +
      getTime
      +
      +
      Returns:
      +
      time
      +
      +
      +
    • +
    • +
      +

      setTime

      +
      public void setTime​(int time)
      +
      setTime
      +
      +
      Parameters:
      +
      time - set time into groups
      +
      +
      +
    • +
    • +
      +

      getCourseId

      +
      public Course getCourseId()
      +
      getCourseId
      +
      +
      Returns:
      +
      course
      +
      +
      +
    • +
    • +
      +

      setCourseId

      +
      public void setCourseId​(Course courseId)
      +
      setCourseId
      +
      +
      Parameters:
      +
      courseId - set courseId into groups
      +
      +
      +
    • +
    • +
      +

      getTimeString

      +
      public java.lang.String getTimeString()
      +
      getTimeString
      +
      +
      Returns:
      +
      time as formated String
      +
      +
      +
    • +
    • +
      +

      getEndTimeString

      +
      public java.lang.String getEndTimeString()
      +
      gets end time formated strins
      +
      +
      Returns:
      +
      end time as formated String
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Lecturer.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Lecturer.html new file mode 100644 index 0000000..b7c2eda --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/Lecturer.html @@ -0,0 +1,386 @@ + + + + + +Lecturer (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class Lecturer

+
+
+
java.lang.Object +
com.plannaplan.entities.Lecturer
+
+
+
+
@Entity
+public class Lecturer
+extends java.lang.Object
+
Entity of Lecturer grouping of state ssociated about id,title,name,surname
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    Lecturer() 
    Lecturer​(java.lang.String title, +java.lang.String name, +java.lang.String surname) +
    Lecturer
    +
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.lang.StringgetName() +
    getName
    +
    java.lang.StringgetSurname() +
    getSurname
    +
    java.lang.StringgetTitle() +
    getTitle
    +
    voidsetName​(java.lang.String name) +
    setName
    +
    voidsetSurname​(java.lang.String surname) +
    setSurname
    +
    voidsetTitle​(java.lang.String title) +
    setTitle
    +
    java.lang.StringtoString() 
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      Lecturer

      +
      public Lecturer​(java.lang.String title, +java.lang.String name, +java.lang.String surname)
      +
      Lecturer
      +
      +
      Parameters:
      +
      title - title given to the lecturer
      +
      name - name given to the lecturer
      +
      surname - surname given to the lecturer
      +
      +
      +
    • +
    • +
      +

      Lecturer

      +
      public Lecturer()
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getTitle

      +
      public java.lang.String getTitle()
      +
      getTitle
      +
      +
      Returns:
      +
      title
      +
      +
      +
    • +
    • +
      +

      getSurname

      +
      public java.lang.String getSurname()
      +
      getSurname
      +
      +
      Returns:
      +
      surname
      +
      +
      +
    • +
    • +
      +

      setSurname

      +
      public void setSurname​(java.lang.String surname)
      +
      setSurname
      +
      +
      Parameters:
      +
      surname - set surname to the lecturer
      +
      +
      +
    • +
    • +
      +

      getName

      +
      public java.lang.String getName()
      +
      getName
      +
      +
      Returns:
      +
      name
      +
      +
      +
    • +
    • +
      +

      setName

      +
      public void setName​(java.lang.String name)
      +
      setName
      +
      +
      Parameters:
      +
      name - set name to the lecturer
      +
      +
      +
    • +
    • +
      +

      setTitle

      +
      public void setTitle​(java.lang.String title)
      +
      setTitle
      +
      +
      Parameters:
      +
      title - set title to the lecturer
      +
      +
      +
    • +
    • +
      +

      toString

      +
      public java.lang.String toString()
      +
      +
      Overrides:
      +
      toString in class java.lang.Object
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/User.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/User.html new file mode 100644 index 0000000..f234292 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/User.html @@ -0,0 +1,676 @@ + + + + + +User (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class User

+
+
+
java.lang.Object +
com.plannaplan.entities.User
+
+
+
+
@Entity
+public class User
+extends java.lang.Object
+
Entity of User grouping of state ssociated about + id,name,surname,email,role,token,tokenCreatedDate
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    User() 
    User​(java.lang.String name, +java.lang.String surname, +java.lang.String mail, +UserRoles role) 
    User​(java.lang.String name, +java.lang.String surname, +java.lang.String mail, +java.lang.String usosId, +UserRoles role) 
    User​(java.lang.String name, +java.lang.String surname, +java.lang.String mail, +java.lang.String usosId, +UserRoles role, +java.lang.Integer ranking) 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voidclaimGroup​(Groups group) 
    java.lang.StringgetEmail() +
    email getter
    +
    java.lang.LonggetId() +
    id getter
    +
    java.lang.StringgetName() +
    name setter
    +
    java.lang.IntegergetRanking() +
    Ranking points are [100;500].
    +
    java.lang.StringgetRefreshToken() 
    UserRolesgetRole() +
    user rolse getter
    +
    java.util.Set<Groups>getStudentRegisteredGrups() 
    java.lang.StringgetSurname() +
    surname getter
    +
    java.lang.StringgetToken() +
    token getter
    +
    java.sql.TimestampgetTokenUsageDate() +
    token usage getter
    +
    java.lang.StringgetUsosId() +
    usos id getter
    +
    booleanisCredentialsNonExpired() +
    it checks if given ammount of time passed since last token usage.
    +
    voidremoveGroup​(java.lang.Long id) 
    voidsetEmail​(java.lang.String email) +
    email setter
    +
    voidsetName​(java.lang.String name) +
    name stter
    +
    voidsetRanking​(java.lang.Integer ranking) +
    Ranking points setter.
    +
    voidsetRole​(UserRoles role) +
    user role setter
    +
    voidsetSurname​(java.lang.String surname) +
    surname setter
    +
    voidsetToken​(java.lang.String token) +
    token seter.
    +
    voidupdateWithUsosData​(UserApiResponse usosData) +
    updates user entity with data got by UsosApiService::getUserData
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      User

      +
      public User()
      +
      +
    • +
    • +
      +

      User

      +
      public User​(java.lang.String name, +java.lang.String surname, +java.lang.String mail, +UserRoles role)
      +
      +
      Parameters:
      +
      name - name given to the user
      +
      surname - surname given to the user
      +
      mail - mail given to the user
      +
      role - user's role
      +
      +
      +
    • +
    • +
      +

      User

      +
      public User​(java.lang.String name, +java.lang.String surname, +java.lang.String mail, +java.lang.String usosId, +UserRoles role)
      +
      +
      Parameters:
      +
      name - name given to the user
      +
      surname - surname given to the user
      +
      mail - mail given to the user
      +
      usosId - id in the USOS system
      +
      role - user's role
      +
      +
      +
    • +
    • +
      +

      User

      +
      public User​(java.lang.String name, +java.lang.String surname, +java.lang.String mail, +java.lang.String usosId, +UserRoles role, +java.lang.Integer ranking)
      +
      +
      Parameters:
      +
      name - name given to the user
      +
      surname - surname given to the user
      +
      mail - mail given to the user
      +
      usosId - id in the USOS system
      +
      role - user's role
      +
      ranking - ranking points [100;500]. It's calculated by + gradesAvg*100*studiesYear
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getStudentRegisteredGrups

      +
      public java.util.Set<Groups> getStudentRegisteredGrups()
      +
      +
    • +
    • +
      +

      removeGroup

      +
      public void removeGroup​(java.lang.Long id)
      +
      +
    • +
    • +
      +

      claimGroup

      +
      public void claimGroup​(Groups group)
      +
      +
    • +
    • +
      +

      getUsosId

      +
      public java.lang.String getUsosId()
      +
      usos id getter
      +
      +
      Returns:
      +
      usosid
      +
      +
      +
    • +
    • +
      +

      getEmail

      +
      public java.lang.String getEmail()
      +
      email getter
      +
      +
      Returns:
      +
      mailof user
      +
      +
      +
    • +
    • +
      +

      setEmail

      +
      public void setEmail​(java.lang.String email)
      +
      email setter
      +
      +
      Parameters:
      +
      email - user email
      +
      +
      +
    • +
    • +
      +

      getTokenUsageDate

      +
      public java.sql.Timestamp getTokenUsageDate()
      +
      token usage getter
      +
      +
      Returns:
      +
      Timestamp when token was used
      +
      +
      +
    • +
    • +
      +

      getToken

      +
      public java.lang.String getToken()
      +
      token getter
      +
      +
      Returns:
      +
      user token
      +
      +
      +
    • +
    • +
      +

      getRefreshToken

      +
      public java.lang.String getRefreshToken()
      +
      +
      Returns:
      +
      token needed to call refresh token after it expired
      +
      +
      +
    • +
    • +
      +

      setToken

      +
      public void setToken​(java.lang.String token)
      +
      token seter. Sets token and automaticly set time when was set
      +
      +
      Parameters:
      +
      token - token to set
      +
      +
      +
    • +
    • +
      +

      getName

      +
      public java.lang.String getName()
      +
      name setter
      +
      +
      Returns:
      +
      String user name
      +
      +
      +
    • +
    • +
      +

      getRole

      +
      public UserRoles getRole()
      +
      user rolse getter
      +
      +
      Returns:
      +
      UserRoles of user
      +
      +
      +
    • +
    • +
      +

      setRole

      +
      public void setRole​(UserRoles role)
      +
      user role setter
      +
      +
      Parameters:
      +
      role - to be set
      +
      +
      +
    • +
    • +
      +

      getSurname

      +
      public java.lang.String getSurname()
      +
      surname getter
      +
      +
      Returns:
      +
      string surname
      +
      +
      +
    • +
    • +
      +

      setSurname

      +
      public void setSurname​(java.lang.String surname)
      +
      surname setter
      +
      +
      Parameters:
      +
      surname - string to be set as surnames
      +
      +
      +
    • +
    • +
      +

      setName

      +
      public void setName​(java.lang.String name)
      +
      name stter
      +
      +
      Parameters:
      +
      name - stirng to be set as name
      +
      +
      +
    • +
    • +
      +

      getId

      +
      public java.lang.Long getId()
      +
      id getter
      +
      +
      Returns:
      +
      id in database
      +
      +
      +
    • +
    • +
      +

      getRanking

      +
      public java.lang.Integer getRanking()
      +
      Ranking points are [100;500]. It's calculated by gradesAvg*100*studiesYear
      +
      +
      Returns:
      +
      ranking points [100;500]
      +
      +
      +
    • +
    • +
      +

      setRanking

      +
      public void setRanking​(java.lang.Integer ranking)
      +
      Ranking points setter. Ranking points are [100;500]. It's calculated by + gradesAvg*100*studiesYear
      +
      +
      Parameters:
      +
      ranking - ranking points [100;500]
      +
      +
      +
    • +
    • +
      +

      updateWithUsosData

      +
      public void updateWithUsosData​(UserApiResponse usosData)
      +
      updates user entity with data got by UsosApiService::getUserData
      +
      +
      Parameters:
      +
      usosData - UserApiResponse model with needed data
      +
      +
      +
    • +
    • +
      +

      isCredentialsNonExpired

      +
      public boolean isCredentialsNonExpired()
      +
      it checks if given ammount of time passed since last token usage. If not + retunr true and reset time otherwise return false and token won work anymore
      +
      +
      Returns:
      +
      boolena if credentials (token) is expired or not
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/AppConfig.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/AppConfig.html new file mode 100644 index 0000000..c540af1 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/AppConfig.html @@ -0,0 +1,153 @@ + + + + + +Uses of Class com.plannaplan.entities.AppConfig (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.entities.AppConfig

+
+
+
+ + + + + + + + + + + + + + +
Packages that use AppConfig 
PackageDescription
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Assignment.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Assignment.html new file mode 100644 index 0000000..0c9ec26 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Assignment.html @@ -0,0 +1,428 @@ + + + + + +Uses of Class com.plannaplan.entities.Assignment (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.entities.Assignment

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages that use Assignment 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Commision.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Commision.html new file mode 100644 index 0000000..39510f3 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Commision.html @@ -0,0 +1,333 @@ + + + + + +Uses of Class com.plannaplan.entities.Commision (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.entities.Commision

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
Packages that use Commision 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Course.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Course.html new file mode 100644 index 0000000..9510ceb --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Course.html @@ -0,0 +1,400 @@ + + + + + +Uses of Class com.plannaplan.entities.Course (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.entities.Course

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
Packages that use Course 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Exchange.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Exchange.html new file mode 100644 index 0000000..a2df728 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Exchange.html @@ -0,0 +1,348 @@ + + + + + +Uses of Class com.plannaplan.entities.Exchange (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.entities.Exchange

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
Packages that use Exchange 
PackageDescription
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Groups.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Groups.html new file mode 100644 index 0000000..9666f89 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Groups.html @@ -0,0 +1,527 @@ + + + + + +Uses of Class com.plannaplan.entities.Groups (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.entities.Groups

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages that use Groups 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Lecturer.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Lecturer.html new file mode 100644 index 0000000..ce72949 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/Lecturer.html @@ -0,0 +1,391 @@ + + + + + +Uses of Class com.plannaplan.entities.Lecturer (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.entities.Lecturer

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
Packages that use Lecturer 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/User.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/User.html new file mode 100644 index 0000000..07bf205 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/class-use/User.html @@ -0,0 +1,515 @@ + + + + + +Uses of Class com.plannaplan.entities.User (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.entities.User

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages that use User 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-summary.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-summary.html new file mode 100644 index 0000000..888f5d8 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-summary.html @@ -0,0 +1,180 @@ + + + + + +com.plannaplan.entities (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Package com.plannaplan.entities

+
+
+
+ + +
Provides all entieites that are created in database by Hibernate
+
+
Since:
+
1.0
+
+
+
+
    +
  • +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    AppConfig +
    entity that keeps app configurations
    +
    Assignment +
    Entity of Assignment grouping of state associated about group_id and + commision_id
    +
    Commision +
    Entity of Commision grouping of state associated about commison and owner_id
    +
    Course +
    Entity of Course grouping of state of course
    +
    Exchange +
    Entity that keeps user exchange offer.
    +
    Groups +
    Entity of Groups grouping of state ssociated about + course,time,room,capacity,type,day
    +
    Lecturer +
    Entity of Lecturer grouping of state ssociated about id,title,name,surname
    +
    User +
    Entity of User grouping of state ssociated about + id,name,surname,email,role,token,tokenCreatedDate
    +
    +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-tree.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-tree.html new file mode 100644 index 0000000..7810884 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-tree.html @@ -0,0 +1,122 @@ + + + + + +com.plannaplan.entities Class Hierarchy (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.plannaplan.entities

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-use.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-use.html new file mode 100644 index 0000000..6e04528 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/entities/package-use.html @@ -0,0 +1,381 @@ + + + + + +Uses of Package com.plannaplan.entities (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.plannaplan.entities

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages that use com.plannaplan.entities 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.repositories +
Provides jpa repositories interfaces to comunicate with database.
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+
    +
  • +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Classes in com.plannaplan.entities used by com.plannaplan.entities 
    ClassDescription
    Assignment +
    Entity of Assignment grouping of state associated about group_id and + commision_id
    +
    Commision +
    Entity of Commision grouping of state associated about commison and owner_id
    +
    Course +
    Entity of Course grouping of state of course
    +
    Groups +
    Entity of Groups grouping of state ssociated about + course,time,room,capacity,type,day
    +
    Lecturer +
    Entity of Lecturer grouping of state ssociated about id,title,name,surname
    +
    User +
    Entity of User grouping of state ssociated about + id,name,surname,email,role,token,tokenCreatedDate
    +
    +
    +
    +
  • +
  • +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Classes in com.plannaplan.entities used by com.plannaplan.models 
    ClassDescription
    Assignment +
    Entity of Assignment grouping of state associated about group_id and + commision_id
    +
    Exchange +
    Entity that keeps user exchange offer.
    +
    Groups +
    Entity of Groups grouping of state ssociated about + course,time,room,capacity,type,day
    +
    User +
    Entity of User grouping of state ssociated about + id,name,surname,email,role,token,tokenCreatedDate
    +
    +
    +
    +
  • +
  • +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Classes in com.plannaplan.entities used by com.plannaplan.repositories 
    ClassDescription
    Assignment +
    Entity of Assignment grouping of state associated about group_id and + commision_id
    +
    Commision +
    Entity of Commision grouping of state associated about commison and owner_id
    +
    Course +
    Entity of Course grouping of state of course
    +
    Exchange +
    Entity that keeps user exchange offer.
    +
    Groups +
    Entity of Groups grouping of state ssociated about + course,time,room,capacity,type,day
    +
    Lecturer +
    Entity of Lecturer grouping of state ssociated about id,title,name,surname
    +
    User +
    Entity of User grouping of state ssociated about + id,name,surname,email,role,token,tokenCreatedDate
    +
    +
    +
    +
  • +
  • +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Classes in com.plannaplan.entities used by com.plannaplan.services 
    ClassDescription
    AppConfig +
    entity that keeps app configurations
    +
    Assignment +
    Entity of Assignment grouping of state associated about group_id and + commision_id
    +
    Commision +
    Entity of Commision grouping of state associated about commison and owner_id
    +
    Course +
    Entity of Course grouping of state of course
    +
    Exchange +
    Entity that keeps user exchange offer.
    +
    Groups +
    Entity of Groups grouping of state ssociated about + course,time,room,capacity,type,day
    +
    Lecturer +
    Entity of Lecturer grouping of state ssociated about id,title,name,surname
    +
    User +
    Entity of User grouping of state ssociated about + id,name,surname,email,role,token,tokenCreatedDate
    +
    +
    +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/TokenExpiredException.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/TokenExpiredException.html new file mode 100644 index 0000000..b050e9b --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/TokenExpiredException.html @@ -0,0 +1,226 @@ + + + + + +TokenExpiredException (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TokenExpiredException

+
+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.plannaplan.exceptions.TokenExpiredException
+
+
+
+
+
+
+
All Implemented Interfaces:
+
java.io.Serializable
+
+
+
public class TokenExpiredException
+extends java.lang.RuntimeException
+
Excepction to be thrown when provided token is expired
+
+
See Also:
+
Serialized Form
+
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    TokenExpiredException​(java.lang.String message) 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +

    Methods inherited from class java.lang.Throwable

    + + +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/UserNotFoundException.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/UserNotFoundException.html new file mode 100644 index 0000000..d49417f --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/UserNotFoundException.html @@ -0,0 +1,224 @@ + + + + + +UserNotFoundException (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UserNotFoundException

+
+
+
java.lang.Object +
java.lang.Throwable +
java.lang.Exception +
com.plannaplan.exceptions.UserNotFoundException
+
+
+
+
+
+
All Implemented Interfaces:
+
java.io.Serializable
+
+
+
public class UserNotFoundException
+extends java.lang.Exception
+
Exception to be thrown when provided user does not exist in database
+
+
See Also:
+
Serialized Form
+
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    UserNotFoundException​(java.lang.String message) 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +

    Methods inherited from class java.lang.Throwable

    + + +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/class-use/TokenExpiredException.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/class-use/TokenExpiredException.html new file mode 100644 index 0000000..ba858f9 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/class-use/TokenExpiredException.html @@ -0,0 +1,100 @@ + + + + + +Uses of Class com.plannaplan.exceptions.TokenExpiredException (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.exceptions.TokenExpiredException

+
+
No usage of com.plannaplan.exceptions.TokenExpiredException
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/class-use/UserNotFoundException.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/class-use/UserNotFoundException.html new file mode 100644 index 0000000..f541abb --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/class-use/UserNotFoundException.html @@ -0,0 +1,159 @@ + + + + + +Uses of Class com.plannaplan.exceptions.UserNotFoundException (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.exceptions.UserNotFoundException

+
+
+
+ + + + + + + + + + + + + + +
Packages that use UserNotFoundException 
PackageDescription
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-summary.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-summary.html new file mode 100644 index 0000000..acf48cb --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-summary.html @@ -0,0 +1,141 @@ + + + + + +com.plannaplan.exceptions (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Package com.plannaplan.exceptions

+
+
+
+ + +
Provides custom for our app exceptions to get more accutrate errors info
+
+
Since:
+
1.0
+
+
+
+
    +
  • +
    + + + + + + + + + + + + + + + + + + +
    Exception Summary 
    ExceptionDescription
    TokenExpiredException +
    Excepction to be thrown when provided token is expired
    +
    UserNotFoundException +
    Exception to be thrown when provided user does not exist in database
    +
    +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-tree.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-tree.html new file mode 100644 index 0000000..56f5557 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-tree.html @@ -0,0 +1,128 @@ + + + + + +com.plannaplan.exceptions Class Hierarchy (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.plannaplan.exceptions

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Throwable (implements java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-use.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-use.html new file mode 100644 index 0000000..6468b1d --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/exceptions/package-use.html @@ -0,0 +1,150 @@ + + + + + +Uses of Package com.plannaplan.exceptions (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.plannaplan.exceptions

+
+
+
+ + + + + + + + + + + + + + +
Packages that use com.plannaplan.exceptions 
PackageDescription
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/ConfigData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/ConfigData.html new file mode 100644 index 0000000..ccbc675 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/ConfigData.html @@ -0,0 +1,306 @@ + + + + + +ConfigData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ConfigData

+
+
+
java.lang.Object +
com.plannaplan.models.ConfigData
+
+
+
+
public class ConfigData
+extends java.lang.Object
+
Config data copntainer to keep tours dates and stream of dasta to import
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    ConfigData​(TourData firstTour, +TourData secondTour, +java.io.InputStream filestream) +
    constructor
    +
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.io.InputStreamgetFilestream() +
    filestream getter
    +
    TourDatagetFirstTour() +
    first tour getter
    +
    TourDatagetSecondTour() +
    second tour getter
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      ConfigData

      +
      public ConfigData​(TourData firstTour, +TourData secondTour, +java.io.InputStream filestream)
      +
      constructor
      +
      +
      Parameters:
      +
      firstTour - date of first tours
      +
      secondTour - date of second tours
      +
      filestream - filestram with data to import
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getSecondTour

      +
      public TourData getSecondTour()
      +
      second tour getter
      +
      +
      Returns:
      +
      TourData second tour
      +
      +
      +
    • +
    • +
      +

      getFirstTour

      +
      public TourData getFirstTour()
      +
      first tour getter
      +
      +
      Returns:
      +
      TourData first tour
      +
      +
      +
    • +
    • +
      +

      getFilestream

      +
      public java.io.InputStream getFilestream()
      +
      filestream getter
      +
      +
      Returns:
      +
      InputStream with data to import
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/EmailAcceptedData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/EmailAcceptedData.html new file mode 100644 index 0000000..d1c8162 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/EmailAcceptedData.html @@ -0,0 +1,349 @@ + + + + + +EmailAcceptedData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class EmailAcceptedData

+
+
+
java.lang.Object +
com.plannaplan.models.EmailAcceptedData
+
+
+
+
public class EmailAcceptedData
+extends java.lang.Object
+
Instance to keep data to send in mail about accepted courses results
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    EmailAcceptedData() 
    EmailAcceptedData​(java.util.List<Groups> accepted, +java.util.List<Groups> removed) +
    creates instance of class
    +
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.List<Groups>getAccepted() +
    get list of accepted assignments
    +
    java.lang.StringgetEmailMessage() +
    it creates and return email message body
    +
    java.util.List<Groups>getRemoved() +
    get list of removed assignments
    +
    voidsetAccepted​(java.util.List<Groups> accepted) +
    set list of accepted assignments
    +
    voidsetRemoved​(java.util.List<Groups> removed) +
    set list of removed assignments
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      EmailAcceptedData

      +
      public EmailAcceptedData()
      +
      +
    • +
    • +
      +

      EmailAcceptedData

      +
      public EmailAcceptedData​(java.util.List<Groups> accepted, +java.util.List<Groups> removed)
      +
      creates instance of class
      +
      +
      Parameters:
      +
      accepted - list of groups that user joined to
      +
      removed - lsit of groups that user failed to join
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getRemoved

      +
      public java.util.List<Groups> getRemoved()
      +
      get list of removed assignments
      +
      +
      Returns:
      +
      removed assingments
      +
      +
      +
    • +
    • +
      +

      setRemoved

      +
      public void setRemoved​(java.util.List<Groups> removed)
      +
      set list of removed assignments
      +
      +
      Parameters:
      +
      removed - list of removed assignments
      +
      +
      +
    • +
    • +
      +

      getAccepted

      +
      public java.util.List<Groups> getAccepted()
      +
      get list of accepted assignments
      +
      +
      Returns:
      +
      accepted assingments
      +
      +
      +
    • +
    • +
      +

      setAccepted

      +
      public void setAccepted​(java.util.List<Groups> accepted)
      +
      set list of accepted assignments
      +
      +
      Parameters:
      +
      accepted - list of accepted assignments
      +
      +
      +
    • +
    • +
      +

      getEmailMessage

      +
      public java.lang.String getEmailMessage()
      +
      it creates and return email message body
      +
      +
      Returns:
      +
      string with emiale massage
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/EmailExchangesData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/EmailExchangesData.html new file mode 100644 index 0000000..7449b8f --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/EmailExchangesData.html @@ -0,0 +1,279 @@ + + + + + +EmailExchangesData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class EmailExchangesData

+
+
+
java.lang.Object +
com.plannaplan.models.EmailExchangesData
+
+
+
+
public class EmailExchangesData
+extends java.lang.Object
+
Class to keepm data to be send after exchanges being accept
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    EmailExchangesData() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voidaddExchange​(User user, +Exchange data) +
    method to add user and his event to data to be send
    +
    java.util.Set<java.util.Map.Entry<java.lang.Long,​java.util.List<Exchange>>>getDataEntry() +
    get datas entry set
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      addExchange

      +
      public void addExchange​(User user, +Exchange data)
      +
      method to add user and his event to data to be send
      +
      +
      Parameters:
      +
      user - owner of exchange being performed
      +
      data - exchange that was executed
      +
      +
      +
    • +
    • +
      +

      getDataEntry

      +
      public java.util.Set<java.util.Map.Entry<java.lang.Long,​java.util.List<Exchange>>> getDataEntry()
      +
      get datas entry set
      +
      +
      Returns:
      +
      set with entries that contains Long that is user id and list of hiss + performed Exchanges
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/ExportData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/ExportData.html new file mode 100644 index 0000000..811a432 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/ExportData.html @@ -0,0 +1,369 @@ + + + + + +ExportData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ExportData

+
+
+
java.lang.Object +
com.plannaplan.models.ExportData
+
+
+
+
public class ExportData
+extends java.lang.Object
+
Container to keep data to export
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    ExportData​(java.lang.String userId, +java.lang.String zajCyklId, +java.lang.String grNr) 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.lang.StringconvertToCSVRecord() 
    static java.lang.StringgetCSVHeader() 
    java.lang.StringgetGrNr() 
    java.lang.StringgetUserId() 
    java.lang.StringgetZajCyklId() 
    voidsetGrNr​(java.lang.String grNr) 
    voidsetUserId​(java.lang.String userId) 
    voidsetZajCyklId​(java.lang.String zajCyklId) 
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      ExportData

      +
      public ExportData​(java.lang.String userId, +java.lang.String zajCyklId, +java.lang.String grNr)
      +
      +
      Parameters:
      +
      userId - usosid
      +
      zajCyklId - course cycle
      +
      grNr - group number
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getGrNr

      +
      public java.lang.String getGrNr()
      +
      +
      Returns:
      +
      group number
      +
      +
      +
    • +
    • +
      +

      setGrNr

      +
      public void setGrNr​(java.lang.String grNr)
      +
      +
      Parameters:
      +
      grNr - group number
      +
      +
      +
    • +
    • +
      +

      getZajCyklId

      +
      public java.lang.String getZajCyklId()
      +
      +
      Returns:
      +
      course cycle
      +
      +
      +
    • +
    • +
      +

      setZajCyklId

      +
      public void setZajCyklId​(java.lang.String zajCyklId)
      +
      +
      Parameters:
      +
      zajCyklId - course cycle
      +
      +
      +
    • +
    • +
      +

      getUserId

      +
      public java.lang.String getUserId()
      +
      +
      Returns:
      +
      usosid
      +
      +
      +
    • +
    • +
      +

      setUserId

      +
      public void setUserId​(java.lang.String userId)
      +
      +
      Parameters:
      +
      userId - usosid
      +
      +
      +
    • +
    • +
      +

      convertToCSVRecord

      +
      public java.lang.String convertToCSVRecord()
      +
      +
      Returns:
      +
      csv fromated line
      +
      +
      +
    • +
    • +
      +

      getCSVHeader

      +
      public static java.lang.String getCSVHeader()
      +
      +
      Returns:
      +
      csv formated first line
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/FileData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/FileData.html new file mode 100644 index 0000000..dadfb7b --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/FileData.html @@ -0,0 +1,296 @@ + + + + + +FileData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class FileData

+
+
+
java.lang.Object +
com.plannaplan.models.FileData
+
+
+
+
public class FileData
+extends java.lang.Object
+
Wrapper for data readed from file
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    FileData​(java.util.HashMap<java.lang.String,​java.lang.Integer> keys, +java.util.Iterator<org.apache.poi.ss.usermodel.Row> rows) 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    intgetIndexOf​(java.lang.String key) 
    java.util.HashMap<java.lang.String,​java.lang.Integer>getKeys() 
    java.util.Iterator<org.apache.poi.ss.usermodel.Row>getRows() 
    voidsetKeys​(java.util.HashMap<java.lang.String,​java.lang.Integer> keys) 
    voidsetRows​(java.util.Iterator<org.apache.poi.ss.usermodel.Row> rows) 
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      FileData

      +
      public FileData​(java.util.HashMap<java.lang.String,​java.lang.Integer> keys, +java.util.Iterator<org.apache.poi.ss.usermodel.Row> rows)
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getRows

      +
      public java.util.Iterator<org.apache.poi.ss.usermodel.Row> getRows()
      +
      +
    • +
    • +
      +

      setRows

      +
      public void setRows​(java.util.Iterator<org.apache.poi.ss.usermodel.Row> rows)
      +
      +
    • +
    • +
      +

      getKeys

      +
      public java.util.HashMap<java.lang.String,​java.lang.Integer> getKeys()
      +
      +
    • +
    • +
      +

      setKeys

      +
      public void setKeys​(java.util.HashMap<java.lang.String,​java.lang.Integer> keys)
      +
      +
    • +
    • +
      +

      getIndexOf

      +
      public int getIndexOf​(java.lang.String key)
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/MatchData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/MatchData.html new file mode 100644 index 0000000..797931c --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/MatchData.html @@ -0,0 +1,377 @@ + + + + + +MatchData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class MatchData

+
+
+
java.lang.Object +
com.plannaplan.models.MatchData
+
+
+
+
public class MatchData
+extends java.lang.Object
+
Match of users Exchange's to be performed
+
+
+ +
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      MatchData

      +
      public MatchData​(Exchange exchangeOne, +Exchange exchangeTwo)
      +
      create MatchData
      +
      +
      Parameters:
      +
      exchangeOne - first Exchange of found match
      +
      exchangeTwo - second Exchange of found match
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getExchangeOne

      +
      public Exchange getExchangeOne()
      +
      +
      Returns:
      +
      first Exchange
      +
      +
      +
    • +
    • +
      +

      getExchangeTwo

      +
      public Exchange getExchangeTwo()
      +
      +
      Returns:
      +
      second Exchange
      +
      +
      +
    • +
    • +
      +

      getAssignmentTwo

      +
      public Assignment getAssignmentTwo()
      +
      +
      Returns:
      +
      second Exchange's owned assignmetn
      +
      +
      +
    • +
    • +
      +

      getAssignmentOne

      +
      public Assignment getAssignmentOne()
      +
      +
      Returns:
      +
      first Exchange's owned assignmetn
      +
      +
      +
    • +
    • +
      +

      hashCode

      +
      public int hashCode()
      +
      +
      Overrides:
      +
      hashCode in class java.lang.Object
      +
      +
      +
    • +
    • +
      +

      equals

      +
      public boolean equals​(java.lang.Object o)
      +
      +
      Overrides:
      +
      equals in class java.lang.Object
      +
      +
      +
    • +
    • +
      +

      compare

      +
      public int compare​(MatchData m1)
      +
      comparator for MatchData. It compare it by sum of both exchange's times. For + example MatchData with Exchanges 11:00 and 12:00 will be less than with + Exchanges 12:00 and 12:00
      +
      +
      Parameters:
      +
      m1 - MatchData instance to compare to
      +
      Returns:
      +
      int less than 0 if m1 is "less than", 0 if it's equal and more than 0 + otherwise
      +
      +
      +
    • +
    • +
      +

      getExchangesMsValue

      +
      public long getExchangesMsValue()
      +
      +
      Returns:
      +
      sum of both exchanges java.sql.Timestanp::getTime"
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/TourData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/TourData.html new file mode 100644 index 0000000..3b942b6 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/TourData.html @@ -0,0 +1,305 @@ + + + + + +TourData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class TourData

+
+
+
java.lang.Object +
com.plannaplan.models.TourData
+
+
+
+
public class TourData
+extends java.lang.Object
+
Container for Tours dates
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    TourData​(java.sql.Date start, +java.sql.Date end) +
    construcotr for java.sql.Date
    +
    TourData​(java.util.Date start, +java.util.Date end) +
    constructor construcotr for java.util.Date
    +
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.sql.DategetEnd() +
    tour end getter
    +
    java.sql.DategetStart() +
    tour start getter
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    +
      +
    • +
      +

      TourData

      +
      public TourData​(java.sql.Date start, +java.sql.Date end)
      +
      construcotr for java.sql.Date
      +
      +
      Parameters:
      +
      start - Date when tour start
      +
      end - Date when tour end
      +
      +
      +
    • +
    • +
      +

      TourData

      +
      public TourData​(java.util.Date start, +java.util.Date end)
      +
      constructor construcotr for java.util.Date
      +
      +
      Parameters:
      +
      start - Date when tour start
      +
      end - Date when tour end
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getEnd

      +
      public java.sql.Date getEnd()
      +
      tour end getter
      +
      +
      Returns:
      +
      Date end of tour
      +
      +
      +
    • +
    • +
      +

      getStart

      +
      public java.sql.Date getStart()
      +
      tour start getter
      +
      +
      Returns:
      +
      Date beginning of tour
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/UserApiResponse.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/UserApiResponse.html new file mode 100644 index 0000000..727c4a8 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/UserApiResponse.html @@ -0,0 +1,308 @@ + + + + + +UserApiResponse (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UserApiResponse

+
+
+
java.lang.Object +
com.plannaplan.models.UserApiResponse
+
+
+
+
public class UserApiResponse
+extends java.lang.Object
+
Model to keep data from /services/users/user response called in + UsosApiService
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    UserApiResponse() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.lang.StringgetName() 
    java.lang.StringgetSurname() 
    voidsetName​(java.lang.String name) +
    setter for surname.
    +
    voidsetSurname​(java.lang.String surname) +
    setter for name.
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getSurname

      +
      public java.lang.String getSurname()
      +
      +
      Returns:
      +
      user's Surname
      +
      +
      +
    • +
    • +
      +

      setSurname

      +
      public void setSurname​(java.lang.String surname)
      +
      setter for name. Reson to have setters for this class is for case if there + would be name and no surname or otherwise
      +
      +
      Parameters:
      +
      surname - name to set that was obtained by api request
      +
      +
      +
    • +
    • +
      +

      getName

      +
      public java.lang.String getName()
      +
      +
      Returns:
      +
      user's Name
      +
      +
      +
    • +
    • +
      +

      setName

      +
      public void setName​(java.lang.String name)
      +
      setter for surname. Reson to have setters for this class is for case if there + would be name and no surname or otherwise
      +
      +
      Parameters:
      +
      name - name to set that was obtained by api request
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/ConfigData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/ConfigData.html new file mode 100644 index 0000000..21308b0 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/ConfigData.html @@ -0,0 +1,153 @@ + + + + + +Uses of Class com.plannaplan.models.ConfigData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.models.ConfigData

+
+
+
+ + + + + + + + + + + + + + +
Packages that use ConfigData 
PackageDescription
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/EmailAcceptedData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/EmailAcceptedData.html new file mode 100644 index 0000000..e199152 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/EmailAcceptedData.html @@ -0,0 +1,154 @@ + + + + + +Uses of Class com.plannaplan.models.EmailAcceptedData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.models.EmailAcceptedData

+
+
+
+ + + + + + + + + + + + + + +
Packages that use EmailAcceptedData 
PackageDescription
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/EmailExchangesData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/EmailExchangesData.html new file mode 100644 index 0000000..84eac51 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/EmailExchangesData.html @@ -0,0 +1,153 @@ + + + + + +Uses of Class com.plannaplan.models.EmailExchangesData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.models.EmailExchangesData

+
+
+
+ + + + + + + + + + + + + + +
Packages that use EmailExchangesData 
PackageDescription
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/ExportData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/ExportData.html new file mode 100644 index 0000000..e779d52 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/ExportData.html @@ -0,0 +1,151 @@ + + + + + +Uses of Class com.plannaplan.models.ExportData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.models.ExportData

+
+
+
+ + + + + + + + + + + + + + +
Packages that use ExportData 
PackageDescription
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/FileData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/FileData.html new file mode 100644 index 0000000..8dd318e --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/FileData.html @@ -0,0 +1,174 @@ + + + + + +Uses of Class com.plannaplan.models.FileData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.models.FileData

+
+
+
+ + + + + + + + + + + + + + +
Packages that use FileData 
PackageDescription
com.plannaplan.configutils +
Provides the classes necessary to to config and import related operations in + the app
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/MatchData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/MatchData.html new file mode 100644 index 0000000..02f4019 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/MatchData.html @@ -0,0 +1,185 @@ + + + + + +Uses of Class com.plannaplan.models.MatchData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.models.MatchData

+
+
+
+ + + + + + + + + + + + + + + + + + +
Packages that use MatchData 
PackageDescription
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/TourData.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/TourData.html new file mode 100644 index 0000000..746b572 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/TourData.html @@ -0,0 +1,250 @@ + + + + + +Uses of Class com.plannaplan.models.TourData (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.models.TourData

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
Packages that use TourData 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/UserApiResponse.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/UserApiResponse.html new file mode 100644 index 0000000..b984fe6 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/class-use/UserApiResponse.html @@ -0,0 +1,187 @@ + + + + + +Uses of Class com.plannaplan.models.UserApiResponse (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
com.plannaplan.models.UserApiResponse

+
+
+
+ + + + + + + + + + + + + + + + + + +
Packages that use UserApiResponse 
PackageDescription
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-summary.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-summary.html new file mode 100644 index 0000000..7752501 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-summary.html @@ -0,0 +1,178 @@ + + + + + +com.plannaplan.models (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Package com.plannaplan.models

+
+
+
+ + +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
+
Since:
+
1.0
+
+
+
+
    +
  • +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Class Summary 
    ClassDescription
    ConfigData +
    Config data copntainer to keep tours dates and stream of dasta to import
    +
    EmailAcceptedData +
    Instance to keep data to send in mail about accepted courses results
    +
    EmailExchangesData +
    Class to keepm data to be send after exchanges being accept
    +
    ExportData +
    Container to keep data to export
    +
    FileData +
    Wrapper for data readed from file
    +
    MatchData +
    Match of users Exchange's to be performed
    +
    TourData +
    Container for Tours dates
    +
    UserApiResponse +
    Model to keep data from /services/users/user response called in + UsosApiService
    +
    +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-tree.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-tree.html new file mode 100644 index 0000000..fe52dee --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-tree.html @@ -0,0 +1,122 @@ + + + + + +com.plannaplan.models Class Hierarchy (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.plannaplan.models

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-use.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-use.html new file mode 100644 index 0000000..e2716ec --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/models/package-use.html @@ -0,0 +1,294 @@ + + + + + +Uses of Package com.plannaplan.models (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.plannaplan.models

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages that use com.plannaplan.models 
PackageDescription
com.plannaplan.configutils +
Provides the classes necessary to to config and import related operations in + the app
+
com.plannaplan.entities +
Provides all entieites that are created in database by Hibernate
+
com.plannaplan.models +
Provides readonly (mostly) classes to keep data for diffrent pourposes
+
com.plannaplan.services +
Provides service classes to make operations with entities or comunicate with + external systems.
+
+
+
+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/AppConfigRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/AppConfigRepository.html new file mode 100644 index 0000000..64bb3f8 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/AppConfigRepository.html @@ -0,0 +1,178 @@ + + + + + +AppConfigRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface AppConfigRepository

+
+
+
+
+
All Superinterfaces:
+
org.springframework.data.repository.CrudRepository<AppConfig,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<AppConfig,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<AppConfig,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<AppConfig>, org.springframework.data.repository.Repository<AppConfig,​java.lang.Long>
+
+
+
public interface AppConfigRepository
+extends org.springframework.data.jpa.repository.JpaRepository<AppConfig,​java.lang.Long>
+
Repository for app config
+
+
+
    + +
  • +
    + + +

    Method Summary

    +
    +

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    + + +count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
    +
    +

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    + + +deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
    +
    +

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    + + +findAll
    +
    +

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    + + +count, exists, findAll, findOne
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/AssignmentRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/AssignmentRepository.html new file mode 100644 index 0000000..fc4a959 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/AssignmentRepository.html @@ -0,0 +1,232 @@ + + + + + +AssignmentRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface AssignmentRepository

+
+
+
+
+
All Superinterfaces:
+
org.springframework.data.repository.CrudRepository<Assignment,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Assignment,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Assignment,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Assignment>, org.springframework.data.repository.Repository<Assignment,​java.lang.Long>
+
+
+
@Repository
+public interface AssignmentRepository
+extends org.springframework.data.jpa.repository.JpaRepository<Assignment,​java.lang.Long>
+
AssignmentRepository.getByCommision: + Return list of: + SELECT * FROM Assignment WHERE commision_id = i . + + Where i, ?1 are equale to variables.
+
+
+
    + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.List<Assignment>getByCommision​(java.lang.Long id) 
    +
    +
    +
    +

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    + + +count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
    +
    +

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    + + +deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
    +
    +

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    + + +findAll
    +
    +

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    + + +count, exists, findAll, findOne
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getByCommision

      +
      @Query("FROM Assignment WHERE commision_id = ?1") +java.util.List<Assignment> getByCommision​(@Param("commision_id") +java.lang.Long id)
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/CommisionRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/CommisionRepository.html new file mode 100644 index 0000000..1a217d9 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/CommisionRepository.html @@ -0,0 +1,266 @@ + + + + + +CommisionRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface CommisionRepository

+
+
+
+
+
All Superinterfaces:
+
org.springframework.data.repository.CrudRepository<Commision,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Commision,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Commision,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Commision>, org.springframework.data.repository.Repository<Commision,​java.lang.Long>
+
+
+
@Repository
+public interface CommisionRepository
+extends org.springframework.data.jpa.repository.JpaRepository<Commision,​java.lang.Long>
+
CommisionRepository.getUsers: Return list of: SELECT * FROM Commision WHERE + owner_id = i . + + Where i, ?1 are equale to variables. + + CommisionRepository.getNewestCommision Return list of: SELECT * FROM + Commision WHERE owner_id = i Order by commisionDate desc. + + Where i, ?1 are equale to variables.
+
+
+
    + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.List<Commision>getNewestCommision​(java.lang.Long id) 
    java.util.List<Commision>getUsers​(java.lang.Long id) 
    java.lang.Object[]getUsersAssigned() 
    +
    +
    +
    +

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    + + +count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
    +
    +

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    + + +deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
    +
    +

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    + + +findAll
    +
    +

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    + + +count, exists, findAll, findOne
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getUsers

      +
      @Query("FROM Commision WHERE owner_id = ?1") +java.util.List<Commision> getUsers​(@Param("owner_id") +java.lang.Long id)
      +
      +
    • +
    • +
      +

      getNewestCommision

      +
      @Query("FROM Commision WHERE owner_id = ?1 order by commisionDate desc") +java.util.List<Commision> getNewestCommision​(@Param("owner_id") +java.lang.Long id)
      +
      +
    • +
    • +
      +

      getUsersAssigned

      +
      @Query("SELECT COUNT(DISTINCT owner_id) AS count FROM Commision") +java.lang.Object[] getUsersAssigned()
      +
      +
      Returns:
      +
      ammount of uniqe users that have a commision placed on first array + element
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/CourseRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/CourseRepository.html new file mode 100644 index 0000000..c9b0d75 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/CourseRepository.html @@ -0,0 +1,232 @@ + + + + + +CourseRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface CourseRepository

+
+
+
+
+
All Superinterfaces:
+
org.springframework.data.repository.CrudRepository<Course,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Course,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Course,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Course>, org.springframework.data.repository.Repository<Course,​java.lang.Long>
+
+
+
@Repository
+public interface CourseRepository
+extends org.springframework.data.jpa.repository.JpaRepository<Course,​java.lang.Long>
+
CourseRepository.findByName: + Return list of: + SELECT * FROM Course WHERE name = i . + + Where i, ?1 are equale to variables.
+
+
+
    + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.Optional<Course>findByName​(java.lang.String name) 
    +
    +
    +
    +

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    + + +count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
    +
    +

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    + + +deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
    +
    +

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    + + +findAll
    +
    +

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    + + +count, exists, findAll, findOne
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      findByName

      +
      @Query("FROM Course WHERE name = ?1") +java.util.Optional<Course> findByName​(@Param("name") +java.lang.String name)
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/ExchangeRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/ExchangeRepository.html new file mode 100644 index 0000000..ec6ef3e --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/ExchangeRepository.html @@ -0,0 +1,255 @@ + + + + + +ExchangeRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface ExchangeRepository

+
+
+
+
+
All Superinterfaces:
+
org.springframework.data.repository.CrudRepository<Exchange,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Exchange,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Exchange,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Exchange>, org.springframework.data.repository.Repository<Exchange,​java.lang.Long>
+
+
+
@Repository
+public interface ExchangeRepository
+extends org.springframework.data.jpa.repository.JpaRepository<Exchange,​java.lang.Long>
+
+
+
    + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.Optional<Exchange>checkForExchange​(Assignment assignment, +Groups group) 
    java.util.List<Exchange>getByUserId​(java.lang.Long id) 
    java.util.List<java.lang.Object[]>getMatches() 
    +
    +
    +
    +

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    + + +count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
    +
    +

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    + + +deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
    +
    +

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    + + +findAll
    +
    +

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    + + +count, exists, findAll, findOne
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      checkForExchange

      +
      @Query("FROM Exchange WHERE owned_id = ?1 AND desired_id = ?2") +java.util.Optional<Exchange> checkForExchange​(@Param("owned_id") +Assignment assignment, +@Param("desired_id") +Groups group)
      +
      +
    • +
    • +
      +

      getByUserId

      +
      @Query("FROM Exchange WHERE ownerId = ?1") +java.util.List<Exchange> getByUserId​(@Param("id") +java.lang.Long id)
      +
      +
    • +
    • +
      +

      getMatches

      +
      @Query("Select e1,e2 FROM Exchange e1, Exchange e2 WHERE e1.ownedAssignment.group.id = e2.desiredAssignment.id") +java.util.List<java.lang.Object[]> getMatches()
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/GroupRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/GroupRepository.html new file mode 100644 index 0000000..0fa795a --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/GroupRepository.html @@ -0,0 +1,310 @@ + + + + + +GroupRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface GroupRepository

+
+
+
+
+
All Superinterfaces:
+
org.springframework.data.repository.CrudRepository<Groups,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Groups,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Groups,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Groups>, org.springframework.data.repository.Repository<Groups,​java.lang.Long>
+
+
+
@Repository
+public interface GroupRepository
+extends org.springframework.data.jpa.repository.JpaRepository<Groups,​java.lang.Long>
+
GroupRepository.find: + Return list of: + SELECT * FROM Groups WHERE time = i AND room = j AND capacity = k . + + Where i, j, k, ?1, ?2, ?3 are equale to variables. + + GroupRepository.getByCourse: + Return list of: + SELECT * FROM Groups WHERE course_id = i . + + Where i, ?1 are equale to variables.
+
+
+
    + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.Optional<Groups>find​(int time, +java.lang.String room, +int capacity) 
    java.util.Optional<Groups>find​(java.lang.Integer zaj_cyk_id, +java.lang.Integer gr_nr) 
    java.util.Optional<java.lang.Number>getAssignedAmount​(java.lang.Long groupId) 
    java.util.List<java.lang.Object[]>getAssignedAmounts​(java.util.List<java.lang.Long> groupIds) +
    PLAIN SQL QUERY: SELECT group_id, COUNT(*) assinged_times FROM assignment + WHERE is_past_assignment=0 GROUP BY group_id HAVING group_id IN (:ids)")
    +
    java.util.List<Groups>getByCourse​(java.lang.Long id) 
    +
    +
    +
    +

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    + + +count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
    +
    +

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    + + +deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
    +
    +

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    + + +findAll
    +
    +

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    + + +count, exists, findAll, findOne
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      find

      +
      @Query("FROM Groups WHERE time = ?1 AND room = ?2 AND capacity = ?3") +java.util.Optional<Groups> find​(@Param("time") +int time, +@Param("room") +java.lang.String room, +@Param("capacity") +int capacity)
      +
      +
    • +
    • +
      +

      find

      +
      @Query("FROM Groups WHERE zajCykId = ?1 AND grNr = ?2") +java.util.Optional<Groups> find​(@Param("zajCykId") +java.lang.Integer zaj_cyk_id, +@Param("grNr") +java.lang.Integer gr_nr)
      +
      +
    • +
    • +
      +

      getByCourse

      +
      @Query("FROM Groups WHERE course_id = ?1") +java.util.List<Groups> getByCourse​(@Param("id") +java.lang.Long id)
      +
      +
    • +
    • +
      +

      getAssignedAmount

      +
      @Query("SELECT COUNT(*) AS assinged_times FROM Assignment WHERE isPastAssignment=false GROUP BY group HAVING group_id=?1") +java.util.Optional<java.lang.Number> getAssignedAmount​(java.lang.Long groupId)
      +
      +
    • +
    • +
      +

      getAssignedAmounts

      +
      @Query("SELECT group, COUNT(*) AS assinged_times FROM Assignment a WHERE a.isPastAssignment=false GROUP BY a.group HAVING group_id IN (:ids)") +java.util.List<java.lang.Object[]> getAssignedAmounts​(@Param("ids") +java.util.List<java.lang.Long> groupIds)
      +
      PLAIN SQL QUERY: SELECT group_id, COUNT(*) assinged_times FROM assignment + WHERE is_past_assignment=0 GROUP BY group_id HAVING group_id IN (:ids)")
      +
      +
      Parameters:
      +
      groupIds - list of groups ids
      +
      Returns:
      +
      list of objects arrays where first object is Groups instance and + second is Long that is taken places value
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/LecturerRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/LecturerRepository.html new file mode 100644 index 0000000..fe7fb27 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/LecturerRepository.html @@ -0,0 +1,238 @@ + + + + + +LecturerRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface LecturerRepository

+
+
+
+
+
All Superinterfaces:
+
org.springframework.data.repository.CrudRepository<Lecturer,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Lecturer,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Lecturer,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Lecturer>, org.springframework.data.repository.Repository<Lecturer,​java.lang.Long>
+
+
+
@Repository
+public interface LecturerRepository
+extends org.springframework.data.jpa.repository.JpaRepository<Lecturer,​java.lang.Long>
+
LecturerRepository.find: + Return list of: + SELECT * FROM Lecturer WHERE title = i AND name = j AND surname = k. + + Where i, j, k, ?1, ?2, ?3 are equale to variables.
+
+
+
    + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.Optional<Lecturer>find​(java.lang.String title, +java.lang.String name, +java.lang.String surname) 
    +
    +
    +
    +

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    + + +count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
    +
    +

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    + + +deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
    +
    +

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    + + +findAll
    +
    +

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    + + +count, exists, findAll, findOne
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      find

      +
      @Query("FROM Lecturer WHERE title = ?1 AND name = ?2 AND surname = ?3") +java.util.Optional<Lecturer> find​(@Param("title") +java.lang.String title, +@Param("name") +java.lang.String name, +@Param("surname") +java.lang.String surname)
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/UserRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/UserRepository.html new file mode 100644 index 0000000..acf71b7 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/UserRepository.html @@ -0,0 +1,359 @@ + + + + + +UserRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Interface UserRepository

+
+
+
+
+
All Superinterfaces:
+
org.springframework.data.repository.CrudRepository<User,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<User,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<User,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<User>, org.springframework.data.repository.Repository<User,​java.lang.Long>
+
+
+
@Repository
+public interface UserRepository
+extends org.springframework.data.jpa.repository.JpaRepository<User,​java.lang.Long>
+
UserRepository.getByAuthority: Return list of: SELECT * FROM User WHERE email + = i. + + Where i, ?1 are equale to variables. + + UserRepository.getByToken: Return list of: SELECT * FROM User WHERE token = + i. + + Where i, ?1 are equale to variables. + + UserRepository.searchForUsers: Return list of: SELECT * FROM User WHERE (name + LIKE %?1% OR surname LIKE %?1%). + + Where i, ?1 are equale to variables. + + UserRepository.searchForUsers with role: Return list of: SELECT * FROM User + WHERE (name LIKE %?1% OR surname LIKE %?1%) AND role=?2"). + + Where i, ?1 are equale to variables.
+
+
+
    + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    java.util.List<User>getAllByRole​(UserRoles role) 
    java.util.Optional<User>getByAuthority​(java.lang.String authority) +
    return user by given authority
    +
    java.util.Optional<User>getByEmail​(java.lang.String authority) 
    java.util.Optional<User>getByRefreshToken​(java.lang.String refreshToken) 
    java.util.Optional<User>getByToken​(java.lang.String token) 
    java.util.Optional<User>getByUsosId​(java.lang.String usosId) 
    java.util.List<User>searchForUsers​(java.lang.String query) 
    java.util.List<User>searchForUsers​(java.lang.String query, +UserRoles role) +
    search for user with given query
    +
    +
    +
    +
    +

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    + + +count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
    +
    +

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    + + +deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
    +
    +

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    + + +findAll
    +
    +

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    + + +count, exists, findAll, findOne
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getByAuthority

      +
      @Query("FROM User WHERE email = ?1 OR usosId = ?1") +java.util.Optional<User> getByAuthority​(@Param("authority") +java.lang.String authority)
      +
      return user by given authority
      +
      +
      Parameters:
      +
      authority - user usosId or email
      +
      Returns:
      +
      optional with user if found
      +
      +
      +
    • +
    • +
      +

      getByEmail

      +
      @Query("FROM User WHERE email = ?1") +java.util.Optional<User> getByEmail​(@Param("authority") +java.lang.String authority)
      +
      +
    • +
    • +
      +

      getByRefreshToken

      +
      @Query("FROM User WHERE refreshToken = ?1") +java.util.Optional<User> getByRefreshToken​(@Param("refreshToken") +java.lang.String refreshToken)
      +
      +
    • +
    • +
      +

      getByToken

      +
      @Query("FROM User WHERE token = ?1") +java.util.Optional<User> getByToken​(@Param("token") +java.lang.String token)
      +
      +
    • +
    • +
      +

      searchForUsers

      +
      @Query("FROM User WHERE (name LIKE %?1% OR surname LIKE %?1%)") +java.util.List<User> searchForUsers​(@Param("query") +java.lang.String query)
      +
      +
    • +
    • +
      +

      searchForUsers

      +
      @Query("FROM User WHERE (name LIKE %?1% OR surname LIKE %?1%) AND role=?2") +java.util.List<User> searchForUsers​(@Param("query") +java.lang.String query, +@Param("role") +UserRoles role)
      +
      search for user with given query
      +
      +
      Parameters:
      +
      query - string that will be matched to users name and surname
      +
      role - limits results by role
      +
      Returns:
      +
      list opf results
      +
      +
      +
    • +
    • +
      +

      getAllByRole

      +
      @Query("FROM User WHERE role=?1") +java.util.List<User> getAllByRole​(@Param("role") +UserRoles role)
      +
      +
    • +
    • +
      +

      getByUsosId

      +
      @Query("FROM User WHERE usosId = ?1") +java.util.Optional<User> getByUsosId​(@Param("usosId") +java.lang.String usosId)
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/AppConfigRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/AppConfigRepository.html new file mode 100644 index 0000000..d8e87a5 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/AppConfigRepository.html @@ -0,0 +1,100 @@ + + + + + +Uses of Interface com.plannaplan.repositories.AppConfigRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.plannaplan.repositories.AppConfigRepository

+
+
No usage of com.plannaplan.repositories.AppConfigRepository
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/AssignmentRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/AssignmentRepository.html new file mode 100644 index 0000000..c041af2 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/AssignmentRepository.html @@ -0,0 +1,100 @@ + + + + + +Uses of Interface com.plannaplan.repositories.AssignmentRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.plannaplan.repositories.AssignmentRepository

+
+
No usage of com.plannaplan.repositories.AssignmentRepository
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/CommisionRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/CommisionRepository.html new file mode 100644 index 0000000..6a955b7 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/CommisionRepository.html @@ -0,0 +1,100 @@ + + + + + +Uses of Interface com.plannaplan.repositories.CommisionRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.plannaplan.repositories.CommisionRepository

+
+
No usage of com.plannaplan.repositories.CommisionRepository
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/CourseRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/CourseRepository.html new file mode 100644 index 0000000..778d80e --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/CourseRepository.html @@ -0,0 +1,100 @@ + + + + + +Uses of Interface com.plannaplan.repositories.CourseRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.plannaplan.repositories.CourseRepository

+
+
No usage of com.plannaplan.repositories.CourseRepository
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/ExchangeRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/ExchangeRepository.html new file mode 100644 index 0000000..0208529 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/ExchangeRepository.html @@ -0,0 +1,100 @@ + + + + + +Uses of Interface com.plannaplan.repositories.ExchangeRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.plannaplan.repositories.ExchangeRepository

+
+
No usage of com.plannaplan.repositories.ExchangeRepository
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/GroupRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/GroupRepository.html new file mode 100644 index 0000000..2704f6e --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/GroupRepository.html @@ -0,0 +1,100 @@ + + + + + +Uses of Interface com.plannaplan.repositories.GroupRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.plannaplan.repositories.GroupRepository

+
+
No usage of com.plannaplan.repositories.GroupRepository
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/LecturerRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/LecturerRepository.html new file mode 100644 index 0000000..ea2629b --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/LecturerRepository.html @@ -0,0 +1,100 @@ + + + + + +Uses of Interface com.plannaplan.repositories.LecturerRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.plannaplan.repositories.LecturerRepository

+
+
No usage of com.plannaplan.repositories.LecturerRepository
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/UserRepository.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/UserRepository.html new file mode 100644 index 0000000..ededd52 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/class-use/UserRepository.html @@ -0,0 +1,100 @@ + + + + + +Uses of Interface com.plannaplan.repositories.UserRepository (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
com.plannaplan.repositories.UserRepository

+
+
No usage of com.plannaplan.repositories.UserRepository
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-summary.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-summary.html new file mode 100644 index 0000000..324e03a --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-summary.html @@ -0,0 +1,186 @@ + + + + + +com.plannaplan.repositories (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Package com.plannaplan.repositories

+
+
+
+ + +
Provides jpa repositories interfaces to comunicate with database. These are + used exclusively in services
+
+
Since:
+
1.0
+
+
+
+
    +
  • +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Interface Summary 
    InterfaceDescription
    AppConfigRepository +
    Repository for app config
    +
    AssignmentRepository +
    AssignmentRepository.getByCommision: + Return list of: + SELECT * FROM Assignment WHERE commision_id = i .
    +
    CommisionRepository +
    CommisionRepository.getUsers: Return list of: SELECT * FROM Commision WHERE + owner_id = i .
    +
    CourseRepository +
    CourseRepository.findByName: + Return list of: + SELECT * FROM Course WHERE name = i .
    +
    ExchangeRepository 
    GroupRepository +
    GroupRepository.find: + Return list of: + SELECT * FROM Groups WHERE time = i AND room = j AND capacity = k .
    +
    LecturerRepository +
    LecturerRepository.find: + Return list of: + SELECT * FROM Lecturer WHERE title = i AND name = j AND surname = k.
    +
    UserRepository +
    UserRepository.getByAuthority: Return list of: SELECT * FROM User WHERE email + = i.
    +
    +
    +
  • +
+
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-tree.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-tree.html new file mode 100644 index 0000000..8a40109 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-tree.html @@ -0,0 +1,150 @@ + + + + + +com.plannaplan.repositories Class Hierarchy (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package com.plannaplan.repositories

+Package Hierarchies: + +
+
+
+

Interface Hierarchy

+ +
+
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-use.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-use.html new file mode 100644 index 0000000..039e0fc --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/repositories/package-use.html @@ -0,0 +1,100 @@ + + + + + +Uses of Package com.plannaplan.repositories (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
com.plannaplan.repositories

+
+
No usage of com.plannaplan.repositories
+
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/AssignmentService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/AssignmentService.html new file mode 100644 index 0000000..c8d62d4 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/AssignmentService.html @@ -0,0 +1,352 @@ + + + + + +AssignmentService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class AssignmentService

+
+
+
java.lang.Object +
com.plannaplan.services.AssignmentService
+
+
+
+
@Service
+public class AssignmentService
+extends java.lang.Object
+
Service of Assignment which can save assignments, diplay assignments, get + ammount of assigments.
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    AssignmentService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voidcallAcceptAlgorythm() +
    this method will activate accept algorythm for all students.
    +
    longgetAssignmentsAmmount() +
    get ammount of all assignments (not only for selected commision)
    +
    java.util.Optional<Assignment>getById​(java.lang.Long id) +
    Get assigmnent by id
    +
    java.util.List<Assignment>getCommisionAssignments​(Commision com) +
    gets list of assignments of given commision
    +
    Assignmentsave​(Assignment assignment) +
    Save given assignment
    +
    java.util.List<Assignment>saveAll​(java.util.List<Assignment> toSave) 
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      save

      +
      public Assignment save​(Assignment assignment)
      +
      Save given assignment
      +
      +
      Parameters:
      +
      assignment - assignment to save
      +
      Returns:
      +
      assignment saved assignment with database id
      +
      +
      +
    • +
    • +
      +

      getCommisionAssignments

      +
      public java.util.List<Assignment> getCommisionAssignments​(Commision com)
      +
      gets list of assignments of given commision
      +
      +
      Parameters:
      +
      com - Commision to get assinments from
      +
      Returns:
      +
      list of assignments
      +
      +
      +
    • +
    • +
      +

      getAssignmentsAmmount

      +
      public long getAssignmentsAmmount()
      +
      get ammount of all assignments (not only for selected commision)
      +
      +
      Returns:
      +
      long - ammount of assingments
      +
      +
      +
    • +
    • +
      +

      getById

      +
      public java.util.Optional<Assignment> getById​(java.lang.Long id)
      +
      Get assigmnent by id
      +
      +
      Parameters:
      +
      id - id of assigmnent
      +
      Returns:
      +
      Optional of assignment
      +
      +
      +
    • +
    • +
      +

      callAcceptAlgorythm

      +
      public void callAcceptAlgorythm()
      +
      this method will activate accept algorythm for all students. Algorythm is + takeing each student in order defined by ranking and accept for him groups + that are joinable for him
      +
      +
    • +
    • +
      +

      saveAll

      +
      public java.util.List<Assignment> saveAll​(java.util.List<Assignment> toSave)
      +
      +
      Parameters:
      +
      toSave - list of entites to save to db
      +
      Returns:
      +
      list of assignments entities with ids from db
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/CommisionService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/CommisionService.html new file mode 100644 index 0000000..7041935 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/CommisionService.html @@ -0,0 +1,336 @@ + + + + + +CommisionService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CommisionService

+
+
+
java.lang.Object +
com.plannaplan.services.CommisionService
+
+
+
+
@Service
+public class CommisionService
+extends java.lang.Object
+
Service of CommisionService which can save commision, get user's commisions, + get newest user's commision, get ammount of commisions.
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    CommisionService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    longgetCommisionsAmmount() +
    get ammpounts of commisions
    +
    java.util.List<ExportData>getExportData() 
    java.util.Optional<Commision>getNewestCommision​(User user) +
    get newest commision ov given user
    +
    java.util.List<Commision>getUsersCommisions​(User user) +
    gets user commisions
    +
    Commisionsave​(Commision commision) +
    save to database commision.
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      save

      +
      public Commision save​(Commision commision)
      +
      save to database commision. It also checks for missing assignments from + previous commision (you can not get rid of accepted assignment)
      +
      +
      Parameters:
      +
      commision - to save to db
      +
      Returns:
      +
      Commision instance with id from database
      +
      +
      +
    • +
    • +
      +

      getUsersCommisions

      +
      public java.util.List<Commision> getUsersCommisions​(User user)
      +
      gets user commisions
      +
      +
      Parameters:
      +
      user - owner of commisions
      +
      Returns:
      +
      list of user commisions
      +
      +
      +
    • +
    • +
      +

      getNewestCommision

      +
      public java.util.Optional<Commision> getNewestCommision​(User user)
      +
      get newest commision ov given user
      +
      +
      Parameters:
      +
      user - owener of commision we attemp to get
      +
      Returns:
      +
      optional if commition was found
      +
      +
      +
    • +
    • +
      +

      getCommisionsAmmount

      +
      public long getCommisionsAmmount()
      +
      get ammpounts of commisions
      +
      +
      Returns:
      +
      long - ammounts of commisions (all even from history, not only + cutrrent one)
      +
      +
      +
    • +
    • +
      +

      getExportData

      +
      public java.util.List<ExportData> getExportData()
      +
      +
      Returns:
      +
      list of ExportData inmstancces keeping data to exprt to file
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/ConfiguratorService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/ConfiguratorService.html new file mode 100644 index 0000000..bf15ba4 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/ConfiguratorService.html @@ -0,0 +1,315 @@ + + + + + +ConfiguratorService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ConfiguratorService

+
+
+
java.lang.Object +
com.plannaplan.services.ConfiguratorService
+
+
+
+
@Component
+public class ConfiguratorService
+extends java.lang.Object
+
FileReader is used for reading xls file from input stream.
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    ConfiguratorService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voidconfig​(ConfigData data) +
    methoid to config system.
    +
    AppConfiggetCurrentConfig() +
    current config getter
    +
    voidimportCoursesStream​(java.io.InputStream inputStream) 
    voidsaveTours​(TourData firstTour, +TourData secondTour) +
    Save tours to DataBase and shedule PerformAcceptAlgorythmTask as a side + effect
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      config

      +
      public void config​(ConfigData data)
      +
      methoid to config system. it shedules PerformAcceptAlgorythmTask as a side + effect
      +
      +
      Parameters:
      +
      data - ConfigData containng system configs
      +
      +
      +
    • +
    • +
      +

      saveTours

      +
      public void saveTours​(TourData firstTour, +TourData secondTour)
      +
      Save tours to DataBase and shedule PerformAcceptAlgorythmTask as a side + effect
      +
      +
      Parameters:
      +
      firstTour - First tour period.
      +
      secondTour - Second tour period.
      +
      +
      +
    • +
    • +
      +

      getCurrentConfig

      +
      public AppConfig getCurrentConfig()
      +
      current config getter
      +
      +
      Returns:
      +
      AppConfig with newest config_date
      +
      +
      +
    • +
    • +
      +

      importCoursesStream

      +
      public void importCoursesStream​(java.io.InputStream inputStream)
      +
      +
      Parameters:
      +
      inputStream - This input stream contains new courses to import.
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/CourseService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/CourseService.html new file mode 100644 index 0000000..7cb2315 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/CourseService.html @@ -0,0 +1,329 @@ + + + + + +CourseService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class CourseService

+
+
+
java.lang.Object +
com.plannaplan.services.CourseService
+
+
+
+
@Service
+public class CourseService
+extends java.lang.Object
+
Service of CourseService which can get(Course By Name, All Courses, Courses + Ammount ), save, delete course.
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    CourseService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voiddelete​(Course course) +
    delete course from db
    +
    java.util.List<Course>getAllCourses() 
    java.util.Optional<Course>getCourseByName​(java.lang.String name) +
    getCourseByName
    +
    intgetCoursesAmmount() 
    Coursesave​(Course course) +
    save to db
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getCourseByName

      +
      public java.util.Optional<Course> getCourseByName​(java.lang.String name)
      +
      getCourseByName
      +
      +
      Parameters:
      +
      name - name of course to be found
      +
      Returns:
      +
      Course By Name
      +
      +
      +
    • +
    • +
      +

      getAllCourses

      +
      public java.util.List<Course> getAllCourses()
      +
      +
      Returns:
      +
      all courses from db
      +
      +
      +
    • +
    • +
      +

      save

      +
      public Course save​(Course course)
      +
      save to db
      +
      +
      Parameters:
      +
      course - which course you would like to save
      +
      Returns:
      +
      Course instance with id from db
      +
      +
      +
    • +
    • +
      +

      delete

      +
      public void delete​(Course course)
      +
      delete course from db
      +
      +
      Parameters:
      +
      course - which course you would like to delete
      +
      +
      +
    • +
    • +
      +

      getCoursesAmmount

      +
      public int getCoursesAmmount()
      +
      +
      Returns:
      +
      ammount of courses in db
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/EmailService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/EmailService.html new file mode 100644 index 0000000..cf5b662 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/EmailService.html @@ -0,0 +1,302 @@ + + + + + +EmailService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class EmailService

+
+
+
java.lang.Object +
com.plannaplan.services.EmailService
+
+
+
+
@Service
+public class EmailService
+extends java.lang.Object
+
Service to send emails
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    EmailService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voidsendAcceptationResult​(User user, +EmailAcceptedData data) +
    sends email with infromation about accepted groups
    +
    voidsendExchangesResults​(EmailExchangesData data) +
    method to send email for students whose groups were swaped
    +
    voidsendMail​(java.lang.String destination, +java.lang.String message) +
    send simple text email
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      sendMail

      +
      public void sendMail​(java.lang.String destination, +java.lang.String message)
      +
      send simple text email
      +
      +
      Parameters:
      +
      destination - destitnaion mail
      +
      message - text to be send
      +
      +
      +
    • +
    • +
      +

      sendAcceptationResult

      +
      public void sendAcceptationResult​(User user, +EmailAcceptedData data)
      +
      sends email with infromation about accepted groups
      +
      +
      Parameters:
      +
      user - user to send a mail
      +
      data - EmailAcceptedData instance containing informations about accepted + and removed groups
      +
      +
      +
    • +
    • +
      +

      sendExchangesResults

      +
      public void sendExchangesResults​(EmailExchangesData data)
      +
      method to send email for students whose groups were swaped
      +
      +
      Parameters:
      +
      data - EmailExchangesData instance that contains pair of datas user and + list of performed exhanges
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/EventService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/EventService.html new file mode 100644 index 0000000..205920f --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/EventService.html @@ -0,0 +1,371 @@ + + + + + +EventService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class EventService

+
+
+
java.lang.Object +
com.plannaplan.services.EventService
+
+
+
+
@Service
+public class EventService
+extends java.lang.Object
+
Service to manage app events
+
+
+
    + +
  • +
    + + +

    Field Summary

    +
    + + + + + + + + + + + + + + + + + + + + + +
    Fields 
    Modifier and TypeFieldDescription
    static intFIRST_TOUR_SCHEDULE 
    static intSECOND_TOUR_SCHEDULE 
    +
    +
    +
  • + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    EventService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voidcollectGroupLosses() 
    voidinitialize() +
    init resources needed for dynamicly creating new tasks (needed to set tours + end events)
    +
    voidperformExchangeService() +
    perfroms checks for matching exchanges daily
    +
    voidscheduleTask​(int taskId, +java.lang.Runnable task, +org.springframework.scheduling.support.CronTrigger cronTrigger) +
    Schedule provided task to perform
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Field Details

    + +
    +
  • + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      collectGroupLosses

      +
      @Scheduled(cron="0 24 17 * * *") +public void collectGroupLosses()
      +
      +
    • +
    • +
      +

      performExchangeService

      +
      @Scheduled(cron="0 0 0 * * *") +public void performExchangeService()
      +
      perfroms checks for matching exchanges daily
      +
      +
    • +
    • +
      +

      scheduleTask

      +
      public void scheduleTask​(int taskId, +java.lang.Runnable task, +org.springframework.scheduling.support.CronTrigger cronTrigger)
      +
      Schedule provided task to perform
      +
      +
      Parameters:
      +
      taskId - static filed of this class that represents to what event + we want to assign task
      +
      task - runnable class that perform task in implemented run method
      +
      cronTrigger - CronTrigger instance with date to perform
      +
      +
      +
    • +
    • +
      +

      initialize

      +
      @PostConstruct +public void initialize()
      +
      init resources needed for dynamicly creating new tasks (needed to set tours + end events)
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/ExchangeService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/ExchangeService.html new file mode 100644 index 0000000..04e8541 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/ExchangeService.html @@ -0,0 +1,373 @@ + + + + + +ExchangeService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class ExchangeService

+
+
+
java.lang.Object +
com.plannaplan.services.ExchangeService
+
+
+
+
@Service
+public class ExchangeService
+extends java.lang.Object
+
Service to manage Exchanges
+
+
+ +
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      save

      +
      public Exchange save​(Exchange exchange)
      +
      +
      Parameters:
      +
      exchange - Instance to save in database
      +
      Returns:
      +
      Exchange Instance contains database id
      +
      +
      +
    • +
    • +
      +

      getById

      +
      public java.util.Optional<Exchange> getById​(java.lang.Long id)
      +
      +
      Parameters:
      +
      id - Id of exchange in database
      +
      Returns:
      +
      Optional Exchange if found
      +
      +
      +
    • +
    • +
      +

      getAllExchanges

      +
      public java.util.List<Exchange> getAllExchanges()
      +
      +
      Returns:
      +
      list of all exchanges in database
      +
      +
      +
    • +
    • +
      +

      getByUserId

      +
      public java.util.List<Exchange> getByUserId​(java.lang.Long id)
      +
      +
      Parameters:
      +
      id - Id of user
      +
      Returns:
      +
      List of exchanges that belong to user
      +
      +
      +
    • +
    • +
      +

      deleteExchange

      +
      public void deleteExchange​(Exchange entity)
      +
      +
      Parameters:
      +
      entity - Exchange entity which we would like to delete
      +
      +
      +
    • +
    • +
      +

      checkForExchange

      +
      public java.util.Optional<Exchange> checkForExchange​(Assignment assignment, +Groups group)
      +
      +
      Parameters:
      +
      assignment - Assignment to trade for
      +
      group - Desired group
      +
      Returns:
      +
      Optional with Exchange if exist
      +
      +
      +
    • +
    • +
      +

      performExchange

      +
      public void performExchange()
      +
      method to perform Exchange algorythm. It search for matches and swap + assignments between latests user commisions if it can be performed. After + swap we block users matches that contains switched groups. After algorythm + email is being sent to all users with information about performed exchanges
      +
      +
    • +
    • +
      +

      getMatches

      +
      public java.util.List<MatchData> getMatches()
      +
      +
      Returns:
      +
      list of matches found in database
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/GroupService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/GroupService.html new file mode 100644 index 0000000..77de7c0 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/GroupService.html @@ -0,0 +1,458 @@ + + + + + +GroupService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class GroupService

+
+
+
java.lang.Object +
com.plannaplan.services.GroupService
+
+
+
+
@Service
+public class GroupService
+extends java.lang.Object
+
Service of GroupService which can find(optional), get(By Course, Groups + Ammount, Group By Id, find Not Existing Group), save, delete group.
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    GroupService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voiddelete​(Groups groups) +
    delete from database
    +
    java.util.Optional<Groups>find​(int time, +int capacity, +java.lang.String room) +
    find group with given properties
    +
    java.util.Optional<Groups>find​(java.lang.Integer zajCykId, +java.lang.Integer nrGr) +
    find group with given properties
    +
    java.util.Optional<java.lang.Long>findNotExistingGroup​(java.util.List<java.lang.Long> ids) +
    get wich of provided id is not existind groups
    +
    java.lang.IntegergetFullgroupsAmmount() 
    java.util.Optional<Groups>getGroupById​(java.lang.Long id) +
    find group with given properties
    +
    intgetGroupsAmmount() +
    get hom manyh groups are in database in general
    +
    java.util.List<Groups>getGroupsByCourse​(java.lang.Long id) +
    find group with given properties
    +
    java.util.HashMap<java.lang.Long,​java.lang.Integer>getTakenPlaces​(java.util.List<Groups> groups) 
    java.util.HashMap<java.lang.Long,​java.lang.Integer>getTakenPlacesOfAssignments​(java.util.List<Assignment> assignments) 
    Groupssave​(Groups group) +
    save group to database
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      find

      +
      public java.util.Optional<Groups> find​(int time, +int capacity, +java.lang.String room)
      +
      find group with given properties
      +
      +
      Parameters:
      +
      time - scheduled time for group as int of minutes passed from 00:00
      +
      capacity - capacity of group
      +
      room - class room
      +
      Returns:
      +
      optional with Groups instance if found
      +
      +
      +
    • +
    • +
      +

      find

      +
      public java.util.Optional<Groups> find​(java.lang.Integer zajCykId, +java.lang.Integer nrGr)
      +
      find group with given properties
      +
      +
      Parameters:
      +
      zajCykId - proteprty from usos
      +
      nrGr - group number
      +
      Returns:
      +
      optional with Groups instance if found
      +
      +
      +
    • +
    • +
      +

      getGroupsByCourse

      +
      public java.util.List<Groups> getGroupsByCourse​(java.lang.Long id)
      +
      find group with given properties
      +
      +
      Parameters:
      +
      id - course id of groups belogns to
      +
      Returns:
      +
      list of found groups
      +
      +
      +
    • +
    • +
      +

      save

      +
      public Groups save​(Groups group)
      +
      save group to database
      +
      +
      Parameters:
      +
      group - insatnce to be saved
      +
      Returns:
      +
      new instance that has id form database
      +
      +
      +
    • +
    • +
      +

      delete

      +
      public void delete​(Groups groups)
      +
      delete from database
      +
      +
      Parameters:
      +
      groups - isntance to delete
      +
      +
      +
    • +
    • +
      +

      getGroupsAmmount

      +
      public int getGroupsAmmount()
      +
      get hom manyh groups are in database in general
      +
      +
      Returns:
      +
      int - groups ammount
      +
      +
      +
    • +
    • +
      +

      getGroupById

      +
      public java.util.Optional<Groups> getGroupById​(java.lang.Long id)
      +
      find group with given properties
      +
      +
      Parameters:
      +
      id - group id
      +
      Returns:
      +
      optional with group if found
      +
      +
      +
    • +
    • +
      +

      findNotExistingGroup

      +
      public java.util.Optional<java.lang.Long> findNotExistingGroup​(java.util.List<java.lang.Long> ids)
      +
      get wich of provided id is not existind groups
      +
      +
      Parameters:
      +
      ids - list of ids to check
      +
      Returns:
      +
      optional with id that is not group if found. If there is multiple + will be returned first found
      +
      +
      +
    • +
    • +
      +

      getTakenPlacesOfAssignments

      +
      public java.util.HashMap<java.lang.Long,​java.lang.Integer> getTakenPlacesOfAssignments​(java.util.List<Assignment> assignments)
      +
      +
      Parameters:
      +
      assignments - list of assignments you want to get taken places ammount
      +
      Returns:
      +
      HashMap of Long to Integer where Long is group id and Integer is how + many places in gorup is already taken
      +
      +
      +
    • +
    • +
      +

      getTakenPlaces

      +
      public java.util.HashMap<java.lang.Long,​java.lang.Integer> getTakenPlaces​(java.util.List<Groups> groups)
      +
      +
      Parameters:
      +
      groups - list of groups you want to get taken places ammount
      +
      Returns:
      +
      HashMap of Long to Integer where Long is group id and Integer is how + many places in gorup is already taken
      +
      +
      +
    • +
    • +
      +

      getFullgroupsAmmount

      +
      public java.lang.Integer getFullgroupsAmmount()
      +
      +
      Returns:
      +
      amount of groups with full capacity taken
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/LecturerService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/LecturerService.html new file mode 100644 index 0000000..eb70b00 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/LecturerService.html @@ -0,0 +1,288 @@ + + + + + +LecturerService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class LecturerService

+
+
+
java.lang.Object +
com.plannaplan.services.LecturerService
+
+
+
+
@Service
+public class LecturerService
+extends java.lang.Object
+
Service of LecturerService which can get(Lecturer, Lecturers Ammount), save, delete lecturers.
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    LecturerService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    voiddelete​(Lecturer lecturer) 
    java.util.Optional<Lecturer>getLecturer​(java.lang.String title, +java.lang.String name, +java.lang.String surname) 
    intgetLecturersAmmount() 
    Lecturersave​(Lecturer lecturer) 
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+ +
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/UserService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/UserService.html new file mode 100644 index 0000000..5a6b878 --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/UserService.html @@ -0,0 +1,540 @@ + + + + + +UserService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UserService

+
+
+
java.lang.Object +
com.plannaplan.services.UserService
+
+
+
+
@Service
+public class UserService
+extends java.lang.Object
+
Service of UserService which can get(By Email), login, save user.
+
+
+ +
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      checkForUser

      +
      public User checkForUser​(java.lang.String email, +java.lang.String usosId)
      +
      checks if user exist and return him or creates new one with student role + otherwise
      +
      +
      Parameters:
      +
      email - user email in usos
      +
      usosId - user id in usos
      +
      Returns:
      +
      user entity instace containing changes saved in database
      +
      +
      +
    • +
    • +
      +

      checkForUser

      +
      public User checkForUser​(java.lang.String email, +java.lang.String usosId, +UserRoles roleIfNotExist)
      +
      checks if user exist and creates new one if doesn't
      +
      +
      Parameters:
      +
      email - user email in usos
      +
      usosId - user id in usos
      +
      roleIfNotExist - role to be set in case user is not in database yet
      +
      Returns:
      +
      user entity instace containing changes saved in database
      +
      +
      +
    • +
    • +
      +

      login

      +
      public User login​(User authority) + throws UserNotFoundException
      +
      generates token for user and if user don't have name in database it will + attemp to obtain these from usos api and saves changes in database
      +
      +
      Parameters:
      +
      authority - user we want to login
      +
      Returns:
      +
      user with changed values after save in db
      +
      Throws:
      +
      UserNotFoundException - throwed if user doesn't exist
      +
      +
      +
    • +
    • +
      +

      save

      +
      public User save​(User user)
      +
      sacves user to databse and return instatnce with id
      +
      +
      Parameters:
      +
      user - to be saved
      +
      Returns:
      +
      instatnce with bd id
      +
      +
      +
    • +
    • +
      +

      getUserByEmail

      +
      public User getUserByEmail​(java.lang.String email) + throws UserNotFoundException
      +
      +
      Parameters:
      +
      email - of user to be find
      +
      Returns:
      +
      user with given mail
      +
      Throws:
      +
      UserNotFoundException - throwed if user doesn't exist
      +
      +
      +
    • +
    • +
      +

      getByAuthority

      +
      public java.util.Optional<User> getByAuthority​(java.lang.String authority)
      +
      return user by given authority
      +
      +
      Parameters:
      +
      authority - user usosId or email
      +
      Returns:
      +
      optional with user if found
      +
      +
      +
    • +
    • +
      +

      getByToken

      +
      public java.util.Optional<User> getByToken​(java.lang.String token)
      +
      +
    • +
    • +
      +

      searchForStudents

      +
      public java.util.List<User> searchForStudents​(java.lang.String query)
      +
      search for user with given query
      +
      +
      Parameters:
      +
      query - string that will be matched to users name and surname
      +
      Returns:
      +
      list opf results
      +
      +
      +
    • +
    • +
      +

      getById

      +
      public java.util.Optional<User> getById​(java.lang.Long userId)
      +
      +
    • +
    • +
      +

      getAllStudents

      +
      public java.util.List<User> getAllStudents()
      +
      +
    • +
    • +
      +

      getUserByRefreshToken

      +
      public java.util.Optional<User> getUserByRefreshToken​(java.lang.String refreshToken)
      +
      +
    • +
    • +
      +

      adminExists

      +
      public boolean adminExists()
      +
      +
    • +
    • +
      +

      saveAll

      +
      public void saveAll​(java.util.List<User> users)
      +
      +
    • +
    • +
      +

      getStudentsSortedByRanking

      +
      public java.util.List<User> getStudentsSortedByRanking()
      +
      get students sorted by their ranking
      +
      +
      Returns:
      +
      list of students
      +
      +
      +
    • +
    • +
      +

      getAmmountOfUsersWithAssignedGroups

      +
      public int getAmmountOfUsersWithAssignedGroups()
      +
      +
      Returns:
      +
      ammount of how many users created an assignment
      +
      +
      +
    • +
    • +
      +

      getAmmountOfUsersWithNoAssignedGroups

      +
      public java.lang.Integer getAmmountOfUsersWithNoAssignedGroups()
      +
      +
      Returns:
      +
      ammount of how many users haven't created an assignment yet
      +
      +
      +
    • +
    • +
      +

      getAmmountOfUsersWithAcceptedSchedules

      +
      public java.lang.Integer getAmmountOfUsersWithAcceptedSchedules()
      +
      +
      Returns:
      +
      ammount of how many users have full schedule accepted
      +
      +
      +
    • +
    • +
      +

      getAmmountOfUsersWithNoAcceptedSchedules

      +
      public java.lang.Integer getAmmountOfUsersWithNoAcceptedSchedules()
      +
      +
      Returns:
      +
      ammount of how many users have partly or none schedule accepted
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/UsosApiService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/UsosApiService.html new file mode 100644 index 0000000..2134b8e --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/UsosApiService.html @@ -0,0 +1,260 @@ + + + + + +UsosApiService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Class UsosApiService

+
+
+
java.lang.Object +
com.plannaplan.services.UsosApiService
+
+
+
+
@Service
+public class UsosApiService
+extends java.lang.Object
+
service to call usos api endpoints
+
+
+
    + +
  • +
    + + +

    Constructor Summary

    +
    + + + + + + + + + + + + + + +
    Constructors 
    ConstructorDescription
    UsosApiService() 
    +
    +
    +
  • + +
  • +
    + + +

    Method Summary

    +
    +
    +
    + + + + + + + + + + + + + + + +
    Modifier and TypeMethodDescription
    UserApiResponsegetUserData​(java.lang.String usosId) +
    /services/users/user
    +
    +
    +
    +
    +

    Methods inherited from class java.lang.Object

    + + +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +
    +
  • +
+
+
+
    + +
  • +
    + + +

    Constructor Details

    + +
    +
  • + +
  • +
    + + +

    Method Details

    +
      +
    • +
      +

      getUserData

      +
      public UserApiResponse getUserData​(java.lang.String usosId)
      +
      /services/users/user
      +
      +
      Parameters:
      +
      usosId - user id in usos
      +
      Returns:
      +
      UserApiResponse modle contatining desired values
      +
      +
      +
    • +
    +
    +
  • +
+
+
+ +
+ +
+
+ + diff --git a/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/class-use/AssignmentService.html b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/class-use/AssignmentService.html new file mode 100644 index 0000000..ae80f6c --- /dev/null +++ b/Pilka/zapisy-studentow/dokumentacja-backendu/businesslogic/com/plannaplan/services/class-use/AssignmentService.html @@ -0,0 +1,100 @@ + + + + + +Uses of Class com.plannaplan.services.AssignmentService (buisnesslogic 1.0-SNAPSHOT API) + + + + + + + + + + + + + + + + +
+ +
+
+
+

U