Package org.apache.slide.common

Examples of org.apache.slide.common.SlideToken


        if (upperNode.hasBinding(lowerNode)) {
            return true;
        }

        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        NodeRevisionDescriptors lowerNrds = null;
        NodeRevisionDescriptor lowerNrd = null;
        try {
            lowerNrds = content.retrieve(stoken, lowerNode.getUri());
View Full Code Here


    }

    protected boolean exists( String uriStr ) throws SlideException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();

        boolean destinationExists = true;
       
        try {
            content.retrieve(stoken, uriStr);
View Full Code Here

        return destinationExists;
    }

    protected boolean isLocked( String uriStr ) throws ServiceAccessException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();

        boolean isLocked = false;
        try {
            Enumeration locks = lock.enumerateLocks (stoken, uriStr, false);
            while (locks.hasMoreElements()) {
View Full Code Here

        return isLocked;
    }

    protected boolean isLockNull( String uriStr ) throws ServiceAccessException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();

        boolean isLockNull = false;
        try {
            NodeRevisionDescriptor nrd =
                content.retrieve(stoken, content.retrieve(stoken, uriStr));
View Full Code Here

    protected boolean isLockNull( NodeRevisionDescriptor nrd ) {
        return nrd.propertyValueContains(P_RESOURCETYPE, E_LOCKNULL);
    }

    protected SlideToken readonlySlideToken() {
        SlideToken stoken = slideToken;
        if (stoken.isForceStoreEnlistment()) {
            stoken = new SlideTokenWrapper(slideToken, false);
        }
        return stoken;
    }
View Full Code Here

     */
    private void checkPreconditions() throws PreconditionViolationException, ServiceAccessException {
        resp.setStatus( WebdavStatus.SC_CREATED );

        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();

        try {
            collectionNode = structure.retrieve( stoken, collectionUri );
        }
        catch( ServiceAccessException e ) {
View Full Code Here

       
        XMLValue xmlValue = new XMLValue();
       
        ResourceKind resourceKind = AbstractResourceKind.determineResourceKind(nsaToken, revisionDescriptors, revisionDescriptor);
        if (resourceKind instanceof Version) {
            SlideToken sTokenNoEnlist = sToken;
            if (sToken.isForceStoreEnlistment()) {
                sTokenNoEnlist = new SlideTokenWrapper(sToken, false);
            }
           
            String resourcePath = VersioningHelper.getUri(nsaToken,
View Full Code Here

       
        XMLValue xmlValue = new XMLValue();
       
        ResourceKind resourceKind = AbstractResourceKind.determineResourceKind(nsaToken, revisionDescriptors, revisionDescriptor);
        if (resourceKind instanceof Workspace) {
            SlideToken sTokenNoEnlist = sToken;
            if (sToken.isForceStoreEnlistment()) {
                sTokenNoEnlist = new SlideTokenWrapper(sToken, false);
            }
           
            Element basicSearch = getWorkspaceCheckoutSetQueryElement(revisionDescriptors.getUri());
View Full Code Here

     * @param role Security role to be checked
     */
    public boolean hasRole(Principal principal, String role) {

        CredentialsToken credToken = new CredentialsToken(principal);
        SlideToken slideToken = new SlideTokenImpl(credToken);
        try {
            return securityHelper.hasRole(slideToken, role);
        } catch (SlideException e) {
            return (false);
        }
View Full Code Here

     */
    protected String getPassword(String username) {
       
        Principal userPrincipal = getPrincipal(username);
        CredentialsToken credToken = new CredentialsToken(userPrincipal);
        SlideToken slideToken = new SlideTokenImpl(credToken);
       
        // Fetch the Slide object representing the user.
        try {
           
            ObjectNode user = securityHelper.getPrincipal(slideToken);
View Full Code Here

TOP

Related Classes of org.apache.slide.common.SlideToken

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.