
com.windowsazure.samples.blob.ACL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa4azure Show documentation
Show all versions of jpa4azure Show documentation
jpa4azure, implements a subset of the JPA specification using Azure Storage for pesisting beans. see http://jpa4azure.codeplex.com for more information.
package com.windowsazure.samples.blob;
import java.util.Date;
import java.util.Set;
import java.util.UUID;
import com.windowsazure.samples.internal.util.Base64;
public class ACL {
public static ACL newACL(Date start, Date expiry, Set permissions) {
return new ACL(newId(), start, expiry, permissions);
}
public static ACL newACL(String id, Date start, Date expiry, Set permissions) {
return new ACL(id, start, expiry, permissions);
}
public static String newId() {
return new String(Base64.encode(UUID.randomUUID().toString().getBytes()));
}
public Date getExpiry() {
return expiry;
}
public String getId() {
return id;
}
public Set getPermissions() {
return permissions;
}
public Date getStart() {
return start;
}
private ACL(String id, Date start, Date expiry, Set permissions) {
this.id = id;
this.start = start;
this.expiry = expiry;
this.permissions = permissions;
}
private Date expiry;
private String id;
private Set permissions;
private Date start;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy