Revision 101d7930
Added by Andreas Müller over 3 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java | ||
---|---|---|
847 | 847 |
return regOpt; |
848 | 848 |
} |
849 | 849 |
|
850 |
|
|
851 |
|
|
852 | 850 |
@EventBusListenerMethod(filter = ShowDetailsEventEntityTypeFilter.RegistrationDTO.class) |
853 | 851 |
public void onShowDetailsEventForRegistrationDTO(ShowDetailsEvent<RegistrationDTO, UUID> event) { |
854 | 852 |
|
... | ... | |
874 | 872 |
} |
875 | 873 |
} |
876 | 874 |
|
877 |
/** |
|
878 |
* {@inheritDoc} |
|
879 |
*/ |
|
880 | 875 |
@Override |
881 | 876 |
public ICdmEntityUuidCacher getCache() { |
882 | 877 |
return cache; |
883 | 878 |
} |
884 | 879 |
|
885 |
/** |
|
886 |
* {@inheritDoc} |
|
887 |
*/ |
|
888 | 880 |
@Override |
889 | 881 |
public void addRootEntity(CdmBase entity) { |
890 | 882 |
rootEntities.add(entity); |
891 | 883 |
cache.load(entity); |
892 | 884 |
} |
893 | 885 |
|
894 |
|
|
895 |
/** |
|
896 |
* {@inheritDoc} |
|
897 |
*/ |
|
898 | 886 |
@Override |
899 | 887 |
public Collection<CdmBase> getRootEntities() { |
900 | 888 |
return rootEntities; |
... | ... | |
906 | 894 |
disposeCache(); |
907 | 895 |
} |
908 | 896 |
|
909 |
/** |
|
910 |
* {@inheritDoc} |
|
911 |
*/ |
|
912 | 897 |
@Override |
913 | 898 |
public void disposeCache() { |
914 | 899 |
cache.dispose(); |
915 | 900 |
} |
916 | 901 |
|
917 |
/** |
|
918 |
* @param name |
|
919 |
* @return |
|
920 |
*/ |
|
921 | 902 |
public boolean canCreateNameRegistrationFor(TaxonName name) { |
922 | 903 |
return registrationWorkflowService.canCreateNameRegistrationFor(workingset, name); |
923 | 904 |
} |
924 | 905 |
|
925 |
/** |
|
926 |
* @param name |
|
927 |
* @return |
|
928 |
*/ |
|
929 | 906 |
public boolean checkWokingsetContainsProtologe(TaxonName name) { |
930 | 907 |
return registrationWorkflowService.checkWokingsetContainsProtologe(workingset, name); |
931 | 908 |
} |
932 |
|
|
933 |
} |
|
909 |
} |
Also available in: Unified diff
cleanup