Přidána metoda pro select položek schválených požadavků, které má
přihlášený uživatel právo zobrazit. Přidány komentáře do tříd pro vyhodnocování přístupových práv. refs #136multitenant
parent
e93a99aa25
commit
750ef2b153
@ -0,0 +1,16 @@
|
|||||||
|
package info.bukova.isspst.data;
|
||||||
|
|
||||||
|
import info.bukova.isspst.security.RequirementFilterEvaluator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pomocné rozhraní pro filtrování záznamů pře vyhodnocovač prav {@link RequirementFilterEvaluator}.
|
||||||
|
*
|
||||||
|
* @author pepa
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface FilterableRequirement {
|
||||||
|
|
||||||
|
Workgroup getCentre();
|
||||||
|
Workgroup getWorkgroup();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,56 @@
|
|||||||
|
package info.bukova.isspst.data;
|
||||||
|
|
||||||
|
public class JoinedItem implements FilterableRequirement {
|
||||||
|
|
||||||
|
private RequirementItem item;
|
||||||
|
private Workgroup workgroup;
|
||||||
|
private Workgroup centre;
|
||||||
|
private User ownedBy;
|
||||||
|
|
||||||
|
public JoinedItem(RequirementItem item, Workgroup workgroup,
|
||||||
|
Workgroup centre, User owner) {
|
||||||
|
super();
|
||||||
|
this.item = item;
|
||||||
|
this.workgroup = workgroup;
|
||||||
|
this.centre = centre;
|
||||||
|
this.ownedBy = owner;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JoinedItem(RequirementItem item) {
|
||||||
|
super();
|
||||||
|
this.item = item;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RequirementItem getItem() {
|
||||||
|
return item;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setItem(RequirementItem item) {
|
||||||
|
this.item = item;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Workgroup getWorkgroup() {
|
||||||
|
return workgroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWorkgroup(Workgroup workgroup) {
|
||||||
|
this.workgroup = workgroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Workgroup getCentre() {
|
||||||
|
return centre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCentre(Workgroup centre) {
|
||||||
|
this.centre = centre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public User getOwnedBy() {
|
||||||
|
return ownedBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOwnedBy(User owner) {
|
||||||
|
this.ownedBy = owner;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,8 +1,11 @@
|
|||||||
package info.bukova.isspst.services.requirement;
|
package info.bukova.isspst.services.requirement;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import info.bukova.isspst.data.JoinedItem;
|
||||||
import info.bukova.isspst.data.Requirement;
|
import info.bukova.isspst.data.Requirement;
|
||||||
|
|
||||||
public interface RequirementService extends RequirementBaseService<Requirement>
|
public interface RequirementService extends RequirementBaseService<Requirement>
|
||||||
{
|
{
|
||||||
|
public List<JoinedItem> getItemsForOrder();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue