Modeling an access control policy as a class in Java

I'm pretty new to Java, I'm trying to create a class based on an entity Access control policy.

Access control policy: An access control policy p is a tuple. (sid, tf, exp, pr), where sid refers to the identifier of the client or user restricted by p, tf specifies a theme filter expression, exp is a parametric predicate, while pr specifies the read / write privileges transferred to sid if exp is satisfied.

Topic: It is a string structured as a sequence of alphanumeric tokens, known as topic levels, and separated by a theme level separator.

Theme filter expression: It is a string structured as a sequence of subject levels, each of which specifies an alphanumeric token or wildcard characters & # 39; + & # 39; or & # 39; # & # 39 ;, which denote placeholders for one or more alphanumeric tokens. The wildcard + can be replaced by a single token, while the wild card # can be replaced by a sequence of tokens of arbitrary length. Example: Assume the hierarchy of topics related to an application of smart home, where the first level of the theme codes the building considered, the second level specifies the floor, the third the room and the fourth a physical quantity (humidity, temperature). The message that codes the temperature of the bathroom on the ground floor of the house may have a theme name specified as: house / ground floor / bathroom / temperature
The theme filter expression house / + / + / humidity It indicates the names of the topics of the messages that code the humidity of any room on each floor of the house.

Parametric predicate: It is a Boolean expression constructed by the composition of subject, object and environment attributes, mathematical operators, logical operators, set operators, logical quantifiers and predefined functions that allow the processing of attribute values.

What I have done are these 2 classes, for the users:

Public Class UserPolicy {

int userId;
String topicFilterExpression;
String parametricPredicate;
Boolean reading;
Boolean writing;

Public UserPolicy (int userId, String topicFilterExpression, String parametricPredicate, Boolean reading,
Boolean writing) {
super();
this.userId = userId;
this.topicFilterExpression = topicFilterExpression;
this.parametricPredicate = parametricPredicate;
this.read = read;
this.write = write;
}

For customers:

public class ClientPolicy {

int clientId;
String topicFilterExpression;
String parametricPredicate;
Boolean reading;
Boolean writing;

Public ClientPolicy (int clientId, String topicFilterExpression, String parametricPredicate, Boolean reading,
Boolean writing) {
super();
this.clientId = clientId;
this.topicFilterExpression = topicFilterExpression;
this.parametricPredicate = parametricPredicate;
this.read = read;
this.write = write;
}

Public customer policy () {

}

I'm not really sure if what I did is "right".