forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged dspace-cris-2023_02_x into dspace-cris-2023_02_x-DSC-1526
- Loading branch information
Showing
25 changed files
with
852 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
dspace-api/src/main/java/org/dspace/layout/CrisLayoutBox2SecurityGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/** | ||
* The contents of this file are subject to the license and copyright | ||
* detailed in the LICENSE and NOTICE files at the root of the source | ||
* tree and available online at | ||
* | ||
* http://www.dspace.org/license/ | ||
*/ | ||
package org.dspace.layout; | ||
|
||
import java.io.Serializable; | ||
import javax.persistence.CascadeType; | ||
import javax.persistence.Embeddable; | ||
import javax.persistence.EmbeddedId; | ||
import javax.persistence.Entity; | ||
import javax.persistence.FetchType; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import javax.persistence.MapsId; | ||
import javax.persistence.Table; | ||
|
||
import org.dspace.eperson.Group; | ||
|
||
@Entity | ||
@Table(name = "cris_layout_box2securitygroup") | ||
public class CrisLayoutBox2SecurityGroup implements Serializable { | ||
|
||
@Embeddable | ||
public static class CrisLayoutBox2SecurityGroupId implements Serializable { | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "box_id") | ||
private CrisLayoutBox boxId; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "group_id") | ||
private Group groupId; | ||
|
||
public CrisLayoutBox2SecurityGroupId() { | ||
|
||
} | ||
|
||
public CrisLayoutBox2SecurityGroupId(CrisLayoutBox boxId, Group groupId) { | ||
this.boxId = boxId; | ||
this.groupId = groupId; | ||
} | ||
|
||
public CrisLayoutBox getBoxId() { | ||
return boxId; | ||
} | ||
|
||
public void setBoxId(CrisLayoutBox boxId) { | ||
this.boxId = boxId; | ||
} | ||
|
||
public Group getGroupId() { | ||
return groupId; | ||
} | ||
|
||
public void setGroupId(Group groupId) { | ||
this.groupId = groupId; | ||
} | ||
} | ||
|
||
@EmbeddedId | ||
private CrisLayoutBox2SecurityGroupId id; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@MapsId("boxId") | ||
@JoinColumn(name = "box_id", insertable = false, updatable = false) | ||
private CrisLayoutBox box; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@MapsId("groupId") | ||
@JoinColumn(name = "group_id", insertable = false, updatable = false) | ||
private Group group; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) | ||
@JoinColumn(name = "alternative_box_id", nullable = true) | ||
private CrisLayoutBox alternativeBox; | ||
|
||
public CrisLayoutBox2SecurityGroup() { | ||
|
||
} | ||
|
||
public CrisLayoutBox2SecurityGroup(CrisLayoutBox2SecurityGroupId id, | ||
CrisLayoutBox box, Group group, | ||
CrisLayoutBox alternativeBox) { | ||
this.id = id; | ||
this.box = box; | ||
this.group = group; | ||
this.alternativeBox = alternativeBox; | ||
} | ||
|
||
public CrisLayoutBox2SecurityGroupId getId() { | ||
return id; | ||
} | ||
|
||
public void setId(CrisLayoutBox2SecurityGroupId id) { | ||
this.id = id; | ||
} | ||
|
||
public CrisLayoutBox getBox() { | ||
return box; | ||
} | ||
|
||
public void setBox(CrisLayoutBox box) { | ||
this.box = box; | ||
} | ||
|
||
public Group getGroup() { | ||
return group; | ||
} | ||
|
||
public void setGroup(Group group) { | ||
this.group = group; | ||
} | ||
|
||
public CrisLayoutBox getAlternativeBox() { | ||
return alternativeBox; | ||
} | ||
|
||
public void setAlternativeBox(CrisLayoutBox alternativeBox) { | ||
this.alternativeBox = alternativeBox; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
dspace-api/src/main/java/org/dspace/layout/CrisLayoutTab2SecurityGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/** | ||
* The contents of this file are subject to the license and copyright | ||
* detailed in the LICENSE and NOTICE files at the root of the source | ||
* tree and available online at | ||
* | ||
* http://www.dspace.org/license/ | ||
*/ | ||
package org.dspace.layout; | ||
|
||
import java.io.Serializable; | ||
import javax.persistence.CascadeType; | ||
import javax.persistence.Embeddable; | ||
import javax.persistence.EmbeddedId; | ||
import javax.persistence.Entity; | ||
import javax.persistence.FetchType; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import javax.persistence.MapsId; | ||
import javax.persistence.Table; | ||
|
||
import org.dspace.eperson.Group; | ||
|
||
@Entity | ||
@Table(name = "cris_layout_tab2securitygroup") | ||
public class CrisLayoutTab2SecurityGroup implements Serializable { | ||
|
||
@Embeddable | ||
public static class CrisLayoutTab2SecurityGroupId implements Serializable { | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "tab_id") | ||
private CrisLayoutTab tabId; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "group_id") | ||
private Group groupId; | ||
|
||
public CrisLayoutTab2SecurityGroupId() { | ||
|
||
} | ||
|
||
public CrisLayoutTab2SecurityGroupId(CrisLayoutTab tabId, Group groupId) { | ||
this.tabId = tabId; | ||
this.groupId = groupId; | ||
} | ||
|
||
public CrisLayoutTab getTabId() { | ||
return tabId; | ||
} | ||
|
||
public void setTabId(CrisLayoutTab tabId) { | ||
this.tabId = tabId; | ||
} | ||
|
||
public Group getGroupId() { | ||
return groupId; | ||
} | ||
|
||
public void setGroupId(Group groupId) { | ||
this.groupId = groupId; | ||
} | ||
} | ||
|
||
@EmbeddedId | ||
private CrisLayoutTab2SecurityGroupId id; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@MapsId("tabId") | ||
@JoinColumn(name = "tab_id", insertable = false, updatable = false) | ||
private CrisLayoutTab tab; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@MapsId("groupId") | ||
@JoinColumn(name = "group_id", insertable = false, updatable = false) | ||
private Group group; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) | ||
@JoinColumn(name = "alternative_tab_id") | ||
private CrisLayoutTab alternativeTab; | ||
|
||
public CrisLayoutTab2SecurityGroup() { | ||
|
||
} | ||
|
||
public CrisLayoutTab2SecurityGroup(CrisLayoutTab2SecurityGroupId id, | ||
CrisLayoutTab tab, Group group, | ||
CrisLayoutTab alternativeTab) { | ||
this.id = id; | ||
this.tab = tab; | ||
this.group = group; | ||
this.alternativeTab = alternativeTab; | ||
} | ||
|
||
public CrisLayoutTab2SecurityGroupId getId() { | ||
return id; | ||
} | ||
|
||
public void setId(CrisLayoutTab2SecurityGroupId id) { | ||
this.id = id; | ||
} | ||
|
||
public CrisLayoutTab getTab() { | ||
return tab; | ||
} | ||
|
||
public void setTab(CrisLayoutTab tab) { | ||
this.tab = tab; | ||
} | ||
|
||
public Group getGroup() { | ||
return group; | ||
} | ||
|
||
public void setGroup(Group group) { | ||
this.group = group; | ||
} | ||
|
||
public CrisLayoutTab getAlternativeTab() { | ||
return alternativeTab; | ||
} | ||
|
||
public void setAlternativeTab(CrisLayoutTab alternativeTab) { | ||
this.alternativeTab = alternativeTab; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.