コード例 #1
0
 public static org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy
     createList(
         RequestorBean requestor,
         org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestItem...
             requestItems) {
   org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy requestPolicy =
       new org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy();
   requestPolicy.setPrivacyPolicyType(PrivacyPolicyTypeConstants.OTHER);
   requestPolicy.setRequestor(requestor);
   requestPolicy.setRequestItems(Arrays.asList(requestItems));
   return requestPolicy;
 }
コード例 #2
0
 public static org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy
     create(
         PrivacyPolicyTypeConstants privacyPolicyType,
         RequestorBean requestor,
         List<org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestItem>
             requestItems) {
   org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy requestPolicy =
       new org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy();
   requestPolicy.setPrivacyPolicyType(privacyPolicyType);
   requestPolicy.setRequestor(requestor);
   requestPolicy.setRequestItems(requestItems);
   return requestPolicy;
 }
コード例 #3
0
 public static org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy
     toRequestPolicyBean(RequestPolicy requestPolicy) {
   if (null == requestPolicy) {
     return null;
   }
   org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy
       requestPolicyBean =
           new org.societies.api.schema.privacytrust.privacy.model.privacypolicy.RequestPolicy();
   requestPolicyBean.setRequestor(RequestorUtils.toRequestorBean(requestPolicy.getRequestor()));
   requestPolicyBean.setRequestItems(
       RequestItemUtils.toRequestItemBeans(requestPolicy.getRequests()));
   return requestPolicyBean;
 }