Skip to content

Commit 0a7f430

Browse files
author
Lloyd Watkin
committed
Use owner field type
1 parent 62ccbc5 commit 0a7f430

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/main/java/org/buddycloud/channelserver/channel/node/configuration/field

src/main/java/org/buddycloud/channelserver/channel/node/configuration/field/Factory.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ public Field create(String type, String value)
1313
if ((null == type) || (null == value)) {
1414
throw new ConfigurationFieldException();
1515
}
16-
if (type.equals("pubsub#owner") && (false == this.allowOwner)) {
16+
if (type.equals(Owner.FIELD_NAME) && (false == this.allowOwner)) {
1717
throw new ConfigurationFieldException();
18+
} else if (type.equals(Owner.FIELD_NAME)) {
19+
Owner field = new Owner();
20+
field.setValue(value);
21+
return field;
1822
} else if (type.equals(ChannelTitle.FIELD_NAME)) {
1923
ChannelTitle field = new ChannelTitle();
2024
field.setValue(value);

0 commit comments

Comments
 (0)