Lucio Lelii 2016-08-30 09:29:46 +00:00
parent e50087eb86
commit b3980b06f1
2 changed files with 24 additions and 4 deletions

View File

@ -117,6 +117,12 @@ public class Service2ServicePolicy extends Policy{
return lastUpdateTime; return lastUpdateTime;
} }
public void setLastUpdateTime(Calendar lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
}
public void setCreationTime(Calendar creationTime) {
this.creationTime = creationTime;
}
} }

View File

@ -67,6 +67,16 @@ public class User2ServicePolicy extends Policy {
return creationTime; return creationTime;
} }
public void setLastUpdateTime(Calendar lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
}
public void setCreationTime(Calendar creationTime) {
this.creationTime = creationTime;
}
@Override @Override
public int hashCode() { public int hashCode() {
final int prime = 31; final int prime = 31;
@ -108,10 +118,14 @@ public class User2ServicePolicy extends Policy {
return true; return true;
} }
@Override @Override
public String toString() { public String toString() {
return "User2ServicePolicy [id="+getId()+" entity=" + entity + ", context=" + context return "User2ServicePolicy [entity=" + entity + ", context=" + context
+ ", serviceAccess=" + serviceAccess + ", mode=" + mode + "]"; + ", serviceAccess=" + serviceAccess + ", lastUpdateTime="
+ lastUpdateTime + ", creationTime=" + creationTime + ", mode="
+ mode + "]";
} }
@Override @Override