Package org.ejbca.core.ejb.authorization

Examples of org.ejbca.core.ejb.authorization.AdminGroupData


    @Override
    public void removeAdminEntities(final Admin admin, final String admingroupname, final Collection<AdminEntity> adminentities) {
        if (!admingroupname.equals(AdminGroup.DEFAULTGROUPNAME)) {
            try {
                final AdminGroupData agdl = AdminGroupData.findByGroupName(entityManager, admingroupname);
                if (agdl == null) {
                    throw new FinderException("Could not find admin group " + admingroupname);
                }
                agdl.removeAdminEntities(entityManager, adminentities);
                authTreeSession.signalForAuthorizationTreeUpdate();
                final String msg = INTRES.getLocalizedMessage("authorization.adminremoved", admingroupname);
                logSession.log(admin, LogConstants.INTERNALCAID, LogConstants.MODULE_RA, new java.util.Date(), null, null,
                        LogConstants.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES, msg);
            } catch (Exception e) {
View Full Code Here


  }

  public void testAdminGroupData() {
    LOG.trace(">testAdminGroupData");
    logMemStats();
    AdminGroupData entity = new AdminGroupData();
    entity.setAdminGroupName(VARCHAR_250B);
    entity.setCaId(BOGUS_INT);
    entity.setPrimeKey(BOGUS_INTEGER);
    entity.setRowProtection(CLOB_10KiB);
    entity.setRowVersion(0);
    storeAndRemoveEntity(entity);
    LOG.trace("<testAdminGroupData");
  }
View Full Code Here

TOP

Related Classes of org.ejbca.core.ejb.authorization.AdminGroupData

Copyright © 2018 www.massapicom. 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.