Package org.wso2.carbon.identity.base

Examples of org.wso2.carbon.identity.base.IdentityException


    private static Log log = LogFactory.getLog(PolicyStore.class);

    public PolicyStore(Registry registry) throws IdentityException {
        if (registry == null) {
            log.error("Registry reference not set");
            throw new IdentityException("Registry reference not set");
        }
        this.registry = registry;
    }
View Full Code Here


                }
            }

        } catch (RegistryException e) {
            log.error("Error while retrieving active entitlement policies", e);
            throw new IdentityException("Error while retrieving active entitlement policies", e);
        }

        return resources.toArray(new Resource[resources.size()]);
    }
View Full Code Here

                resources.add(registry.get(children[i]));
            }

        } catch (RegistryException e) {
            log.error("Error while retrieving entitlement policy", e);
            throw new IdentityException("Error while retrieving entitlement policies", e);
        }

        return resources.toArray(new Resource[resources.size()]);
    }
View Full Code Here

                return null;
            }
            return registry.get(path);
        } catch (RegistryException e) {
            log.error("Error while retrieving entitlement policy", e);
            throw new IdentityException("Error while retrieving entitlement policy", e);
        }
    }
View Full Code Here

            }
            registry.put(path, resource);

        } catch (RegistryException e) {
            log.error("Error while creating or updating entitlement policy", e);
            throw new IdentityException("Error while creating or updating entitlement policy", e);
        }
    }
View Full Code Here

                return;
            }
            registry.delete(path);
        } catch (RegistryException e) {
            log.error("Error while removing entitlement policy", e);
            throw new IdentityException("Error while removing policy", e);
        }
    }
View Full Code Here

                return null;
            }
            return registry.get(path);
        } catch (RegistryException e) {
            log.error("Error while retrieving entitlement policy resources", e);
            throw new IdentityException("Error while retrieving entitlement policy resources", e);
        }
    }
View Full Code Here

                    registry.put(path, resource);
                }
            }
        } catch (IdentityException e) {
            log.error("Error while writing entitlement policy resources", e);
            throw new IdentityException("Error while writing entitlement policy resources", e);
        } catch (RegistryException e) {
            log.error("Error while writing entitlement policy resources", e);
            throw new IdentityException("Error while writing entitlement policy resources", e);
        }
    }
View Full Code Here

                T obj = resourceToObject(resource);
                list.add(obj);
            }
        } catch (RegistryException e) {
            log.error("Error while retreving all objects from the registry path", e);
            throw new IdentityException("Error while retreving all objects from the registry path",
                    e);
        }

        return list;
    }
View Full Code Here

                retList.add(resourceToObject(resource));
            }
        } catch (RegistryException e) {
            String message = "Error while retreving all objects from the registry path  with property values";
            log.error(message, e);
            throw new IdentityException(message, e);
        }
        return retList;
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.identity.base.IdentityException

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.