Package org.apache.syncope.core.persistence.beans.user

Examples of org.apache.syncope.core.persistence.beans.user.SyncopeUser.generateToken()


    @Override
    protected void doExecute(final DelegateExecution execution) throws Exception {
        SyncopeUser user = (SyncopeUser) execution.getVariable(ActivitiUserWorkflowAdapter.SYNCOPE_USER);

        user.generateToken(
                Integer.parseInt(confDAO.find("token.length", "256").getValue()),
                Integer.parseInt(confDAO.find("token.expireTime", "60").getValue()));

        execution.setVariable(ActivitiUserWorkflowAdapter.SYNCOPE_USER, user);
    }
View Full Code Here


    @Override
    protected void doExecute(final DelegateExecution execution) throws Exception {
        SyncopeUser user = (SyncopeUser) execution.getVariable(ActivitiUserWorkflowAdapter.SYNCOPE_USER);

        user.generateToken(
                Integer.parseInt(confDAO.find("token.length", "256").getValue()),
                Integer.parseInt(confDAO.find("token.expireTime", "60").getValue()));

        execution.setVariable(ActivitiUserWorkflowAdapter.SYNCOPE_USER, user);
    }
View Full Code Here

    @Override
    protected void doExecute(final DelegateExecution execution) throws Exception {

        SyncopeUser user = (SyncopeUser) execution.getVariable(ActivitiUserWorkflowAdapter.SYNCOPE_USER);

        user.generateToken(Integer.parseInt(confDAO.find("token.length", "256").getValue()), Integer.parseInt(confDAO
                .find("token.expireTime", "60").getValue()));
    }
}
View Full Code Here

    @Override
    protected void doExecute(final String executionId) {
        SyncopeUser user =
                (SyncopeUser) runtimeService.getVariable(executionId, ActivitiUserWorkflowAdapter.SYNCOPE_USER);

        user.generateToken(
                confDAO.find("token.length", "256").getValues().get(0).getLongValue().intValue(),
                confDAO.find("token.expireTime", "60").getValues().get(0).getLongValue().intValue());

        runtimeService.setVariable(executionId, ActivitiUserWorkflowAdapter.SYNCOPE_USER, user);
    }
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.