Examples of KeyedMessage


Examples of org.apache.jetspeed.i18n.KeyedMessage

            }
            getPersistenceBrokerTemplate().store(internalUser);
        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("SecurityAccess.setInternalUserPrincipal",
                                                                   "store",
                                                                   e.getMessage());
            logger.error(msg, e);
            throw new SecurityException(msg, e);
        }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

            }

        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("SecurityAccess.removeInternalUserPrincipal",
                                                                   "store",
                                                                   e.getMessage());
            logger.error(msg, e);
            throw new SecurityException(msg, e);
        }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

            }
            getPersistenceBrokerTemplate().store(internalRole);
        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("SecurityAccess.setInternalRolePrincipal",
                                                                   "store",
                                                                   e.getMessage());
            logger.error(msg, e);
            throw new SecurityException(msg, e);
        }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

            }

        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("SecurityAccess.removeInternalRolePrincipal",
                                                                   "store",
                                                                   e.getMessage());
            logger.error(msg, e);
            throw new SecurityException(msg, e);
        }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

            }
            getPersistenceBrokerTemplate().store(internalGroup);
        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("SecurityAccess.setInternalGroupPrincipal",
                                                                   "store",
                                                                   e.getMessage());
            logger.error(msg, e);        
            throw new SecurityException(msg, e);
        }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

            }

        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("SecurityAccess.removeInternalGroupPrincipal",
                                                                   "store",
                                                                   e.getMessage());
            logger.error(msg, e);
            throw new SecurityException(msg, e);
        }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

      String oldCredential = (String)env.get(Context.SECURITY_CREDENTIALS);
      String oldUsername = (String)env.get(Context.SECURITY_PRINCIPAL);
           
      String dn = lookupByUid(uid);
            if ( dn == null )
        throw new SecurityException(new KeyedMessage("User " + uid + " not found"));
           
            // Build user dn using lookup value, just appending the user filter after the uid won't work when users
            // are/can be stored in a subtree (searchScope sub-tree)
            // The looked up dn though is/should always be correct, just need to append the root context.
            if (!StringUtils.isEmpty(getRootContext()))
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

        {           
            getPersistenceBrokerTemplate().store(internalPermission);           
        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("PermissionManager.addPermission",
                                                                   "store", e.getMessage());
            logger.error(msg, e);           
            throw new SecurityException(msg, e);
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

                // Remove permission.
                getPersistenceBrokerTemplate().delete(internalPermission);
            }
            catch (Exception e)
            {
                KeyedMessage msg = SecurityException.UNEXPECTED.create("PermissionManager.removePermission",
                                                                       "delete", e.getMessage());
                logger.error(msg, e);           
                throw new SecurityException(msg, e);
            }
        }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

               
                getPersistenceBrokerTemplate().store(internalPrincipal);
            }
            catch (Exception e)
            {
                KeyedMessage msg = SecurityException.UNEXPECTED.create("PermissionManager.removePermissions",
                                                                       "store", e.getMessage());
                logger.error(msg, e);               
                throw new SecurityException(msg, e);
            }
        }
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.