|
|
@@ -41,6 +41,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
this.uploadChannelService = uploadChannelService;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public ServerInfo getUploadStore(String channelName) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
UploadChannel uploadChannel = storeRepository.getUploadChannel(ossUser, channelName);
|
|
|
@@ -53,6 +54,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
return consoleService.getUploadStore(channelCode);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public Integer getChannelScope(int channelCode) {
|
|
|
/*try {
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -66,6 +68,16 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
return ObjectScope.PRIVATE.getCode();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void setObjectUpload(int channelCode, String objectId) throws Exception {
|
|
|
+ int ossUser = storeConfigService.getLocalOssUser();
|
|
|
+ if (ossType == OssType.localOss.getCode()) {
|
|
|
+ storeServiceWrapper.setObjectUpload(channelCode, objectId, ossUser);
|
|
|
+ } else if (ossType == OssType.aliyunOss.getCode()) {
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public void setObjectScope(int channelCode, String objectId, int scope) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -74,6 +86,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public void deleteByObjectId(int channelCode, String objectId) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -82,6 +95,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public void deleteByObjectUrl(String objectUrl) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -90,6 +104,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public ObjectInfo getObjectInfo(int channelCode, String objectId) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -100,6 +115,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
throw new Exception("OSSType not found");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public String getSignedUrl(int channelCode, String objectId) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -110,6 +126,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
throw new Exception("OSSType not found");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public String getSignedUrlByUrl(int channelCode, String objectUrl) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -120,11 +137,13 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
throw new Exception("OSSType not found");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public VideoInfo getVideoInfo(int channelCode, String videoFileId) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
return storeServiceWrapper.getVideoInfo(channelCode, videoFileId, ossUser);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public ImageInfo getImageInfo(int channelCode, String imageFileId) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -135,6 +154,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
throw new Exception("OSSType not found");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public ConvertedImageInfo getWebpInfo(int channelCode, String imageFileId) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|
|
|
@@ -144,6 +164,7 @@ public class StoreServiceWrapperRouter implements OssService {
|
|
|
throw new Exception("OSSType not found");
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public AudioInfo getAudioInfo(int channelCode, String audioFileId) throws Exception {
|
|
|
int ossUser = storeConfigService.getLocalOssUser();
|
|
|
if (ossType == OssType.localOss.getCode()) {
|