removed unneeded exceptions

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@173560 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-10-17 10:36:20 +00:00
parent 5feee8876e
commit cbc92a9a44
2 changed files with 5 additions and 15 deletions

View File

@ -8,7 +8,6 @@ import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
import org.gcube.common.storagehubwrapper.shared.tohl.exceptions.InternalErrorException;
import org.gcube.common.storagehubwrapper.shared.tohl.items.FileItemType; import org.gcube.common.storagehubwrapper.shared.tohl.items.FileItemType;
import org.gcube.common.storagehubwrapper.shared.tohl.items.WorkspaceVersion; import org.gcube.common.storagehubwrapper.shared.tohl.items.WorkspaceVersion;
@ -43,7 +42,6 @@ public class FileItem extends WorkspaceItem implements org.gcube.common.storageh
@Override @Override
public FileItemType getFileItemType() { public FileItemType getFileItemType() {
// TODO Auto-generated method stub
return fileItemType; return fileItemType;
} }
@ -51,10 +49,7 @@ public class FileItem extends WorkspaceItem implements org.gcube.common.storageh
* @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.File#getSize() * @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.File#getSize()
*/ */
@Override @Override
public Long getSize() public Long getSize() {
throws InternalErrorException {
// TODO Auto-generated method stub
return size; return size;
} }
@ -62,10 +57,7 @@ public class FileItem extends WorkspaceItem implements org.gcube.common.storageh
* @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.File#getMimeType() * @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.File#getMimeType()
*/ */
@Override @Override
public String getMimeType() public String getMimeType() {
throws InternalErrorException {
// TODO Auto-generated method stub
return mimeType; return mimeType;
} }
@ -73,10 +65,8 @@ public class FileItem extends WorkspaceItem implements org.gcube.common.storageh
* @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.FileItem#getCurrentVersion() * @see org.gcube.portal.storagehubwrapper.shared.tohl.folder.items.FileItem#getCurrentVersion()
*/ */
@Override @Override
public WorkspaceVersion getCurrentVersion() public WorkspaceVersion getCurrentVersion() {
throws InternalErrorException {
// TODO Auto-generated method stub
return currentVersion; return currentVersion;
} }

View File

@ -28,7 +28,7 @@ public interface File {
* @return the size * @return the size
* @throws InternalErrorException the internal error exception * @throws InternalErrorException the internal error exception
*/ */
public Long getSize() throws InternalErrorException; public Long getSize();
/** /**
* The folder myme type. * The folder myme type.
@ -36,7 +36,7 @@ public interface File {
* @return the myme type * @return the myme type
* @throws InternalErrorException the internal error exception * @throws InternalErrorException the internal error exception
*/ */
public String getMimeType() throws InternalErrorException; public String getMimeType();
} }