Package org.wso2.carbon.registry.core.session

Examples of org.wso2.carbon.registry.core.session.UserRegistry.addComment()


        return CommentBeanPopulator.populate(registry, path);
    }

    public void addComment(String comment, String path, String sessionId) throws RegistryException {
        UserRegistry registry = (UserRegistry) getRootRegistry();
        registry.addComment(path, new Comment(comment));
    }
   
    public void removeComment(String commentPath, String sessionId) throws RegistryException  {
       UserRegistry registry = (UserRegistry) getRootRegistry();
         registry.removeComment(commentPath);
View Full Code Here


        String c2 =
                adminReg.addComment("/CRTest/r2",
                        new Comment("administrator's comment on /CRTest/r2"));

        String c3 =
                cu1Reg.addComment("/CRTest/r1", new Comment("cu1's comment on /CRTest/r1"));

        String c4 =
                cu1Reg.addComment("/CRTest/r2", new Comment("cu1's comment on /CRTest/r2"));

        cu1Reg.delete(c1);
View Full Code Here

        String c3 =
                cu1Reg.addComment("/CRTest/r1", new Comment("cu1's comment on /CRTest/r1"));

        String c4 =
                cu1Reg.addComment("/CRTest/r2", new Comment("cu1's comment on /CRTest/r2"));

        cu1Reg.delete(c1);

        boolean failed = false;
        try {
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.