Esempio n. 1
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') "
         + "or hasPermission(#parentId,'com.ewcms.core.site.model.Channel',new String[]{'ADMIN','CREATE'})")
 @Override
 public Integer addChannel(Integer parentId, String name) {
   return channelService.addChannel(parentId, name);
 }
Esempio n. 2
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') "
         + "or hasPermission(#id,'com.ewcms.core.site.model.Channel',new String[]{'ADMIN','DELETE'})")
 @Override
 public void delChannel(Integer id) {
   channelService.delChannel(id);
 }
Esempio n. 3
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') "
         + "or hasPermission(#id,'com.ewcms.core.site.model.Channel',new String[]{'ADMIN','UPDATE'})")
 @Override
 public void renameChannel(Integer id, String name) {
   channelService.renameChannel(id, name);
 }
Esempio n. 4
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') or hasPermission(#id,'com.ewcms.core.site.model.Channel','ADMIN')")
 @Override
 public void removePermission(Integer id, String name) {
   channelService.removePermission(id, name);
 }
Esempio n. 5
0
 @Override
 public void delAppChannel(Integer channelId, Integer appChannelId) {
   channelService.delAppChannel(channelId, appChannelId);
 }
Esempio n. 6
0
 @Override
 public List<Integer> findAssociatedChannel(Integer channelId) {
   return channelService.findAppChannel(channelId);
 }
Esempio n. 7
0
 @PreAuthorize("isAuthenticated()")
 @Override
 public Acl findAclOfChannel(final Channel channel) {
   return channelService.findAclOfChannel(channel);
 }
Esempio n. 8
0
 public void exportChannelZip(Integer channelId, ZipOutputStream zos, String channelPath) {
   channelService.exportChannelZip(channelId, zos, channelPath);
 }
Esempio n. 9
0
 @Override
 public List<Channel> getChannelChildren(Integer parentId) {
   return channelService.getChannelChildren(parentId);
 }
Esempio n. 10
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') or hasPermission(#id,'com.ewcms.core.site.model.Channel','ADMIN')")
 @Override
 public void forceRelease(Integer channelId, Boolean children) throws PublishException {
   channelService.forceRelease(channelId, children);
 }
Esempio n. 11
0
 @Override
 public ChannelNode channelNodeRoot() {
   return channelService.channelNodeRoot();
 }
Esempio n. 12
0
 @PreAuthorize("isAuthenticated()")
 @Override
 public Channel getChannelRoot() {
   return channelService.getChannelRoot();
 }
Esempio n. 13
0
 @Override
 public Channel getChannel(Integer id) {
   return channelService.getChannel(id);
 }
Esempio n. 14
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') " + "or hasPermission(#channel,new String[]{'ADMIN','UPDATE'})")
 @Override
 public Integer updChannel(Channel vo) {
   return channelService.updChannel(vo);
 }
Esempio n. 15
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') or hasPermission(#id,'com.ewcms.core.site.model.Channel','ADMIN')")
 @Override
 public void updateInheriting(Integer id, boolean inheriting) {
   channelService.updateInheriting(id, inheriting);
 }
Esempio n. 16
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') or hasPermission(#id,'com.ewcms.core.site.model.Channel','ADMIN')")
 @Override
 public void moveSortChannel(Integer channelId, Integer parentId, Long sort) {
   channelService.moveSortChannel(channelId, parentId, sort);
 }
Esempio n. 17
0
 @Override
 public Set<Permission> getPermissionsById(int id) {
   return channelService.getPermissionsById(id);
 }
Esempio n. 18
0
 @PreAuthorize("isAuthenticated()")
 @Override
 public List<ChannelNode> getChannelChildren(Integer parentId, Boolean publicenable) {
   return channelService.getChannelChildren(parentId, publicenable);
 }