Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Story/vspc 232 214 215 multiple languages #336

Open
wants to merge 212 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 210 commits
Commits
Show all changes
212 commits
Select commit Hold shift + click to select a range
a31db86
[story VSPC-215] added entity
Sep 21, 2022
f723c2d
[story/VSPC-215] entity changes
Sep 22, 2022
fdc14e6
[story/VSPC-215] entity
Sep 22, 2022
95befa0
[bug/VSPC-232] worked on controller
swetalina-prusty25 Sep 30, 2022
478f1e4
[bug/VSPC-232] developed the backend part
swetalina-prusty25 Oct 4, 2022
a0b4b07
[story/VSPC-141-rebase] space title getter setter
Oct 6, 2022
fe5789a
[bug/VSPC-232] worked on the backend implementation
swetalina-prusty25 Oct 6, 2022
8de1fea
[bug/VSPC-232] Added Entity
swetalina-prusty25 Oct 7, 2022
b93c9d5
[bug/VSPC-232] Entity
swetalina-prusty25 Oct 11, 2022
c6cb4ea
[story/VSPC-215] added language object entity
Oct 12, 2022
2df4b0c
[bug/VSPC-232] modified About page and added object
swetalina-prusty25 Oct 13, 2022
108cfa0
[story/VSPC-215]
Oct 13, 2022
58b7ce0
[story/VSPC-215] manager and repo classes for language object
Oct 14, 2022
84d0bb6
[bug/VSPC-232] added labels for title and texts
swetalina-prusty25 Oct 14, 2022
0046c12
[story/VSPC-215] save language object
pkharge Oct 18, 2022
d049e12
[bug/VSPC-232] Added code or saving title and texts
swetalina-prusty25 Oct 18, 2022
96d9164
[story/VSPC-215] name and description being sent to backend
pkharge Oct 19, 2022
bcc35e9
[bug/VSPC-232]Added repo and manager class for language object
swetalina-prusty25 Oct 20, 2022
2eec1f4
[story/VSPC-215] exhibition language getting populated
pkharge Oct 20, 2022
3ebc7e9
[bug/VSPC-232] worked on saving the title and texts
swetalina-prusty25 Oct 21, 2022
b18ba84
[bug/VSPC-232] Worked on UI changes
swetalina-prusty25 Oct 25, 2022
f7a9222
[bug/ SPC-232] worked on the UI changes
swetalina-prusty25 Nov 8, 2022
686a04c
[bug/VSPC-232]
swetalina-prusty25 Nov 9, 2022
5e76922
[bug/VSPC-232] mapping of user inputs to objects
swetalina-prusty25 Nov 9, 2022
32fa4b0
[bug/VSPC-232] worked on service and repo
swetalina-prusty25 Nov 10, 2022
b7fd0fb
[bug/VSPC-232] updated code
swetalina-prusty25 Nov 17, 2022
59de42f
[bug/VSPC-232] Mapped the atrributes
swetalina-prusty25 Nov 18, 2022
dca08a8
[bug/VSPC-232] trying to resolve error
swetalina-prusty25 Nov 21, 2022
5e74013
[bug/VSPC-232] Saving of data
swetalina-prusty25 Nov 22, 2022
ae08a87
[bug/VSPC-232] foreign key mapping
swetalina-prusty25 Nov 23, 2022
044391b
[bug/VSPC-232] completed the storing and saving values in db
swetalina-prusty25 Nov 29, 2022
88ca1a6
[bug/VSPC-232] display of values in UI
swetalina-prusty25 Dec 2, 2022
6f1e69a
[bug/VSPC-232]
swetalina-prusty25 Dec 6, 2022
6a9ce69
[bug/VSPC-232] updated manager class
swetalina-prusty25 Dec 9, 2022
763fb29
[bug/VSPC-232] Populated the last entry
swetalina-prusty25 Dec 13, 2022
68bb82d
[bug/VSPC-232]
swetalina-prusty25 Dec 14, 2022
3f6a676
[bug/VSPC-232] Ui Changes
swetalina-prusty25 Dec 14, 2022
2cdd59c
[bug/VSPC-232] Implemented the story
swetalina-prusty25 Dec 15, 2022
398ecaa
[bug/VSPC-232]Identation
swetalina-prusty25 Dec 15, 2022
e24fb74
[bug/VSPC-232]
swetalina-prusty25 Dec 16, 2022
0aa822a
[bug/VSPC-232]
swetalina-prusty25 Dec 16, 2022
a7d64ed
[bug/VSPC-232] Indentation Error Fixed
swetalina-prusty25 Dec 16, 2022
fe69f18
Update LanguageDescriptionObject.java
swetalina-prusty25 Dec 19, 2022
e2f5648
Update ExhibitionAboutPageManager.java
swetalina-prusty25 Dec 19, 2022
48dd5aa
Update ExhibitionAboutPage.java
swetalina-prusty25 Dec 19, 2022
3243f0e
Update ExhibitionAboutPageController.java
swetalina-prusty25 Dec 19, 2022
4027e32
Update LanguageDescriptionObject.java
swetalina-prusty25 Dec 19, 2022
c9d263a
Update ExhibitionAboutPageManager.java
swetalina-prusty25 Dec 19, 2022
d47a8fc
[story/VSPC-214] Added Entity
swetalina-prusty25 Dec 21, 2022
22e8dae
[story/VSPC-214] Entity
swetalina-prusty25 Dec 23, 2022
2a9b3ec
[story/VSPC-215] change to language object interface
pkharge Jan 24, 2023
79fb348
[story/VSPC-215] edit space multiple languages
pkharge Jan 26, 2023
ddfade8
[story/VSPC-215]
pkharge Jan 27, 2023
c58ec0c
[story/VSPC-204] data getting stored
pkharge Jan 31, 2023
58a92e7
[story/VSPC-215]
pkharge Jan 31, 2023
4ea5d92
[story/VSPC-215] display values edit page
pkharge Feb 2, 2023
81887a7
[story/VSPC-215] display default spce name and description
pkharge Feb 4, 2023
1e149ee
[story/VSPC-215] added test cases. refactor
pkharge Feb 7, 2023
3883252
[story/VSPC-215] test cases
pkharge Feb 9, 2023
90781b6
[story/VSPC-215] code factor
pkharge Feb 9, 2023
62c6c14
Merge branch 'develop' into story/VSPC-215
pkharge Feb 9, 2023
a743f13
[story/VSPC-215] remove unnecessary changes
pkharge Feb 9, 2023
80894ed
[story/VSPC-215] refactor
pkharge Feb 9, 2023
5f5c8c8
[story/VSPC-232] do not send language object list to ui
pkharge Feb 9, 2023
f74baa5
[bug/VSPC-232] exhibition language also getting persisted with langua…
pkharge Feb 10, 2023
7f6b501
[story/VSPC-232] avoid creating new langauge description object
pkharge Feb 14, 2023
5d12b24
[story/VSPC-232]
pkharge Feb 14, 2023
ad7de21
[bug/VSPC-232] review comments
pkharge Feb 16, 2023
23badaa
[story/vspc-232] modify ui form
pkharge Feb 21, 2023
84ea001
[story/VSPC-232] localized text now working both front end and backend
pkharge Feb 23, 2023
73c7adb
[story/VSPC-232] test cases
pkharge Feb 24, 2023
223a357
[story/VSPC-214] Modified enties and html file
swetalina-prusty25 Feb 28, 2023
349f3b9
[story/VSPC-232] cascade
pkharge Mar 2, 2023
ced5014
[bug/VSPC-232]
pkharge Mar 3, 2023
2661342
[story/VSPC-214] Added code to fetch slide names
swetalina-prusty25 Mar 6, 2023
7ed8915
[bug/VSPC-232] exhibition language delete error
pkharge Mar 6, 2023
0493d66
[story/VSPC-214] mapped names and description
swetalina-prusty25 Mar 7, 2023
6d4a1f8
[bug/VSPC-232] ui error displayed
pkharge Mar 7, 2023
b911acc
[bug/VSPC-232] test acse
pkharge Mar 8, 2023
1b24b80
[story/VSPC-232] code factor
pkharge Mar 8, 2023
21fd8b4
[story/VSPC-232] code factor
pkharge Mar 8, 2023
a00a89e
[bug/VSPC-232]
pkharge Mar 8, 2023
7003be4
[story/VSPC-214] Worked on the edit slide controller
swetalina-prusty25 Mar 8, 2023
b276a91
[story/VSPC-215] renamed files
pkharge Mar 8, 2023
8cc6d68
[bug/VSPC-232] refactor
pkharge Mar 8, 2023
dc11137
[story/VSPC-214] added label in edit slide page
swetalina-prusty25 Mar 9, 2023
7f04993
[story/SPC-214]
swetalina-prusty25 Mar 10, 2023
616cba3
[story/VSPC-214] updated edit
swetalina-prusty25 Mar 13, 2023
23a66e2
[story/VSPC-214] Default name and description
swetalina-prusty25 Mar 14, 2023
ff53422
[story/VSPC-214] Solved foreign key issue
swetalina-prusty25 Mar 17, 2023
b1a88e2
[bug/VSPC-239] tabs
pkharge Mar 17, 2023
31a6229
[story/VSPC-214] Edit Slide
swetalina-prusty25 Mar 20, 2023
42d3854
[story/VSPC-232] tabs ui
pkharge Mar 21, 2023
e9b5eda
[story/VSPC-214] resolved issue
swetalina-prusty25 Mar 21, 2023
3ce9509
[story/VSPC-232] default lnagueg, css
pkharge Mar 23, 2023
2a37eb2
[story/VSPC-214] ui changes
swetalina-prusty25 Mar 24, 2023
f87cdaa
[story/VSPC-232] tab info submitted propoerly, foreign key constraint…
pkharge Mar 24, 2023
b1c013e
[story/VSPC-214] UI changes in progress
swetalina-prusty25 Mar 27, 2023
697c7bd
[VSPC-232]
pkharge Mar 28, 2023
90b7aa4
[VSPC-232]
pkharge Mar 28, 2023
09ccb9e
[VSPC-232] code factor
pkharge Mar 28, 2023
1f8fe03
Merge branch 'develop' into bug/VSPC-232
pkharge Mar 28, 2023
94dac8b
[story/VSPC-214] updated manager class according to localized extform
swetalina-prusty25 Mar 28, 2023
d98d63d
[story/VSC-214] resolving null id issue
swetalina-prusty25 Mar 31, 2023
8c73cc2
[story/VSPC-214] null id
swetalina-prusty25 Apr 3, 2023
26c94ad
[story/VSPC-214] Add slide is working
swetalina-prusty25 Apr 4, 2023
8133b39
[story/VSPC-214] edit slide
swetalina-prusty25 Apr 7, 2023
629b175
[story/VSPC-214]add slide new ui
swetalina-prusty25 Apr 10, 2023
840062d
[story/VSPC-232] review comments refactor
pkharge Apr 11, 2023
8d456e5
[story/VSPC-214] edit slide
swetalina-prusty25 Apr 12, 2023
4c9d662
[story/VSPC-232] review comments
pkharge Apr 13, 2023
edba91c
[story/VSPC-214]UI changes
swetalina-prusty25 Apr 14, 2023
b7450f9
[story/VSPC-214] edit page
swetalina-prusty25 Apr 17, 2023
8d5fa88
[story/VSPC-232] review comments
pkharge Apr 18, 2023
59ebe31
[story/VSPC-214]bootstrap code for tab
swetalina-prusty25 Apr 18, 2023
3496b11
[story/VSPC-214] Test cases
swetalina-prusty25 Apr 21, 2023
33ee44e
[story/VSPC-214] tabs for edit slide and test cases
swetalina-prusty25 Apr 24, 2023
7f960df
[story/VSPC-214] Test Cases and updated the manager class
swetalina-prusty25 Apr 25, 2023
4fb30fd
[story/VSPC-214] Implemented the story
swetalina-prusty25 Apr 28, 2023
422b41e
[story/VSPC-214]
swetalina-prusty25 Apr 28, 2023
1c0f38a
[story/VSPC-214] removed unwanted files
swetalina-prusty25 Apr 28, 2023
0147eb1
[story/VSPC-214]Code Factor
swetalina-prusty25 May 1, 2023
69201f0
[story/VSPC-214]code factor
swetalina-prusty25 May 1, 2023
d63c7c6
[story/VSPC-232] added factory to create about page form
pkharge May 9, 2023
6827d8f
[story/VSPC-232] db query to delete localized text
pkharge May 10, 2023
bef77f3
[story/VSPC-232] extended vspace element
pkharge May 11, 2023
669d67a
[story/VSPC-232] modified localizedText entity
pkharge May 15, 2023
c86680b
[story/VSPC-232] exhibition language can now be deleted
pkharge May 16, 2023
7754697
[story/VSPC-232] code factor
pkharge May 16, 2023
d3f3be2
[story/VSPC-232] merge conflicts
pkharge May 16, 2023
17eaead
[story/VSPC-232] default about page form
pkharge May 17, 2023
e77e28a
[story/VSPC-232] default localized text
pkharge May 18, 2023
39c2eb1
[story/VSPC-215]Updation accrd to LocalizedText
swetalina-prusty25 May 26, 2023
2dc23e5
[story/VSPC-215]update addspace text and desc
swetalina-prusty25 May 30, 2023
a9656a3
[story/VSPC-215]
swetalina-prusty25 May 31, 2023
642e821
[story/VSPC-215] Add space html
swetalina-prusty25 Jun 1, 2023
8bc73a1
[story/VSPC-215] error resolved
swetalina-prusty25 Jun 2, 2023
d7b71e6
[story/VSPC-215] edit space
swetalina-prusty25 Jun 5, 2023
4e22c5f
[story/VSPC-215] Test cases
swetalina-prusty25 Jun 6, 2023
708177a
[story/VSPC-215] Updated spaceFactory
swetalina-prusty25 Jun 7, 2023
028e7e0
[story/VSPC-215]Review comment
swetalina-prusty25 Jun 8, 2023
eac59d1
[story/VSPC-215] Fixed null id
swetalina-prusty25 Jun 9, 2023
deac6e4
[story/VSPC-215] Create Space
swetalina-prusty25 Jun 12, 2023
efd93b0
[story/VSPC-215]
swetalina-prusty25 Jun 12, 2023
9a2c3f6
[story/VSPC-215]ExhibitionLanguageDeletionException
swetalina-prusty25 Jun 13, 2023
c9eaef3
[story/VSPC-215] space factory test cases
swetalina-prusty25 Jun 14, 2023
fd4fa4a
[story/VSPC-215] UI Changes
swetalina-prusty25 Jun 15, 2023
364327c
[story/VSPC-215] Code Optimization
swetalina-prusty25 Jun 16, 2023
c2f55bd
Merge branch 'develop' into story/VSPC-215
swetalina-prusty25 Jun 16, 2023
f729a1b
[story/VSPC-215] code factor
swetalina-prusty25 Jun 16, 2023
4987325
[story/VSPC-215]
swetalina-prusty25 Jun 16, 2023
4809a7d
[story/VSPC-215]
swetalina-prusty25 Jun 16, 2023
bb9e455
[story/VSPC-214] Updated entity classes
swetalina-prusty25 Jun 23, 2023
d336c52
[story/VSPC-214] slide factory methods
swetalina-prusty25 Jun 26, 2023
c5078bb
[story/VSPC-214] Updated manager class methods
swetalina-prusty25 Jun 27, 2023
f9ccec2
[story/VSPC-214] Updated manager class
swetalina-prusty25 Jun 28, 2023
1017c9a
[story/VSPC-214] edit slide updation
swetalina-prusty25 Jun 29, 2023
a0e2c24
[story/VSPC-214] JPA system error resolved
swetalina-prusty25 Jun 30, 2023
ba71de4
[story/VSPC-214] LocalizedText Deletion exception
swetalina-prusty25 Jul 3, 2023
c1cf369
[story/VSPC-214] Exhibition Language Deletion Exception
swetalina-prusty25 Jul 5, 2023
4c3fd42
[story/VSPC-214] slide factory test cases
swetalina-prusty25 Jul 6, 2023
0f64127
[story/VSPC-214] test cases
swetalina-prusty25 Jul 7, 2023
f006498
Merge branch 'develop' into story/VSPC-214
swetalina-prusty25 Jul 7, 2023
b168dab
[story/VSPC-214] code factor
swetalina-prusty25 Jul 7, 2023
9efd323
Merge branch 'Bug/VSPC-232' into story/VSPC-232-214-215-multiple-lang…
pkharge Aug 31, 2023
ae42bc2
[VSPC-232-215-214-multiple-languages] trying to remove exhibition abo…
pkharge Aug 31, 2023
669b72b
[VSPC-232-214-215-multiple-languages] removed target from localized text
pkharge Sep 5, 2023
f4cc724
[VSPC-232-214-215-multiple-languages] merged VSPC-214
pkharge Sep 5, 2023
0cf01e5
[VSPC-232-214-215-multiple-languages] remove target slide from locali…
pkharge Sep 5, 2023
18f0e5d
[VSPC-232-214-215-multiple-languages] merged VSPC-215
pkharge Sep 6, 2023
a8e823a
[VSPC-232-214-215] addressed review comment for 215
pkharge Sep 12, 2023
6a770a0
[VSPC-232-214-215] localized text will not get saved if empty
pkharge Sep 13, 2023
b8c5df0
[VSPC-232-215-214] pomxml revert
pkharge Sep 13, 2023
f0803d5
[VSPC-232-214-215] refactor
pkharge Sep 13, 2023
18e2414
[VSPC-232-214-215-multiple-languages] Addressed review comments: remo…
ShivaniYerram Mar 4, 2024
b3a430f
[VSPC-232-214-215-multiple-languages] Addressed review comments: sepa…
ShivaniYerram Mar 5, 2024
f29c13a
[VSPC-232-214-215-multiple-languages] Addressed review comments.
ShivaniYerram Mar 5, 2024
c9d5f1c
[VSPC-232-214-215-multiple-languages] Addressed review comments.
ShivaniYerram Mar 6, 2024
5b46307
[VSPC-232-214-215-multiple-languages] Title for exhibition languages …
ShivaniYerram Mar 20, 2024
09ed763
[VSPC-232-214-215-multiple-languages] Added Space title and descripti…
ShivaniYerram Mar 25, 2024
dba44a4
[VSPC-232-214-215-multiple-languages] Code clean up.
ShivaniYerram Apr 10, 2024
58d8950
[VSPC-232-214-215-multiple-languages] Addressed review comments.
ShivaniYerram Apr 22, 2024
4cc9fff
[VSPC-232-214-215-multiple-languages] Addressed review comments on re…
ShivaniYerram Apr 24, 2024
106c3c6
[VSPC-232-214-215-multiple-languages] Addressed review comments.
ShivaniYerram Apr 30, 2024
741aacb
Merge branch 'develop' into story/VSPC-232-214-215-multiple-languages
pooja-thalur Jul 26, 2024
0f66026
[VSPC-215] addressed pr comments
pooja-thalur Jul 26, 2024
c963e2d
[VSPC-215]fixed errors
pooja-thalur Jul 29, 2024
ef448b5
[VSPC-215] fixed issue with displaying space title and description
pooja-thalur Jul 30, 2024
5635b31
[VSPC-215] addressed pr comments
pooja-thalur Jul 31, 2024
1844a0c
[VSPC-215-214-232] addressed pr comments
pooja-thalur Aug 1, 2024
013c9ec
[VSPC-215-214-232] fixed testcases
pooja-thalur Aug 2, 2024
1e82e97
[VSPC-232-214-215] fixed testcases
pooja-thalur Aug 5, 2024
19d4e20
Merge branch 'develop' into story/VSPC-232-214-215-multiple-languages
pooja-thalur Aug 5, 2024
758a693
[VSPC-232-214-215] fixed testcase issues
pooja-thalur Aug 5, 2024
9e70fec
[VSPC-232-214-215] fixed issue while editing slides
pooja-thalur Aug 8, 2024
a16432c
[VSPC-232-214-215] review comments
pooja-thalur Aug 13, 2024
e192a25
[VSPC-232-214-215] removed extra spaces
pooja-thalur Aug 15, 2024
3a4e6cb
[VSPC-232-214-215] removed console and some test file changes
pooja-thalur Aug 16, 2024
0897fcc
[VSPC-215] fixing testcase
pooja-thalur Aug 20, 2024
52ec760
[VSPC-215] fixing test cases
pooja-thalur Aug 21, 2024
5e5718c
[VSPC-232-214-215] addressed pr comment
pooja-thalur Sep 4, 2024
0b63e95
[VSPC-232-214-215] addressed pr comments
pooja-thalur Sep 6, 2024
b1d986f
Merge branch 'develop' into story/VSPC-232-214-215-multiple-languages
pooja-thalur Sep 6, 2024
06385d3
[VSPC-232-214-215] fixed issues in getting about text, slide and spac…
pooja-thalur Oct 18, 2024
4ba9447
[VSPC-232-214-215] fixing unit tests
pooja-thalur Oct 23, 2024
1040bb1
[VSPC-232-214-215] fixed testcases
pooja-thalur Oct 25, 2024
5eaaffa
[VSPC-232-214-215] fixed the ui issues
pooja-thalur Nov 1, 2024
ed741e0
Merge branch 'develop' into story/VSPC-232-214-215-multiple-languages
pooja-thalur Nov 1, 2024
7c397be
[VSPC-232-214-215] codefactor issue
pooja-thalur Nov 1, 2024
962296b
[VSPC-232-214-215] codefactor issue
pooja-thalur Nov 6, 2024
eeaa3a9
Merge branch 'develop' into story/vspc-190
pooja-thalur Jan 6, 2025
3367194
[VSPC-232-214-215] fixed issues after merging
pooja-thalur Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vspace/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down Expand Up @@ -168,9 +168,9 @@
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
<groupId>org.apache.logging.log4j</groupId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made this change to resolve codefactor issue

