Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
File Repository
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Genesys PGR
File Repository
Commits
a431f13d
Commit
a431f13d
authored
Jul 27, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@Transient getters were not serialized to JSON
parent
237b4ad2
Pipeline
#6177
passed with stage
in 2 minutes and 36 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryFile.java
...java/org/genesys/filerepository/model/RepositoryFile.java
+0
-6
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryImage.java
...ava/org/genesys/filerepository/model/RepositoryImage.java
+0
-2
No files found.
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryFile.java
View file @
a431f13d
...
...
@@ -173,7 +173,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*/
// TODO See if we can have a setter instead of this formula.
@Override
@Transient
public
String
getIdentifier
()
{
return
uuid
==
null
?
null
:
"urn:uuid:"
+
uuid
.
toString
();
}
...
...
@@ -184,7 +183,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*
* @return relative URL to the file resource
*/
@Transient
public
String
getUrl
()
{
return
getStorageFullPath
();
}
...
...
@@ -195,7 +193,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* @return the filename
*/
// not persisted
@Transient
public
String
getFilename
()
{
if
(
uuid
==
null
)
{
return
null
;
...
...
@@ -215,7 +212,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* @return the filename
*/
// not persisted
@Transient
public
String
getMetadataFilename
()
{
if
(
uuid
==
null
)
{
return
null
;
...
...
@@ -229,7 +225,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*
* @return the storage path
*/
@Transient
public
String
getStoragePath
()
{
if
(
uuid
==
null
)
{
return
null
;
...
...
@@ -243,7 +238,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*
* @return the storage full path
*/
@Transient
public
String
getStorageFullPath
()
{
return
getStoragePath
()
+
"/"
+
getFilename
();
}
...
...
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryImage.java
View file @
a431f13d
...
...
@@ -22,7 +22,6 @@ import javax.persistence.EnumType;
import
javax.persistence.Enumerated
;
import
javax.persistence.PrePersist
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
org.genesys.filerepository.metadata.ImageMetadata
;
...
...
@@ -150,7 +149,6 @@ public class RepositoryImage extends RepositoryFile implements ImageMetadata {
*
* @return Thumbnails path
*/
@Transient
public
String
getThumbnailPath
()
{
return
getStoragePath
()
+
"/"
+
getUuid
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment