mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 12:03:09 +00:00
DS-3851 Configurable Workflow endpoints
This commit is contained in:

committed by
Andrea Bollini

parent
c0066d2a2f
commit
25e3a69b8f
@@ -11,6 +11,8 @@ import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
@@ -25,6 +27,7 @@ import javax.persistence.Transient;
|
||||
|
||||
import org.apache.commons.lang.builder.HashCodeBuilder;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.dspace.browse.BrowsableDSpaceObject;
|
||||
import org.dspace.content.comparator.NameAscendingComparator;
|
||||
import org.dspace.content.factory.ContentServiceFactory;
|
||||
import org.dspace.content.service.CommunityService;
|
||||
@@ -48,7 +51,7 @@ import org.hibernate.proxy.HibernateProxyHelper;
|
||||
@Table(name = "community")
|
||||
@Cacheable
|
||||
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, include = "non-lazy")
|
||||
public class Community extends DSpaceObject implements DSpaceObjectLegacySupport {
|
||||
public class Community extends DSpaceObject implements DSpaceObjectLegacySupport, BrowsableDSpaceObject<UUID> {
|
||||
/**
|
||||
* log4j category
|
||||
*/
|
||||
@@ -251,6 +254,11 @@ public class Community extends DSpaceObject implements DSpaceObjectLegacySupport
|
||||
return Constants.COMMUNITY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTypeText() {
|
||||
return Constants.typeText[Constants.COMMUNITY];
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
String value = getCommunityService()
|
||||
@@ -269,4 +277,15 @@ public class Community extends DSpaceObject implements DSpaceObjectLegacySupport
|
||||
}
|
||||
return communityService;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isArchived() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDiscoverable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user