Source not available doesn’t mean hide, it’s because java source file(java.frag) doesn’t exist. Hide means you can’t see them, for example the services in WmRoot package are hidden by default(controlled by extended settings).
If you want your java service Source not available, just don’t select any *.java and java.frag when you export.
If you want to hide your services, whatever java service or flow service, you can set the read ACL to a suitable one(for example Administrator ACL), then users not belong to this ACL(for example user just belongs to Developers ACL) can’t see them.
You can find the Permissions in Properties View, please see the attachment.
For example, if you set the List ACL to Developers and Read ACL to Administrators, then login as user Developer(the build-in user just belongs to Developers ACL, password is “isdev” by default), you can see this service, but not the service content.
Hope it helps. Finally, what’s the purpose you want to hide?
WmPrivate is not an option to select, but ACL settings are stored under /config folder with name acl*.cnf, you can configure your service in the aclread.cnf(to make source not available) and aclwrite.cnf(to make sure no one can change the Read ACL) like below:
WmPrivate
The java source is stored in IS/packageName/folderName/ns/././java.frag file, u can delete the file or rename the java.frag file and then the java source is hidden. but you can find java source file in packagesname\code\source*.java . if you delete node.ndf or rename it then is flow service is missing in the developer /designer.
Yes to hide java source code on designer/developer you can simply delete the java.frag file and .java in the corresponding folder (Like SAG does in all the BIS)
But if you delete/rename node.ndf the flow service gets deleted or disappears which is not good
There is a way to hide the flow services and it is updated in the above thread!