Examples of UnifiedRepositoryAccessDeniedException


Examples of org.pentaho.platform.api.repository2.unified.UnifiedRepositoryAccessDeniedException

public class AccessDeniedExceptionConverter implements ExceptionConverter {

  @Override
  public UnifiedRepositoryException convertException( final Exception exception, final String activityMessage,
      final String refNum ) {
    return new UnifiedRepositoryAccessDeniedException( Messages.getInstance().getString(
        "ExceptionLoggingDecorator.accessDeniedException", activityMessage, refNum ) ); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.pentaho.platform.api.repository2.unified.UnifiedRepositoryAccessDeniedException

    Assert.notNull( acl );
    RepositoryFile file = getFileById( acl.getId() );
    List<RepositoryFilePermission> perms = new ArrayList<RepositoryFilePermission>();
    perms.add( RepositoryFilePermission.ACL_MANAGEMENT );
    if ( !hasAccess( file.getPath(), EnumSet.copyOf( perms ) ) ) {
      throw new UnifiedRepositoryAccessDeniedException( Messages.getInstance().getString(
          "DefaultUnifiedRepository.ERROR_0001_ACCESS_DENIED_UPDATE_ACL", acl.getId() ) );
    }
    return repositoryFileAclDao.updateAcl( acl );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.