Search in sources :

Example 6 with AdvanceOrderImpl

use of org.olat.resource.accesscontrol.provider.auto.model.AdvanceOrderImpl in project openolat by klemens.

the class AutoAccessManagerImplTest method getPendingAdvanceOrders.

private Collection<AdvanceOrder> getPendingAdvanceOrders() {
    Collection<AdvanceOrder> advanceOrders;
    AdvanceOrderImpl ao1 = new AdvanceOrderImpl();
    ao1.setIdentifierKey(IdentifierKey.internalId);
    ao1.setIdentifierValue("abc");
    ao1.setStatus(Status.PENDING);
    ao1.setMethod(accessMethodDummy);
    ao1.setIdentity(IDENTITY);
    AdvanceOrderImpl ao2 = new AdvanceOrderImpl();
    ao2.setIdentifierKey(IdentifierKey.internalId);
    ao2.setIdentifierValue("abc3");
    ao2.setStatus(Status.PENDING);
    ao2.setMethod(accessMethodDummy);
    ao2.setIdentity(IDENTITY);
    advanceOrders = Arrays.asList(ao1, ao2);
    return advanceOrders;
}
Also used : AdvanceOrder(org.olat.resource.accesscontrol.provider.auto.AdvanceOrder) AdvanceOrderImpl(org.olat.resource.accesscontrol.provider.auto.model.AdvanceOrderImpl)

Aggregations

AdvanceOrderImpl (org.olat.resource.accesscontrol.provider.auto.model.AdvanceOrderImpl)6 AdvanceOrder (org.olat.resource.accesscontrol.provider.auto.AdvanceOrder)4 ArrayList (java.util.ArrayList)2 Date (java.util.Date)2 Test (org.junit.Test)2 IdentifierKey (org.olat.resource.accesscontrol.provider.auto.IdentifierKey)2