mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
133146 jkaabimofrad: Code format: Converted tabs to spaces. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133220 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,41 +45,42 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public class QuickShareLink
|
public class QuickShareLink
|
||||||
{
|
{
|
||||||
// unique short id (ie. shorter than a guid, 22 vs 36 chars)
|
// unique short id (ie. shorter than a guid, 22 vs 36 chars)
|
||||||
private String sharedId;
|
private String sharedId;
|
||||||
|
|
||||||
private Date expiresAt;
|
private Date expiresAt;
|
||||||
|
|
||||||
private String nodeId;
|
private String nodeId;
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
private ContentInfo content;
|
|
||||||
|
|
||||||
private Date modifiedAt;
|
private ContentInfo content;
|
||||||
private UserInfo modifiedByUser;
|
|
||||||
|
|
||||||
private UserInfo sharedByUser;
|
private Date modifiedAt;
|
||||||
|
private UserInfo modifiedByUser;
|
||||||
|
|
||||||
private List<String> allowableOperations;
|
private UserInfo sharedByUser;
|
||||||
|
|
||||||
|
private List<String> allowableOperations;
|
||||||
|
|
||||||
|
|
||||||
public QuickShareLink()
|
public QuickShareLink()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public QuickShareLink(String sharedId, String nodeId)
|
public QuickShareLink(String sharedId, String nodeId)
|
||||||
{
|
{
|
||||||
this.sharedId = sharedId;
|
this.sharedId = sharedId;
|
||||||
this.nodeId = nodeId;
|
this.nodeId = nodeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return sharedId;
|
return sharedId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(String sharedId) {
|
public void setId(String sharedId) {
|
||||||
this.sharedId = sharedId;
|
this.sharedId = sharedId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getExpiresAt()
|
public Date getExpiresAt()
|
||||||
{
|
{
|
||||||
@@ -92,88 +93,88 @@ public class QuickShareLink
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getNodeId() {
|
public String getNodeId() {
|
||||||
return nodeId;
|
return nodeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNodeId(String nodeId) {
|
public void setNodeId(String nodeId) {
|
||||||
this.nodeId = nodeId;
|
this.nodeId = nodeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ContentInfo getContent()
|
public ContentInfo getContent()
|
||||||
{
|
{
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setContent(ContentInfo content)
|
public void setContent(ContentInfo content)
|
||||||
{
|
{
|
||||||
this.content = content;
|
this.content = content;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName()
|
public String getName()
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name)
|
public void setName(String name)
|
||||||
{
|
{
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getModifiedAt()
|
public Date getModifiedAt()
|
||||||
{
|
{
|
||||||
return modifiedAt;
|
return modifiedAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setModifiedAt(Date modifiedAt)
|
public void setModifiedAt(Date modifiedAt)
|
||||||
{
|
{
|
||||||
this.modifiedAt = modifiedAt;
|
this.modifiedAt = modifiedAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserInfo getModifiedByUser()
|
public UserInfo getModifiedByUser()
|
||||||
{
|
{
|
||||||
return modifiedByUser;
|
return modifiedByUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setModifiedByUser(UserInfo modifiedByUser)
|
public void setModifiedByUser(UserInfo modifiedByUser)
|
||||||
{
|
{
|
||||||
this.modifiedByUser = modifiedByUser;
|
this.modifiedByUser = modifiedByUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserInfo getSharedByUser()
|
public UserInfo getSharedByUser()
|
||||||
{
|
{
|
||||||
return sharedByUser;
|
return sharedByUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSharedByUser(UserInfo sharedByUser)
|
public void setSharedByUser(UserInfo sharedByUser)
|
||||||
{
|
{
|
||||||
this.sharedByUser = sharedByUser;
|
this.sharedByUser = sharedByUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getAllowableOperations()
|
public List<String> getAllowableOperations()
|
||||||
{
|
{
|
||||||
return allowableOperations;
|
return allowableOperations;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAllowableOperations(List<String> allowableOperations)
|
public void setAllowableOperations(List<String> allowableOperations)
|
||||||
{
|
{
|
||||||
this.allowableOperations = allowableOperations;
|
this.allowableOperations = allowableOperations;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eg. for debug logging etc
|
// eg. for debug logging etc
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("QuickShareLink [id=").append(getId());
|
sb.append("QuickShareLink [id=").append(getId());
|
||||||
sb.append(", nodeId=").append(getNodeId());
|
sb.append(", nodeId=").append(getNodeId());
|
||||||
sb.append(", name=").append(getName());
|
sb.append(", name=").append(getName());
|
||||||
sb.append(", modifiedAt=").append(getModifiedAt());
|
sb.append(", modifiedAt=").append(getModifiedAt());
|
||||||
sb.append(", modifiedByUser=").append(getModifiedByUser());
|
sb.append(", modifiedByUser=").append(getModifiedByUser());
|
||||||
sb.append(", sharedByUser=").append(getSharedByUser());
|
sb.append(", sharedByUser=").append(getSharedByUser());
|
||||||
sb.append(", content=").append(getContent());
|
sb.append(", content=").append(getContent());
|
||||||
sb.append(", allowableOperations=").append(getAllowableOperations());
|
sb.append(", allowableOperations=").append(getAllowableOperations());
|
||||||
sb.append(", expiresAt=").append(getExpiresAt());
|
sb.append(", expiresAt=").append(getExpiresAt());
|
||||||
sb.append("]");
|
sb.append("]");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user