Skip to content

Commit

Permalink
Minor checkstyle fixes after bump to 8.45.1. All are indentation / sp…
Browse files Browse the repository at this point in the history
…acing fixes which are more strict now.
  • Loading branch information
tdonohue committed Oct 29, 2024
1 parent b11f4e0 commit a824e4d
Show file tree
Hide file tree
Showing 30 changed files with 75 additions and 249 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private AuthenticationTokenResource shortLivedTokenResponse(HttpServletRequest r
* @return ResponseEntity
*/
@RequestMapping(value = "/login", method = { RequestMethod.GET, RequestMethod.PUT, RequestMethod.PATCH,
RequestMethod.DELETE })
RequestMethod.DELETE })
public ResponseEntity login() {
return ResponseEntity.status(HttpStatus.METHOD_NOT_ALLOWED).body("Only POST is allowed for login requests.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(method = "getEperson", name = AuthorizationRest.EPERSON),
@LinkRest(method = "getFeature", name = AuthorizationRest.FEATURE),
@LinkRest(method = "getObject", name = AuthorizationRest.OBJECT)
@LinkRest(method = "getEperson", name = AuthorizationRest.EPERSON),
@LinkRest(method = "getFeature", name = AuthorizationRest.FEATURE),
@LinkRest(method = "getObject", name = AuthorizationRest.OBJECT)
})
public class AuthorizationRest extends BaseObjectRest<String> {
public static final String NAME = "authorization";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,9 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(
name = BitstreamRest.BUNDLE,
method = "getBundle"
),
@LinkRest(
name = BitstreamRest.FORMAT,
method = "getFormat"
),
@LinkRest(
name = BitstreamRest.THUMBNAIL,
method = "getThumbnail"
)
@LinkRest(name = BitstreamRest.BUNDLE, method = "getBundle"),
@LinkRest(name = BitstreamRest.FORMAT, method = "getFormat"),
@LinkRest(name = BitstreamRest.THUMBNAIL, method = "getThumbnail")
})
public class BitstreamRest extends DSpaceObjectRest {
public static final String PLURAL_NAME = "bitstreams";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,8 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(
name = BrowseIndexRest.LINK_ITEMS,
method = "listBrowseItems"
),
@LinkRest(
name = BrowseIndexRest.LINK_ENTRIES,
method = "listBrowseEntries"
)
@LinkRest(name = BrowseIndexRest.LINK_ITEMS, method = "listBrowseItems"),
@LinkRest(name = BrowseIndexRest.LINK_ENTRIES, method = "listBrowseEntries")
})
public class BrowseIndexRest extends BaseObjectRest<String> {
private static final long serialVersionUID = -4870333170249999559L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,9 @@
* @author Jelle Pelgrims (jelle.pelgrims at atmire.com)
*/
@LinksRest(links = {
@LinkRest(
name = BundleRest.ITEM,
method = "getItem"
),
@LinkRest(
name = BundleRest.BITSTREAMS,
method = "getBitstreams"
),
@LinkRest(
name = BundleRest.PRIMARY_BITSTREAM,
method = "getPrimaryBitstream"
)
@LinkRest(name = BundleRest.ITEM, method = "getItem"),
@LinkRest(name = BundleRest.BITSTREAMS, method = "getBitstreams"),
@LinkRest(name = BundleRest.PRIMARY_BITSTREAM, method = "getPrimaryBitstream")
})
public class BundleRest extends DSpaceObjectRest {
public static final String NAME = "bundle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(
name = ClaimedTaskRest.STEP,
method = "getStep"
)
@LinkRest(name = ClaimedTaskRest.STEP, method = "getStep")
})
public class ClaimedTaskRest extends BaseObjectRest<Integer> {
public static final String NAME = "claimedtask";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,14 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(
name = CollectionRest.LICENSE,
method = "getLicense"
),
@LinkRest(
name = CollectionRest.LOGO,
method = "getLogo"
),
@LinkRest(
name = CollectionRest.MAPPED_ITEMS,
method = "getMappedItems"
),
@LinkRest(
name = CollectionRest.PARENT_COMMUNITY,
method = "getParentCommunity"
),
@LinkRest(
name = CollectionRest.ADMIN_GROUP,
method = "getAdminGroup"
),
@LinkRest(
name = CollectionRest.SUBMITTERS_GROUP,
method = "getSubmittersGroup"
),
@LinkRest(
name = CollectionRest.ITEM_READ_GROUP,
method = "getItemReadGroup"
),
@LinkRest(
name = CollectionRest.BITSTREAM_READ_GROUP,
method = "getBitstreamReadGroup"
),
@LinkRest(name = CollectionRest.LICENSE, method = "getLicense"),
@LinkRest(name = CollectionRest.LOGO, method = "getLogo"),
@LinkRest(name = CollectionRest.MAPPED_ITEMS, method = "getMappedItems"),
@LinkRest(name = CollectionRest.PARENT_COMMUNITY, method = "getParentCommunity"),
@LinkRest(name = CollectionRest.ADMIN_GROUP, method = "getAdminGroup"),
@LinkRest(name = CollectionRest.SUBMITTERS_GROUP, method = "getSubmittersGroup"),
@LinkRest(name = CollectionRest.ITEM_READ_GROUP, method = "getItemReadGroup"),
@LinkRest(name = CollectionRest.BITSTREAM_READ_GROUP, method = "getBitstreamReadGroup"),
})
public class CollectionRest extends DSpaceObjectRest {
public static final String NAME = "collection";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,11 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(
name = CommunityRest.COLLECTIONS,
method = "getCollections"
),
@LinkRest(
name = CommunityRest.LOGO,
method = "getLogo"
),
@LinkRest(
name = CommunityRest.SUBCOMMUNITIES,
method = "getSubcommunities"
),
@LinkRest(
name = CommunityRest.PARENT_COMMUNITY,
method = "getParentCommunity"
),
@LinkRest(
name = CommunityRest.ADMIN_GROUP,
method = "getAdminGroup"
)
@LinkRest(name = CommunityRest.COLLECTIONS, method = "getCollections"),
@LinkRest(name = CommunityRest.LOGO, method = "getLogo"),
@LinkRest(name = CommunityRest.SUBCOMMUNITIES, method = "getSubcommunities"),
@LinkRest(name = CommunityRest.PARENT_COMMUNITY, method = "getParentCommunity"),
@LinkRest(name = CommunityRest.ADMIN_GROUP, method = "getAdminGroup")
})
public class CommunityRest extends DSpaceObjectRest {
public static final String NAME = "community";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(
name = EPersonRest.GROUPS,
method = "getGroups"
)
@LinkRest(name = EPersonRest.GROUPS, method = "getGroups")
})
public class EPersonRest extends DSpaceObjectRest {
public static final String NAME = "eperson";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
* Refer to {@link org.dspace.content.EntityType} for explanation of the properties
*/
@LinksRest(links = {
@LinkRest(
name = EntityTypeRest.RELATION_SHIP_TYPES,
method = "getEntityTypeRelationship"
)
@LinkRest(name = EntityTypeRest.RELATION_SHIP_TYPES, method = "getEntityTypeRelationship")
})
public class EntityTypeRest extends BaseObjectRest<Integer> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
* This class serves as a REST representation for an External Source
*/
@LinksRest(links = {
@LinkRest(
name = ExternalSourceRest.ENTITY_TYPES,
method = "getSupportedEntityTypes"
)
@LinkRest(name = ExternalSourceRest.ENTITY_TYPES, method = "getSupportedEntityTypes")
})
public class ExternalSourceRest extends BaseObjectRest<String> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,9 @@
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@LinksRest(links = {
@LinkRest(
name = GroupRest.SUBGROUPS,
method = "getGroups"
),
@LinkRest(
name = GroupRest.EPERSONS,
method = "getMembers"
),
@LinkRest(
name = GroupRest.OBJECT,
method = "getParentObject"
)
@LinkRest(name = GroupRest.SUBGROUPS, method = "getGroups"),
@LinkRest(name = GroupRest.EPERSONS, method = "getMembers"),
@LinkRest(name = GroupRest.OBJECT, method = "getParentObject")
})
public class GroupRest extends DSpaceObjectRest {
public static final String NAME = "group";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,46 +17,16 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(
name = ItemRest.ACCESS_STATUS,
method = "getAccessStatus"
),
@LinkRest(
name = ItemRest.BUNDLES,
method = "getBundles"
),
@LinkRest(
name = ItemRest.IDENTIFIERS,
method = "getIdentifiers"
),
@LinkRest(
name = ItemRest.MAPPED_COLLECTIONS,
method = "getMappedCollections"
),
@LinkRest(
name = ItemRest.OWNING_COLLECTION,
method = "getOwningCollection"
),
@LinkRest(
name = ItemRest.RELATIONSHIPS,
method = "getRelationships"
),
@LinkRest(
name = ItemRest.VERSION,
method = "getItemVersion"
),
@LinkRest(
name = ItemRest.TEMPLATE_ITEM_OF,
method = "getTemplateItemOf"
),
@LinkRest(
name = ItemRest.THUMBNAIL,
method = "getThumbnail"
),
@LinkRest(
name = ItemRest.SUBMITTER,
method = "getItemSubmitter"
)
@LinkRest(name = ItemRest.ACCESS_STATUS, method = "getAccessStatus"),
@LinkRest(name = ItemRest.BUNDLES, method = "getBundles"),
@LinkRest(name = ItemRest.IDENTIFIERS, method = "getIdentifiers"),
@LinkRest(name = ItemRest.MAPPED_COLLECTIONS, method = "getMappedCollections"),
@LinkRest(name = ItemRest.OWNING_COLLECTION, method = "getOwningCollection"),
@LinkRest(name = ItemRest.RELATIONSHIPS, method = "getRelationships"),
@LinkRest(name = ItemRest.VERSION, method = "getItemVersion"),
@LinkRest(name = ItemRest.TEMPLATE_ITEM_OF, method = "getTemplateItemOf"),
@LinkRest(name = ItemRest.THUMBNAIL, method = "getThumbnail"),
@LinkRest(name = ItemRest.SUBMITTER, method = "getItemSubmitter")
})
public class ItemRest extends DSpaceObjectRest {
public static final String NAME = "item";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class OrcidHistoryRest extends BaseObjectRest<Integer> {

private String responseMessage;

public OrcidHistoryRest(){}
public OrcidHistoryRest() {}

@Override
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(
name = PoolTaskRest.STEP,
method = "getStep"
)
@LinkRest(name = PoolTaskRest.STEP, method = "getStep")
})
public class PoolTaskRest extends BaseObjectRest<Integer> {
public static final String NAME = "pooltask";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,9 @@
* This class serves as a REST representation for the {@link Process} class
*/
@LinksRest(links = {
@LinkRest(
name = ProcessRest.FILES,
method = "getFilesFromProcess"
),
@LinkRest(
name = ProcessRest.FILE_TYPES,
method = "getFileTypesFromProcess"
),
@LinkRest(
name = ProcessRest.OUTPUT,
method = "getOutputFromProcess"
)
@LinkRest(name = ProcessRest.FILES, method = "getFilesFromProcess"),
@LinkRest(name = ProcessRest.FILE_TYPES, method = "getFileTypesFromProcess"),
@LinkRest(name = ProcessRest.OUTPUT, method = "getOutputFromProcess")
})
public class ProcessRest extends BaseObjectRest<Integer> {
public static final String NAME = "process";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
* Refer to {@link org.dspace.content.Relationship} for explanation about the properties
*/
@LinksRest(links = {
@LinkRest(
name = RelationshipRest.RELATIONSHIP_TYPE,
method = "getRelationshipType"
)
@LinkRest(name = RelationshipRest.RELATIONSHIP_TYPE, method = "getRelationshipType")
})
public class RelationshipRest extends BaseObjectRest<Integer> {
public static final String NAME = "relationship";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
*
*/
@LinksRest(links = {
@LinkRest(name = ResearcherProfileRest.ITEM, method = "getItem"),
@LinkRest(name = ResearcherProfileRest.EPERSON, method = "getEPerson")
@LinkRest(name = ResearcherProfileRest.ITEM, method = "getItem"),
@LinkRest(name = ResearcherProfileRest.EPERSON, method = "getEPerson")
})
public class ResearcherProfileRest extends BaseObjectRest<UUID> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
*
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = { @LinkRest(name = SuggestionRest.TARGET, method = "getTarget") })
@LinksRest(links = {
@LinkRest(name = SuggestionRest.TARGET, method = "getTarget")
})
public class SuggestionRest extends BaseObjectRest<String> {
private static final long serialVersionUID = 1L;
public static final String NAME = "suggestion";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author Andrea Bollini (andrea.bollini at 4science.it)
*/
@LinksRest(links = {
@LinkRest(name = SuggestionTargetRest.TARGET, method = "getTarget")
@LinkRest(name = SuggestionTargetRest.TARGET, method = "getTarget")
})
public class SuggestionTargetRest extends BaseObjectRest<String> {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,8 @@
* The REST object for the {@link org.dspace.versioning.VersionHistory} object
*/
@LinksRest(links = {
@LinkRest(
name = VersionHistoryRest.VERSIONS,
method = "getVersions"
),
@LinkRest(
name = VersionHistoryRest.DRAFT_VERSION,
method = "getDraftVersion"
)
@LinkRest(name = VersionHistoryRest.VERSIONS, method = "getVersions"),
@LinkRest(name = VersionHistoryRest.DRAFT_VERSION, method = "getDraftVersion")
})
public class VersionHistoryRest extends BaseObjectRest<Integer> {

Expand Down
Loading

0 comments on commit a824e4d

Please sign in to comment.