1
22
23 package com.liferay.portal.kernel.lar;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.zip.ZipReader;
28 import com.liferay.portal.kernel.zip.ZipWriter;
29
30 import java.io.Serializable;
31
32 import java.util.List;
33 import java.util.Map;
34 import java.util.Set;
35
36
48 public interface PortletDataContext extends Serializable {
49
50 public long getCompanyId();
51
52 public long getGroupId();
53
54 public long getPlid();
55
56 public void setPlid(long plid);
57
58 public Map getParameterMap();
59
60 public boolean getBooleanParameter(String namespace, String name);
61
62 public Set getPrimaryKeys();
63
64 public boolean addPrimaryKey(Class classObj, Object primaryKey);
65
66 public boolean hasPrimaryKey(Class classObj, Object primaryKey);
67
68 public Map getComments();
69
70 public void addComments(Class classObj, Object primaryKey)
71 throws PortalException, SystemException;
72
73 public void addComments(String className, Object primaryKey, List messages)
74 throws PortalException, SystemException;
75
76 public void importComments(
77 Class classObj, Object primaryKey, Object newPrimaryKey,
78 long groupId)
79 throws PortalException, SystemException;
80
81 public Map getRatingsEntries();
82
83 public void addRatingsEntries(Class classObj, Object primaryKey)
84 throws PortalException, SystemException;
85
86 public void addRatingsEntries(
87 String className, Object primaryKey, List entries)
88 throws PortalException, SystemException;
89
90 public void importRatingsEntries(
91 Class classObj, Object primaryKey, Object newPrimaryKey)
92 throws PortalException, SystemException;
93
94 public String[] getTagsEntries(Class classObj, Object primaryKey);
95
96 public String[] getTagsEntries(String className, Object primaryKey);
97
98 public Map getTagsEntries();
99
100 public void addTagsEntries(Class classObj, Object classPK)
101 throws PortalException, SystemException;
102
103 public void addTagsEntries(
104 String className, Object classPK, String[] values)
105 throws PortalException, SystemException;
106
107 public String getDataStrategy();
108
109 public UserIdStrategy getUserIdStrategy() throws SystemException;
110
111 public long getUserId(String userUuid) throws SystemException;
112
113 public ZipReader getZipReader();
114
115 public ZipWriter getZipWriter();
116
117 }