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 getNewPrimaryKeysMap(Class<?> classObj);
69
70 public Map getComments();
71
72 public void addComments(Class<?> classObj, Object primaryKey)
73 throws PortalException, SystemException;
74
75 public void addComments(String className, Object primaryKey, List messages)
76 throws PortalException, SystemException;
77
78 public void importComments(
79 Class<?> classObj, Object primaryKey, Object newPrimaryKey,
80 long groupId)
81 throws PortalException, SystemException;
82
83 public Map getRatingsEntries();
84
85 public void addRatingsEntries(Class<?> classObj, Object primaryKey)
86 throws PortalException, SystemException;
87
88 public void addRatingsEntries(
89 String className, Object primaryKey, List entries)
90 throws PortalException, SystemException;
91
92 public void importRatingsEntries(
93 Class<?> classObj, Object primaryKey, Object newPrimaryKey)
94 throws PortalException, SystemException;
95
96 public String[] getTagsEntries(Class<?> classObj, Object primaryKey);
97
98 public String[] getTagsEntries(String className, Object primaryKey);
99
100 public Map<String, String[]> getTagsEntries();
101
102 public void addTagsEntries(Class<?> classObj, Object classPK)
103 throws PortalException, SystemException;
104
105 public void addTagsEntries(
106 String className, Object classPK, String[] values)
107 throws PortalException, SystemException;
108
109 public String getDataStrategy();
110
111 public UserIdStrategy getUserIdStrategy() throws SystemException;
112
113 public long getUserId(String userUuid) throws SystemException;
114
115 public ZipReader getZipReader();
116
117 public ZipWriter getZipWriter();
118
119 }