Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Catalog
Genesys Catalog Server
Commits
96aa79c3
Commit
96aa79c3
authored
Jan 22, 2018
by
Matija Obreza
Browse files
Added Descriptor.publisher
parent
a4ce9e21
Changes
3
Hide whitespace changes
Inline
Side-by-side
genesys-catalog-core/src/main/java/org/genesys/catalog/model/traits/Descriptor.java
View file @
96aa79c3
...
...
@@ -139,6 +139,10 @@ public class Descriptor extends UuidModel implements Publishable, Copyable<Descr
@Column
(
name
=
"keyDescriptor"
)
private
boolean
key
;
/** The publisher. */
@Column
(
length
=
200
)
private
String
publisher
;
/** Not published by default. */
private
boolean
published
=
false
;
...
...
@@ -515,6 +519,24 @@ public class Descriptor extends UuidModel implements Publishable, Copyable<Descr
this
.
key
=
key
;
}
/**
* Sets the publisher.
*
* @param publisher the new publisher
*/
public
void
setPublisher
(
String
publisher
)
{
this
.
publisher
=
publisher
;
}
/**
* Gets the publisher.
*
* @return the publisher
*/
public
String
getPublisher
()
{
return
publisher
;
}
/**
* Checks if is published.
*
...
...
genesys-catalog-core/src/main/java/org/genesys/catalog/service/filters/DescriptorFilter.java
View file @
96aa79c3
...
...
@@ -60,8 +60,11 @@ public class DescriptorFilter extends AuditedVersionedModelFilter {
/** The uom. */
public
Set
<
String
>
uom
;
/** The key. */
public
Boolean
key
;
/** The key. */
public
Boolean
key
;
/** The publisher. */
public
Set
<
String
>
publisher
;
/** The published. */
public
Boolean
published
;
...
...
@@ -90,9 +93,12 @@ public class DescriptorFilter extends AuditedVersionedModelFilter {
if
((
category
!=
null
)
&&
!
category
.
isEmpty
())
{
and
.
and
(
descriptor
.
category
.
in
(
category
));
}
if
(
key
!=
null
)
{
and
.
and
(
descriptor
.
key
.
eq
(
key
));
}
if
(
key
!=
null
)
{
and
.
and
(
descriptor
.
key
.
eq
(
key
));
}
if
((
publisher
!=
null
)
&&
!
publisher
.
isEmpty
())
{
and
.
and
(
descriptor
.
publisher
.
in
(
publisher
));
}
if
(
published
!=
null
)
{
and
.
and
(
descriptor
.
published
.
eq
(
published
));
}
...
...
genesys-catalog-server/src/main/resources/liquibase/liquibase-changeLog.yml
View file @
96aa79c3
...
...
@@ -3160,3 +3160,21 @@ databaseChangeLog:
onUpdate
:
NO ACTION
referencedColumnNames
:
id
referencedTableName
:
partner
-
changeSet
:
id
:
1516643805000-2
author
:
mobreza
comment
:
Adding Descriptor.publisher
changes
:
-
addColumn
:
columns
:
-
column
:
name
:
publisher
type
:
VARCHAR(200)
tableName
:
descriptor
-
createIndex
:
columns
:
-
column
:
name
:
publisher
indexName
:
FK_1d4veryraxx6fll3y8cnte24p
tableName
:
descriptor
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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