Examples of KeyedMessage


Examples of org.apache.jetspeed.i18n.KeyedMessage

           
            getPersistenceBrokerTemplate().store(internalPrincipal);
        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("PermissionManager.grantPermission",
                                                                   "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(internalPrincipal);
                    }
                    catch (Exception e)
                    {
                        KeyedMessage msg = SecurityException.UNEXPECTED.create("PermissionManager.revokePermission",
                                                                               "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(internal);           
        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("PermissionManager.updatePermission",
                                                                   "store", e.getMessage());
            logger.error(msg, e);           
            throw new SecurityException(msg, e);
        }
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

                }
            }
        }
        catch (SecurityException se)
        {
            KeyedMessage msg =
                SecurityException.UNEXPECTED.create("RoleManager.addRole",
                                                    "RoleSecurityHandler.setRolePrincipal("+rolePrincipal.getName()+")",
                                                    se.getMessage());
            log.error(msg, se);
View Full Code Here

Examples of org.apache.jetspeed.i18n.KeyedMessage

                roleSecurityHandler.removeRolePrincipal(new RolePrincipalImpl(RolePrincipalImpl
                        .getPrincipalNameFromFullPath(roles[i])));
            }
            catch (Exception e)
            {
                KeyedMessage msg =
                    SecurityException.UNEXPECTED.create("RoleManager.removeRole",
                                                        "RoleSecurityHandler.removeRolePrincipal("+RolePrincipalImpl.getPrincipalNameFromFullPath(roles[i])+")",
                                                        e.getMessage());
                log.error(msg, e);
                throw new SecurityException(msg, e);
            }
            // Remove preferences
            Preferences rolePref = Preferences.userRoot().node(roles[i]);
            try
            {
                rolePref.removeNode();
            }
            catch (BackingStoreException bse)
            {
                KeyedMessage msg =
                    SecurityException.UNEXPECTED.create("RoleManager.removeRole",
                                                        "Preferences.removeNode("+roles[i]+")",
                                                        bse.getMessage());
                log.error(msg, bse);
                throw new SecurityException(msg, bse);
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

Examples of org.apache.jetspeed.i18n.KeyedMessage

           
            getPersistenceBrokerTemplate().store(internalPrincipal);
        }
        catch (Exception e)
        {
            KeyedMessage msg = SecurityException.UNEXPECTED.create("PermissionManager.grantPermission",
                                                                   "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(internalPrincipal);
                    }
                    catch (Exception e)
                    {
                        KeyedMessage msg = SecurityException.UNEXPECTED.create("PermissionManager.revokePermission",
                                                                               "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.