Package org.dspace.app.cris.model

Examples of org.dspace.app.cris.model.CrisSubscription


        this.applicationService = applicationService;
    }
   
    public void unsubscribe(EPerson e, String uuid)
    {       
        CrisSubscription rpsub = applicationService.getSubscription(e.getID(),
                uuid);
        if (rpsub != null)
        {
            applicationService.delete(CrisSubscription.class, rpsub.getId());
        }
    }
View Full Code Here


    }
   
    public void subscribe(EPerson e, String uuid)
    {
       
        CrisSubscription rpsub = applicationService.getSubscription(e.getID(),
                uuid);
        if (rpsub == null)
        {
            rpsub = new CrisSubscription();
            rpsub.setEpersonID(e.getID());
            ACrisObject aco = applicationService.getEntityByUUID(uuid);
            rpsub.setTypeDef(aco.getType());
            rpsub.setUuid(uuid);
            applicationService.saveOrUpdate(CrisSubscription.class, rpsub);
        }
    }
View Full Code Here

TOP

Related Classes of org.dspace.app.cris.model.CrisSubscription

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.