Hi Monika,

I don't recall such a method, and I'm not seeing one on the version 1.8 Bundle class:
https://github.com/DSpace/DSpace/blob/dspace-1_8_x/dspace-api/src/main/java/org/dspace/content/Bundle.java

Perhaps this was something custom you added?

In any case, Embargoes in 5.x are now stored in ResourcePolicies. Specially, an embargoed item has a public ResourcePolicy which has a start_date = embargo date. That means the Item is "dark" until the start_date passes, at which point it becomes public. There are some basic details in the docs at:
https://wiki.duraspace.org/display/DSDOC5x/Embargo#Embargo-TechnicalSpecifications

So, if you are looking for whether something is under embargo, you'd want to check its ResourcePolicies (a ResourcePolicy can be applied to any object). Here's the ResourcePolicy class:
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/authorize/ResourcePolicy.java

Hopefully that helps clarify embargoes. If you have a more specific use case in mind here, you could always describe it on the list, and we may be able to help.

- Tim

On 7/7/2015 4:28 PM, Monika C. Mevenkamp wrote:
There used to be a method in Bundle (v1.8) that determined whether it is embargoed
Where is the replacement ?

Monika

—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Phone: 609-258-4161
333C 701 Carnegie, Princeton University, Princeton, NJ 08544



------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/


_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to