Examples of MessageBoxException


Examples of org.wso2.carbon.messagebox.MessageBoxException

            return authorizationManager.isUserAuthorized(loggedInUser, messageBoxPath, operation);
        } catch (UserStoreException e) {
            String error = "Failed to check is " + loggedInUser + " authorized to " + operation +
                           " to " + messageBoxId;
            log.error(error);
            throw new MessageBoxException(error, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

            return authorizationManager.isUserAuthorized(userName, messageBoxPath, operation);
        } catch (UserStoreException e) {
            String error = "Failed to check is " + userName + " authorized to " + operation +
                           " to " + messageBoxId;
            log.error(error);
            throw new MessageBoxException(error, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

            }
        } catch (UserStoreException e) {
            String error = "Failed to add permissions to " + messageBoxId + " with permission label "
                           + permissionLabel.getLabelName();
            log.error(error);
            throw new MessageBoxException(error, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

                                               MessageBoxConstants.SQS_OPERATION_SEND_MESSAGE);

        } catch (UserStoreException e) {
            String error = "Failed to add permissions to admin role for message box " + messageBoxId;
            log.error(error);
            throw new MessageBoxException(error, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

                                               MessageBoxConstants.SQS_OPERATION_SEND_MESSAGE);

        } catch (UserStoreException e) {
            String error = "Failed to allow permissions to user " + user + " for message box " + messageBoxId;
            log.error(error);
            throw new MessageBoxException(error, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

                                          MessageBoxConstants.SQS_OPERATION_SEND_MESSAGE);

        } catch (UserStoreException e) {
            String error = "Failed to deny permissions to user" + user + " for message box " + messageBoxId;
            log.error(error);
            throw new MessageBoxException(error, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

            }
        } catch (UserStoreException e) {
            String error = "Failed to clear permissions authorized for " + messageBoxId +
                           " with permission label " + permissionLabel.getLabelName();
            log.error(error);
            throw new MessageBoxException(error, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

            MessageBoxDetails messageBoxDetails =
                    new MessageBoxDetails(messageBoxId, userName, visibilityTimeOut, 0);
            messageBoxDetails.setCreatedTimeStamp(createdTimestamp);
            return messageBoxDetails;
        } catch (RegistryException e) {
            throw new MessageBoxException("Can not access the user registry ", e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

                                                 userCollection.getProperty(entry.getKey().toString()),
                                                 entry.getValue().toString());
            }

        } catch (RegistryException e) {
            throw new MessageBoxException("Can not access the user registry ", e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.messagebox.MessageBoxException

     */
    public boolean isMessageBoxExists(String messageBoxID) throws MessageBoxException {
        try {
            return Utils.getUserRegistry().resourceExists(getMessageBoxResourcePath(messageBoxID));
        } catch (RegistryException e) {
            throw new MessageBoxException("Can not find the resource ", 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.