Package org.wso2.carbon.registry.core

Examples of org.wso2.carbon.registry.core.Resource.addAspect()


        String path = request.getParameter("path");
        String aspect = request.getParameter("aspect");

       
        LifecycleServiceClient lifecycleServiceClient = new LifecycleServiceClient(config, request.getSession());
        lifecycleServiceClient.addAspect(path, aspect);
    }
}
View Full Code Here


                Aspect aspect = getAspect(aspectName);
                if (aspect == null) {
                    throw new RegistryException("Couldn't find aspectName '" + aspectName + "'");
                }
                aspect.associate(resource, this);
                resource.addAspect(aspectName);
                put(resource.getPath(), resource);
                registryContext.getLogWriter().addLog(
                        resource.getPath(), CurrentSession.getUser(), LogEntry.ASSOCIATE_ASPECT,
                        aspectName);
            }
View Full Code Here

        final String RESOURCE = "/r1";
        final String LIFECYCLE = "simpleLifecycle";

        RegistryContext context = registry.getRegistryContext();
        context.selectDBConfig("h2-db");
        context.addAspect(LIFECYCLE, new SimpleLifecycle(), 0);

        String [] aspects = registry.getAvailableAspects();
        assertTrue(aspects.length > 0);
        boolean found = false;
        for (String aspect : aspects) {
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.