Examples of JcrCallback


Examples of org.springframework.extensions.jcr.JcrCallback

  public IPentahoUser createUser( final ITenant tenant, final String userName, final String password,
      final String description, final String[] roles ) throws AlreadyExistsException,
    UncategorizedUserRoleDaoException {
    final IPentahoUser user;
    try {
      user = (IPentahoUser) adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          return createUser( session, tenant, userName, password, description, roles );
        }
      } );
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  }

  @Override
  public void deleteRole( final IPentahoRole role ) throws NotFoundException, UncategorizedUserRoleDaoException {
    try {
      adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          deleteRole( session, role );
          return null;
        }
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  }

  @Override
  public void deleteUser( final IPentahoUser user ) throws NotFoundException, UncategorizedUserRoleDaoException {
    try {
      adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          deleteUser( session, user );
          return null;
        }
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  @Override
  public void setRoleDescription( final ITenant tenant, final String roleName, final String description )
    throws NotFoundException, UncategorizedUserRoleDaoException {
    try {
      adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          setRoleDescription( session, tenant, roleName, description );
          return null;
        }
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  @Override
  public void setUserDescription( final ITenant tenant, final String userName, final String description )
    throws NotFoundException, UncategorizedUserRoleDaoException {
    try {
      adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          setUserDescription( session, tenant, userName, description );
          return null;
        }
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  @Override
  public void setPassword( final ITenant tenant, final String userName, final String password )
    throws NotFoundException, UncategorizedUserRoleDaoException {
    try {
      adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          setPassword( session, tenant, userName, password );
          return null;
        }
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  @Override
  public List<IPentahoRole> getRoles( final ITenant tenant, final boolean includeSubtenants )
    throws UncategorizedUserRoleDaoException {
    try {
      return (List<IPentahoRole>) adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          return getRoles( session, tenant, includeSubtenants );
        }
      } );
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  @Override
  public List<IPentahoUser> getUsers( final ITenant tenant, final boolean includeSubtenants )
    throws UncategorizedUserRoleDaoException {
    try {
      return (List<IPentahoUser>) adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          return getUsers( session, tenant, includeSubtenants );
        }
      } );
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  }

  @Override
  public IPentahoRole getRole( final ITenant tenant, final String name ) throws UncategorizedUserRoleDaoException {
    try {
      return (IPentahoRole) adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          return getRole( session, tenant, name );
        }
      } );
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrCallback

  }

  @Override
  public IPentahoUser getUser( final ITenant tenant, final String name ) throws UncategorizedUserRoleDaoException {
    try {
      return (IPentahoUser) adminJcrTemplate.execute( new JcrCallback() {
        @Override
        public Object doInJcr( Session session ) throws IOException, RepositoryException {
          return getUser( session, tenant, name );
        }
      } );
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.