Package org.wso2.carbon.registry.social.api

Examples of org.wso2.carbon.registry.social.api.SocialDataException


                                          viewer);
                registry.put(resourcePath, ownerResource);
                result = true;
            } catch (RegistryException e) {
                log.error(e.getMessage(), e);
                throw new SocialDataException(
                        "Error while requesting relationship from " + viewer + " to " + owner, e);
            }
        }
        return result;
    }
View Full Code Here


           

        }
        catch (Exception e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException(
                    "Error while retrieving relationship status between users " + viewer + " and "
                    + owner, e);
        }
    }
View Full Code Here

                }               
            }
        }
        catch (RegistryException e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException(
                    "Error while retrieving pending relationship requests for user " + owner, e);
        }
        return result;
    }
View Full Code Here

                                             owner);
                registry.put(viewerResourcePath, resource);
            }
        } catch (RegistryException e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException(
                    "Error while accepting relationship request from " + owner + " to " + viewer, e);
        }
        return true;
    }
View Full Code Here

            System.arraycopy(result, 0, newResult, 0, index);
            }
        }
        catch (RegistryException e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException(
                    "Error while retrieving relationship list for user " + loggedUser, e);
        }
        return newResult;
    }
View Full Code Here

                }
                personDataMap.put(id, data);
            }
            catch (RegistryException e) {
                log.error(e.getMessage(), e);
                throw new SocialDataException(
                        "Error while retrieving app data with id " + appId + " for user " + id, e);
            }

        }
        return personDataMap;
View Full Code Here

                }
                registry.put(appDataResourcePath, appDataResource);
            }
        } catch (RegistryException e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException(
                    "Error while deleting app data with id " + appId + " for user " + userId, e);
        }
    }
View Full Code Here

            appDataResource = getAppDataAddedRegistryResource(appDataResource, values, isUpdate);
            registry.put(appDataResourcePath, appDataResource);

        } catch (RegistryException e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException(
                    "Error while saving app data with id " + appId + " for user " + userId, e);
        }
    }
View Full Code Here

    private static UserRealm userRealm = null;

    public static UserRealm getUserRealm() throws SocialDataException {
        if (userRealm == null) {
            throw new SocialDataException("UserRealm is null");
        } else {
            return userRealm;
        }
    }
View Full Code Here

        GadgetServerSocialDataMgtServiceContext.registryService = registryService;
    }

    public static Registry getRegistry() throws SocialDataException {
        if (registryService == null) {
            throw new SocialDataException("Registry is null");
        }
        try {
            return registryService.getConfigSystemRegistry();
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            throw new SocialDataException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.registry.social.api.SocialDataException

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.