Examples of SlideToken


Examples of org.apache.slide.common.SlideToken

     *
     * @return     the ViolatedPrecondition (if any).
     */
    protected ViolatedPrecondition getCheckinPreconditionViolation(NodeProperty predSetProp, NodeRevisionDescriptors vhrNrds, boolean isForkOk, NodeRevisionDescriptor autoUpdNrd ) throws LinkedObjectNotFoundException, ServiceAccessException, ObjectLockedException, RevisionDescriptorNotFoundException, JDOMException, IllegalArgumentException, ObjectNotFoundException, AccessDeniedException, IOException {
        // use a non-blocking slide token.
        SlideToken stok = readonlySlideToken();
       
        ViolatedPrecondition violatedPrecondition = null;
       
        if ( (predSetProp != null) && (predSetProp.getValue() != null) ) {
            XMLValue predecessors = new XMLValue( (String)predSetProp.getValue() );
View Full Code Here

Examples of org.apache.slide.common.SlideToken

            credentials = new CredentialsToken("");
        } else {
            credentials = new CredentialsToken(principal);
        }
       
        SlideToken token = new SlideTokenImpl(credentials);
        token.setEnforceLockTokens(true);
       
        return token;
    }
View Full Code Here

Examples of org.apache.slide.common.SlideToken

     */
    private void checkPreconditions() throws PreconditionViolationException, ServiceAccessException {
        resp.setStatus( WebdavStatus.SC_OK );
       
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
    }
View Full Code Here

Examples of org.apache.slide.common.SlideToken

     */
    private ViolatedPrecondition getPreconditionViolation(NodeRevisionDescriptors revisionDescriptors, NodeRevisionDescriptor revisionDescriptor, ResourceKind resourceKind)
        throws ServiceAccessException {
       
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        if( Configuration.useVersionControl() ) {
           
            if (resourceKind instanceof CheckedInVersionControlled) {
               
View Full Code Here

Examples of org.apache.slide.common.SlideToken

     *
     * @throws     SlideException
     */
    protected ViolatedPrecondition getPreconditionViolation(String updateSourcePath, String updateSourceLabel, String resourcePath) throws SlideException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();

        ViolatedPrecondition violatedPrecondition = null;

        NodeRevisionDescriptors revisionDescriptors =
            content.retrieve(stoken, resourcePath);
View Full Code Here

Examples of org.apache.slide.common.SlideToken

    /**
     * Return true if the store should also be enlisted for a read operation.
     */
    protected boolean isForceStoreEnlistment(Uri uri) {
       
        SlideToken token = uri.getToken();
       
        if (token == null)
            return false;
       
        return token.isForceStoreEnlistment();
       
    }
View Full Code Here

Examples of org.apache.slide.common.SlideToken

     * @exception WebdavException
     */
    protected Element getPropertiesOfObject(String resourceUri)
        throws WebdavException {
       
        SlideToken lightSToken = new SlideTokenWrapper(slideToken, false);
        lightSToken.setForceLock(false);
       
        // evaluate "Label" header
        if (Configuration.useVersionControl()) {
            try {
                resourceUri = versioningHelper.getLabeledResourceUri(resourceUri, labelHeader);
View Full Code Here

Examples of org.apache.slide.common.SlideToken

        overwrite = requestHeaders.getOverwrite(true);
    }

    private void checkPreconditions() throws PreconditionViolationException, ServiceAccessException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        resp.setStatus( WebdavStatus.SC_CREATED );
        UriHandler sourceUh = UriHandler.getUriHandler(sourceUri);
        UriHandler sourceParentUh = sourceUh.getParentUriHandler();
        sourceSegment = sourceUh.getName();
View Full Code Here

Examples of org.apache.slide.common.SlideToken

                               String password) throws Exception {
       
        String usersPath = nat.getNamespaceConfig().getUsersPath();
        String userUri = usersPath + "/" + username;
       
        SlideToken slideToken = new SlideTokenImpl(new CredentialsToken(caller));
        Structure structure = nat.getStructureHelper();
        Content content = nat.getContentHelper();
       
        try {
           
View Full Code Here

Examples of org.apache.slide.common.SlideToken

                                String groupname) throws Exception {
       
        String groupsPath = nat.getNamespaceConfig().getGroupsPath();
        String groupUri = groupsPath + "/" + groupname;
       
        SlideToken slideToken = new SlideTokenImpl(new CredentialsToken(caller));
        Structure structure = nat.getStructureHelper();
        Content content = nat.getContentHelper();
       
        try {
            nat.begin();
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.