Package org.wso2.carbon.messagebox

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


                                               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

                                               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

                                          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

            }
        } 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

            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

                                                 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

     */
    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

        try {
            UserRegistry userRegistry = Utils.getUserRegistry();
            userRegistry.delete(messageBoxResourcePath);
            userRegistry.delete(MessageBoxConstants.MB_QUEUE_STORAGE_PATH + "/" + messageBoxID.replaceFirst("/", "."));
        } catch (RegistryException e) {
            throw new MessageBoxException("Can not access the registry", e);
        }
    }
View Full Code Here

            permissionResource.addProperty(MessageBoxConstants.MB_REGISTRY_PROPERTY_OPERATIONS,
                                           operationsString.toString());

            userRegistry.put(permissionLabelResourcePath, permissionResource);
        } catch (RegistryException e) {
            throw new MessageBoxException("Can not access the registry", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.messagebox.MessageBoxException

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.