• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #55

02 Oct 2024 07:40PM UTC coverage: 60.548% (+0.7%) from 59.836%
#55

push

github

web-flow
Release prep for 3.2.1 (#103)

4156 of 6864 relevant lines covered (60.55%)

0.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/smartsheet/api/internal/AttachmentResourcesImpl.java
1
/*
2
 * Copyright (C) 2024 Smartsheet
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.smartsheet.api.internal;
18

19
import com.smartsheet.api.AttachmentResources;
20
import com.smartsheet.api.AttachmentVersioningResources;
21
import com.smartsheet.api.models.Attachment;
22

23
import java.io.File;
24
import java.io.InputStream;
25

26
/**
27
 * This is the implementation of the AttachmentResources.
28
 * <p>
29
 * Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
30
 *
31
 * @deprecated As of release 2.0. Please use {@link AttachmentVersioningResources} instead
32
 */
33
@Deprecated(since = "2.0.0", forRemoval = true)
34
public class AttachmentResourcesImpl extends AbstractResources implements AttachmentResources {
35

36
    /**
37
     * Constructor.
38
     * <p>
39
     * Exceptions: - IllegalArgumentException : if any argument is null
40
     *
41
     * @param smartsheet the smartsheet
42
     */
43
    public AttachmentResourcesImpl(SmartsheetImpl smartsheet) {
44
        super(smartsheet);
×
45
    }
×
46

47
    /**
48
     * @return the attachment
49
     * @deprecated As of release 2.0. Please use {@link AttachmentVersioningResources} instead
50
     */
51
    @Deprecated(since = "2.0.0", forRemoval = true)
52
    public Attachment attachNewVersion(long attachmentId, File file, String contentType) {
53
        throw new UnsupportedOperationException();
×
54
    }
55

56
    /**
57
     * @return the attachment
58
     * @deprecated As of release 2.0. Please use {@link AttachmentVersioningResources} instead
59
     */
60
    @Deprecated(since = "2.0.0", forRemoval = true)
61
    public Attachment attachNewVersion(
62
            long attachmentId,
63
            InputStream inputStream,
64
            String contentType,
65
            long contentLength,
66
            String attachmentName
67
    ) {
68
        throw new UnsupportedOperationException();
×
69
    }
70
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc