Examples of RequiredArgumentException


Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

        return _state;
    }

    public void setState(TaskState state) {
        if (state == null) {
            throw new RequiredArgumentException("state");
        }
        _state = state;
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

        }
    }

    public void setFailureCode(String failureCode) {
        if (failureCode == null) {
            throw new RequiredArgumentException("failureCode");
        }

        if (_state.equals(TaskState.FAILED)) {
            _failureCode = failureCode;
        } else {
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

        }
    }

    public void setFailureReason(String failureReason) {
        if (failureReason == null) {
            throw new RequiredArgumentException("failureReason");
        }

        if (_state.equals(TaskState.FAILED)) {
            _failureReason = failureReason;
        } else {
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

    public UserRoles(String userID, String[] assignedRoles) {
        this(userID, new AuthIdentifierSet(assignedRoles));
    }

    public UserRoles(String userID, AuthIdentifierSet assignedRoles) {
        if (userID == null) throw new RequiredArgumentException("userID");
        if (assignedRoles == null) throw new RequiredArgumentException("assignedRoles");
       
        _userID = AuthIdentifierNormalizer.normalizeAuthIdentifier(userID);
        _assignedRoles = assignedRoles;
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

    }

    public UserRoles authenticate(String participantToken) throws AuthException {
        if (participantToken == null) {
            throw new RequiredArgumentException("participantToken");
        }

        UserRoles credentials = _tokenMap.get(participantToken);
        if (credentials == null) {
            throw new AuthException("Failed to authenticate token: '" + participantToken + "'");
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

        return credentials;
    }

    public void addUserToken(String token, UserRoles credentials) {
        if (token == null) {
            throw new RequiredArgumentException("token");
        }
        if (credentials == null) {
            throw new RequiredArgumentException("credentials");
        }

        _tokenMap.put(token, credentials);
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

    }

    public static String normalizeAuthIdentifier(String sourceId) {
        if (sourceId == null) {
            throw new RequiredArgumentException("Invalid user id");
        }
        sourceId = sourceId.trim();
        for (int i=0; i<sourceId.length(); i++) {
            if ("/|:".indexOf(sourceId.charAt(i)) >=0 )
                sourceId = sourceId.substring(0,i) + '\\' + sourceId.substring(i+1);
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

    private String _namespacePrefix;

    protected OMUnmarshaller(String namespaceURI, String namespacePrefix) {
        if (namespaceURI == null) {
            throw new RequiredArgumentException("namespaceURI");
        }
        if (namespacePrefix == null) {
            throw new RequiredArgumentException("namespacePrefix");
        }
        _namespaceURI = namespaceURI;
        _namespacePrefix = namespacePrefix;
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

    private OMFactory _omFactory;
    private OMNamespace _omNamespace;

    protected OMMarshaller(OMFactory omFactory, OMNamespace omNamespace) {
        if (omFactory == null) {
            throw new RequiredArgumentException("omFactory");
        }
        if (omNamespace == null) {
            throw new RequiredArgumentException("omNamespace");
        }
        _omFactory = omFactory;
        _omNamespace = omNamespace;
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException

    private Queue<OMElement> _queue = new LinkedList<OMElement>();

    public OMElementQueue(OMElement parent) {
        if (parent == null) {
            throw new RequiredArgumentException("parent");
        }
        if (!parent.isComplete()) {
            parent.build();
        }
        _iterator = parent.getChildElements();
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.