<artifactId>log4j-core</artifactId>
<version>2.1</version>
<exclusions>
<exclusion>
<groupId>javax.mail</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package edu.asu.diging.vspace.core.data;

import org.javers.spring.annotation.JaversSpringDataAuditable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import edu.asu.diging.vspace.core.model.IExhibition;
import edu.asu.diging.vspace.core.model.IExhibitionLanguage;
import edu.asu.diging.vspace.core.model.impl.ExhibitionLanguage;

@Repository
@JaversSpringDataAuditable
public interface ExhibitionLanguageRepository extends PagingAndSortingRepository<ExhibitionLanguage, String>{

ExhibitionLanguage findByLabel(String label);

@Query("SELECT l FROM ExhibitionLanguage l WHERE l.exhibition = ?1 AND l.isDefault = true")
IExhibitionLanguage findByExhibitionAndIsDefault(IExhibition exhibition);

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package edu.asu.diging.vspace.core.data;

import java.util.List;

import org.javers.spring.annotation.JaversSpringDataAuditable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import edu.asu.diging.vspace.core.model.IExhibitionLanguage;
import edu.asu.diging.vspace.core.model.impl.LocalizedText;

@Repository
@JaversSpringDataAuditable
public interface LocalizedTextRepository extends PagingAndSortingRepository<LocalizedText, String>{

List<LocalizedText> findByExhibitionLanguage(IExhibitionLanguage language);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package edu.asu.diging.vspace.core.exception;

public class ExhibitionLanguageDeletionException extends Exception {

/**
*
*/
private static final long serialVersionUID = 1L;

public ExhibitionLanguageDeletionException() {
super();
}

public ExhibitionLanguageDeletionException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}

public ExhibitionLanguageDeletionException(String message, Throwable cause) {
super(message, cause);
}

public ExhibitionLanguageDeletionException(String message) {
super(message);
}

public ExhibitionLanguageDeletionException(Throwable cause) {
super(cause);
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package edu.asu.diging.vspace.core.factory;

import edu.asu.diging.vspace.core.model.impl.ExhibitionAboutPage;
import edu.asu.diging.vspace.web.staff.forms.AboutPageForm;

public interface IAboutPageFormFactory {

/**
* Creates About Page form object
*/
AboutPageForm createAboutPageForm(ExhibitionAboutPage exhibitionAboutPage);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package edu.asu.diging.vspace.core.factory;

import java.util.List;

import edu.asu.diging.vspace.core.model.ILocalizedText;
import edu.asu.diging.vspace.core.model.impl.ExhibitionAboutPage;

public interface IExhibitionAboutPageFactory {

/**
* Creates Exhibition About Page
*/
ExhibitionAboutPage createExhibitionAboutPage(String title, String aboutPageText, List<ILocalizedText> localizedTitles, List<ILocalizedText> localizedDescriptions);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package edu.asu.diging.vspace.core.factory;

import java.util.List;

import edu.asu.diging.vspace.core.model.ILocalizedText;
import edu.asu.diging.vspace.web.staff.forms.LocalizedTextForm;

public interface ILocalizedTextFactory {

ILocalizedText createLocalizedText(Object entity, LocalizedTextForm localizedTextFormData, List<ILocalizedText> detailList);

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public interface ISlideFactory {
*/
ISlide createSlide(IModule module, SlideForm form, SlideType type);

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package edu.asu.diging.vspace.core.factory;

import edu.asu.diging.vspace.core.model.IExhibition;
import edu.asu.diging.vspace.core.model.ISlide;
import edu.asu.diging.vspace.web.staff.forms.SlideForm;

public interface ISlideFormFactory {

SlideForm createNewSlideForm(ISlide slide, IExhibition startExhibition);

}
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package edu.asu.diging.vspace.core.factory;

import edu.asu.diging.vspace.core.model.ISpace;

import edu.asu.diging.vspace.web.staff.forms.SpaceForm;

/**
* (non-javadoc) The ISpaceFactory interface defines a method for creating
* instances of the edu.asu.diging.vspace.core.model.ISpace interface.
*/
public interface ISpaceFactory {

/**
* (non-javadoc)
* Creates an instance of the ISpace interface based on the given
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package edu.asu.diging.vspace.core.factory;

import edu.asu.diging.vspace.core.model.IExhibition;
import edu.asu.diging.vspace.core.model.ISpace;
import edu.asu.diging.vspace.web.staff.forms.SpaceForm;

public interface ISpaceFormFactory {

SpaceForm createNewSpaceForm(ISpace space, IExhibition startExhibtion);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package edu.asu.diging.vspace.core.factory.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import edu.asu.diging.vspace.core.factory.IExhibitionAboutPageFactory;
import edu.asu.diging.vspace.core.model.ILocalizedText;
import edu.asu.diging.vspace.core.model.impl.ExhibitionAboutPage;

@Component
public class ExhibitionAboutPageFactory implements IExhibitionAboutPageFactory{

@Override
public ExhibitionAboutPage createExhibitionAboutPage(String title, String aboutPageText,
List<ILocalizedText> localizedTitles, List<ILocalizedText> localizedDescriptions) {

ExhibitionAboutPage exhibitionAboutPage = new ExhibitionAboutPage();
exhibitionAboutPage.setTitle(title);
exhibitionAboutPage.setAboutPageText(aboutPageText);
exhibitionAboutPage.setExhibitionTitles(localizedTitles);
exhibitionAboutPage.setExhibitionTextDescriptions(localizedDescriptions);

return exhibitionAboutPage;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package edu.asu.diging.vspace.core.factory.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.thymeleaf.util.StringUtils;

import edu.asu.diging.vspace.core.data.ExhibitionLanguageRepository;
import edu.asu.diging.vspace.core.data.LocalizedTextRepository;
import edu.asu.diging.vspace.core.factory.ILocalizedTextFactory;
import edu.asu.diging.vspace.core.model.ILocalizedText;
import edu.asu.diging.vspace.core.model.impl.ExhibitionLanguage;
import edu.asu.diging.vspace.core.model.impl.LocalizedText;
import edu.asu.diging.vspace.web.staff.forms.LocalizedTextForm;

@Service
@Transactional
public class LocalizedTextFactory implements ILocalizedTextFactory {

@Autowired
private LocalizedTextRepository localizedTextRepo;

@Autowired
private ExhibitionLanguageRepository exhibitionLanguageRepository;

/**
* Adds localized text (names or descriptions) to the specified list.
*
* @param entity The entity (slide or space) to which the details will be added.
* @param localizedTextFormData The localized text form containing the details to be added.
* @param detailList The list in the entity where the details will be added (e.g., slideNames, spaceNames).
*/
@Override
public LocalizedText createLocalizedText(Object entity, LocalizedTextForm localizedTextFormData, List<ILocalizedText> detailList) {
if (StringUtils.isEmpty(localizedTextFormData.getText())) {
return null;
}
LocalizedText localizedText = localizedTextRepo.findById(localizedTextFormData.getLocalizedTextId()).orElse(null);
if (localizedText != null) {
localizedText.setText(localizedTextFormData.getText());
} else {
ExhibitionLanguage exhibitionLanguage = exhibitionLanguageRepository.findById(localizedTextFormData.getExhibitionLanguageId()).orElse(null);
if (exhibitionLanguage != null) {
localizedText = new LocalizedText(exhibitionLanguage, localizedTextFormData.getText());
}
detailList.add(localizedText);
}

return localizedText;
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package edu.asu.diging.vspace.core.factory.impl;

import java.util.ArrayList;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.asu.diging.vspace.core.factory.IChoiceFactory;
import edu.asu.diging.vspace.core.factory.ISlideFactory;
import edu.asu.diging.vspace.core.model.IBranchingPoint;
Expand Down Expand Up @@ -40,11 +40,12 @@ public ISlide createSlide(IModule module, SlideForm form, SlideType type) {
slide = new BranchingPoint();
List<IChoice> choices = choiceFactory.createChoices(form.getChoices());
((IBranchingPoint) slide).setChoices(choices);
}
}
slide.setName(form.getName());
slide.setDescription(form.getDescription());
slide.setModule(module);
slide.setContents(new ArrayList<IContentBlock>());
return slide;
}
}

}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package edu.asu.diging.vspace.core.factory.impl;

import org.springframework.stereotype.Service;

import edu.asu.diging.vspace.core.factory.ISpaceFactory;
import edu.asu.diging.vspace.core.model.ISpace;
import edu.asu.diging.vspace.core.model.impl.Space;
Expand All @@ -10,14 +9,16 @@
@Service
public class SpaceFactory implements ISpaceFactory {

/* (non-Javadoc)
* @see edu.asu.diging.vspace.core.factory.impl.ISpaceFactory#createSpace(edu.asu.diging.vspace.web.staff.forms.SpaceForm)
*/
@Override
public ISpace createSpace(SpaceForm form) {
ISpace space = new Space();
space.setName(form.getName());
space.setDescription(form.getDescription());
return space;
}
}
/**
* Creates a new space based on the provided form.
* @param form The form containing details for creating the space.
* @return The newly created space and saves it to the repository.
*/
@Override
public ISpace createSpace(SpaceForm form) {
ISpace space = new Space();
space.setName(form.getName());
space.setDescription(form.getDescription());
return space;
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package edu.asu.diging.vspace.core.model;


public interface IExhibitionLanguage extends IVSpaceElement {

String getCode();

String getLabel();

void setLabel(String label);

boolean isDefault();

void setDefault(boolean isDefault);
void setDefault(boolean isDefault);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package edu.asu.diging.vspace.core.model;

import edu.asu.diging.vspace.core.model.impl.ExhibitionLanguage;

public interface ILocalizedText {
String getId();

String getText();

void setText(String text);

ExhibitionLanguage getExhibitionLanguage();

void setExhibitionLanguage( ExhibitionLanguage exhibitionLanguage);

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@ public interface ISlide extends IVSpaceElement {
IImageBlock getFirstImageBlock();

ITextBlock getFirstMatchedTextBlock(String searchTerm);

List<ILocalizedText> getSlideNames();

void setSlideNames(List<ILocalizedText> slideNames);

void setSlideDescriptions(List<ILocalizedText> slideDescriptions);

List<ILocalizedText> getSlideDescriptions();
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,13 @@ public interface ISpace extends IVSpaceElement {
void setShowUnpublishedLinks(Boolean showUnpublishedLinks);

void setHideIncomingLinks(boolean hideIncomingLinks);

List<ILocalizedText> getSpaceNames();

void setSpaceNames(List<ILocalizedText> spaceNames);

void setSpaceDescriptions(List<ILocalizedText> spaceDescriptions);

List<ILocalizedText> getSpaceDescriptions() ;

}
Loading