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