Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #5
0
 @Override
 public void delAppChannel(Integer channelId, Integer appChannelId) {
   channelService.delAppChannel(channelId, appChannelId);
 }
Beispiel #6
0
 @Override
 public List<Integer> findAssociatedChannel(Integer channelId) {
   return channelService.findAppChannel(channelId);
 }
Beispiel #7
0
 @PreAuthorize("isAuthenticated()")
 @Override
 public Acl findAclOfChannel(final Channel channel) {
   return channelService.findAclOfChannel(channel);
 }
Beispiel #8
0
 public void exportChannelZip(Integer channelId, ZipOutputStream zos, String channelPath) {
   channelService.exportChannelZip(channelId, zos, channelPath);
 }
Beispiel #9
0
 @Override
 public List<Channel> getChannelChildren(Integer parentId) {
   return channelService.getChannelChildren(parentId);
 }
Beispiel #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);
 }
Beispiel #11
0
 @Override
 public ChannelNode channelNodeRoot() {
   return channelService.channelNodeRoot();
 }
Beispiel #12
0
 @PreAuthorize("isAuthenticated()")
 @Override
 public Channel getChannelRoot() {
   return channelService.getChannelRoot();
 }
Beispiel #13
0
 @Override
 public Channel getChannel(Integer id) {
   return channelService.getChannel(id);
 }
Beispiel #14
0
 @PreAuthorize(
     "hasRole('ROLE_ADMIN') " + "or hasPermission(#channel,new String[]{'ADMIN','UPDATE'})")
 @Override
 public Integer updChannel(Channel vo) {
   return channelService.updChannel(vo);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #17
0
 @Override
 public Set<Permission> getPermissionsById(int id) {
   return channelService.getPermissionsById(id);
 }
Beispiel #18
0
 @PreAuthorize("isAuthenticated()")
 @Override
 public List<ChannelNode> getChannelChildren(Integer parentId, Boolean publicenable) {
   return channelService.getChannelChildren(parentId, publicenable);
 }