Package org.apache.slide.content

Examples of org.apache.slide.content.Content.store()


        nextWrnProp = new NodeProperty(I_NEXT_WORKINGRESOURCE_NAME,
                                       String.valueOf(nextWrnLong + 1),
                                       NamespaceCache.SLIDE_URI );
        wrpathNrd.setProperty( nextWrnProp );
       
        content.store( sToken, wrpath, wrpathNrd, null ); //revisionContent = null
                     
        return result;
    }
   
    /**
 
View Full Code Here


        nextHnProp = new NodeProperty(I_NEXT_HISTORY_NAME,
                                      String.valueOf(nextHnLong + 1),
                                      NamespaceCache.SLIDE_URI );
        hpathNrd.setProperty( nextHnProp );
       
        content.store( sToken, hpath, hpathNrd, null ); //revisionContent = null
                     
        return result;
    }
   
    /**
 
View Full Code Here

        nextWrnProp = new NodeProperty(I_NEXT_WORKINGRESOURCE_NAME,
                                       String.valueOf(nextWrnLong + 1),
                                       NamespaceCache.SLIDE_URI );
        wrpathNrd.setProperty( nextWrnProp );
       
        content.store( sToken, wrpath, wrpathNrd, null ); //revisionContent = null
                     
        return result;
    }
   
    /**
 
View Full Code Here

            }
            value = value + "<D:href xmlns:D='DAV:'>" + subjectUri + "</D:href>";
           
            descriptor.setProperty("group-member-set","DAV:",value);
            nat.begin();
            content.store(slideToken,objectUri,descriptor,null);
            nat.commit();
        }
        catch (ObjectNotFoundException e) {
            // no such user or group
        }
View Full Code Here

            String after  = value.substring(end+1);
            value = before + after;
           
            revision.setProperty("group-member-set","DAV:",value);
            nat.begin();
            content.store(slideToken,objectUri,revision,null);
            nat.commit();
        }
        catch (ObjectNotFoundException e) {
            // no such user or group
        }
View Full Code Here

            NodeRevisionDescriptors revisions = content.retrieve(slideToken, userUri);
            NodeRevisionDescriptor revision = content.retrieve(slideToken, revisions);
            revision.setLastModified(new Date());
            revision.setProperty(new NodeProperty("password", password, NodeProperty.SLIDE_NAMESPACE));
            content.store(slideToken, userUri, revision, null);

            nat.commit();
        }
        catch (Exception e) {
            try {
View Full Code Here

            }
            value = value + "<D:href xmlns:D='DAV:'>" + subjectUri + "</D:href>";
           
            descriptor.setProperty("group-member-set","DAV:",value);
            nat.begin();
            content.store(slideToken,objectUri,descriptor,null);
            nat.commit();
        }
        catch (ObjectNotFoundException e) {
            // no such user or group
        }
View Full Code Here

            String after  = value.substring(end+1);
            value = before + after;
           
            revision.setProperty("group-member-set","DAV:",value);
            nat.begin();
            content.store(slideToken,objectUri,revision,null);
            nat.commit();
        }
        catch (ObjectNotFoundException e) {
            // no such user or group
        }
View Full Code Here

            NodeRevisionDescriptors revisions = content.retrieve(slideToken, userUri);
            NodeRevisionDescriptor revision = content.retrieve(slideToken, revisions);
            revision.setLastModified(new Date());
            revision.setProperty(new NodeProperty("password", password, NodeProperty.SLIDE_NAMESPACE));
            content.store(slideToken, userUri, revision, null);

            nat.commit();
        }
        catch (Exception e) {
            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.