Fix getter/setter for PublishMode

-> Rename setPublisMode to setPublishMode
-> Add a getter